Skip to content

[feat] Add JSONSchemas#3

Merged
sfc-gh-bnisco merged 1 commit intomainfrom
01-26-_feat_add_jsonschemas
Jan 27, 2026
Merged

[feat] Add JSONSchemas#3
sfc-gh-bnisco merged 1 commit intomainfrom
01-26-_feat_add_jsonschemas

Conversation

@sfc-gh-bnisco
Copy link
Copy Markdown
Contributor

@sfc-gh-bnisco sfc-gh-bnisco commented Jan 27, 2026

TL;DR

Added JSON schema definitions for the Component Gallery registry system.

What changed?

  • Created compiled.schema.json which defines the structure for the compiled components catalog
  • Created component.schema.json which defines the structure for individual component submissions
  • Both schemas include detailed validation rules for component metadata including:
    • Required fields (title, author, links, categories)
    • Format validation for URLs, dates, and other fields
    • Constraints on field lengths and content patterns
    • Predefined category options for components

Why make this change?

These schema definitions provide a standardized structure for component submissions and the compiled catalog, ensuring:

  1. Consistent data format for all components in the gallery
  2. Proper validation of component metadata
  3. Clear requirements for contributors submitting new components
  4. Structured format for metrics and ranking data
  5. Foundation for automated validation in the submission process

@sfc-gh-bnisco
Copy link
Copy Markdown
Contributor Author

sfc-gh-bnisco commented Jan 27, 2026

Comment thread components/registry/schemas/compiled.schema.json Outdated
Comment thread .gitignore
Comment thread components/registry/schemas/component.schema.json Outdated
"type": "object",
"additionalProperties": false,
"properties": {
"starsScore": { "type": ["number", "null"] },
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Since starsScore is always computed (never null), the schema could reflect this

@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-26-_feat_add_jsonschemas branch from e1aa345 to 909d426 Compare January 27, 2026 22:22
@sfc-gh-bnisco sfc-gh-bnisco merged commit f8d7dcb into main Jan 27, 2026
1 check passed
@sfc-gh-bnisco sfc-gh-bnisco deleted the 01-26-_feat_add_jsonschemas branch February 6, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants