a2ui-project / a2ui-project/a2ui
Support validation of the `schema` in a CatalogItem
- Lingua principale
- TypeScript
- Stelle
- 16.4k
- Fork
- 1.3k
- Merge medio
- 2g 13h
- PR unite (30g)
- 134
Descrizione
_↴ 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- backend-api-design
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 65/100