a2ui-project / a2ui-project/a2ui

Support validation of the `schema` in a CatalogItem

Open Beginner friendly
#1,832 0 comments 0 reactions 0 assignees View on GitHub
component: genui P2
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.