a2ui-project / a2ui-project/a2ui
Support validation of the `schema` in a CatalogItem
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.4k
- Forks
- 1.3k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 134
Descripción
_↴ Ported from [flutter/genui#433](https://github.com/flutter/genui/issues/433) — originally opened by [polina-c](https://github.com/polina-c) on 2025-10-23._
_Original labels: P2, quality_
---
Can we have the method Catalog.validate() that:
1. Invokes the existing validateCatalogExamples
2. Invokes validation of schema, i.e.:
- there are properties 'properties' and 'description'
- property 'required' contains only existing properties
- 'properties' is a map
Guía de contribución
Línea de trabajo
Look for the Catalog class and its validate method or similar validation logic. The existing validateCatalogExamples function is a starting point. Examine the schema structure to check for 'properties' and 'description' keys, ensure 'required' contains only existing properties, and verify 'properties' is a map. Write tests to confirm the validation works as described.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- backend-api-design
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 65/100