a2ui-project / a2ui-project/a2ui
Support validation of the `schema` in a CatalogItem
- Dominant language
- TypeScript
- Stars
- 16.4k
- Forks
- 1.3k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 134
Description
_↴ 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
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100