fix(docs): Catalog composition examples in catalogs.md use invalid allOf under components
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 80/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- json, typescript
- Domain
- documentation
Research direction
The issue points to specific sections in docs/public/concepts/catalogs.md. First, read the file to understand the current invalid examples. Then, check the referenced schema at specification/v1_0/json/catalog_definition.json to see the correct structure. The fix is to update the JSON examples in the markdown file to use valid JSON Schema syntax, ensuring 'components' contains only component-type keys with proper schema objects. Verify by reviewing the changes locally.
Written by the indexing model from the issue text.
Description
Problem Page(s)
docs/public/concepts/catalogs.md(Sections: "#### Example: Extending the Basic Catalog" and "#### Example: Cherry-picking Components")
Describe the Issue
In docs/public/concepts/catalogs.md, the documentation examples for catalog composition and imports show an "allOf" key with an array value placed directly under the "components" map:
{
"$id": "https://github.com/.../hello_world_with_all_basic/v1/catalog.json",
"catalogId": "https://github.com/.../hello_world_with_all_basic/v1/catalog.json",
"components": {
"allOf": [
{"$ref": "basic_catalog_definition.json#/components"},
{
"SuggestionChips": {
"type": "object",
...
}
}
]
}
}
In the A2UI Catalog Schema definition (specification/v1_0/json/catalog_definition.json and protocol specs), components is defined as an object where each property name is a component type and its value must be a valid JSON Schema:
"components": {
"type": "object",
"description": "Definitions for UI components supported by this catalog.",
"additionalProperties": {
"$ref": "https://json-schema.org/draft/2020-12/schema"
}
}
Placing "allOf": [...] inside components fails JSON Schema validation against the Catalog meta-schema because:
"allOf"is treated as a component name rather than a JSON Schema composition keyword.- The value is an array, which is not a valid JSON Schema object.
Proposed Changes
Update the catalog composition examples in docs/public/concepts/catalogs.md to reflect valid schema syntax (e.g. structuring composition at the root catalog schema level, or demonstrating valid multi-catalog linking patterns).
Additional Context
Flagged during review of #2184.
- Dominant language
- TypeScript
- Stars
- 16.4k
- Forks
- 1.3k
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 117
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a2ui-project/a2ui
-
P2 status: first-line-handled type: feature/enhancement
Difficulty 1/5 Under an hour Newbie friendliness 85/100
a2ui-project/a2ui#2643 · 2 comments · 1 assignee ·
-
P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
a2ui-project/a2ui#2599 ·
-
P2 status: first-line-handled status: needs review type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a2ui-project/a2ui#2581 · 1 comment · 1 assignee ·
-
P2 status: first-line-handled status: waiting-for-author-response type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a2ui-project/a2ui#2580 · 1 comment · 1 assignee ·
-
P2 status: first-line-handled type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
a2ui-project/a2ui#2579 · 2 comments · 1 assignee ·
All issues in a2ui-project/a2ui
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100