Skip to content

add Revel Digital gadget definition schema #4835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mtinnes
Copy link

@mtinnes mtinnes commented Jul 7, 2025

This pull request introduces support for the gadget.yaml schema used by Revel Digital gadget definition files. The changes include adding the schema to the catalog, defining the schema itself, and providing an example file for validation.

Schema Integration:

  • Added an entry for the gadget.yaml schema in src/api/json/catalog.json, enabling schema validation for files named gadget.yml or gadget.yaml.

Schema Definition:

  • Created src/schemas/json/gadget-yaml.json, defining the structure and validation rules for gadget.yaml files. The schema includes properties such as title, author, prefs, and nested definitions for Locale, Pref, Depend, and others.

Example File:

  • Added src/test/gadget-yaml/good-example.yaml as a test file demonstrating a valid gadget.yaml configuration, including examples of preferences, locales, and other schema features.

Copy link
Contributor

github-actions bot commented Jul 7, 2025

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

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.

1 participant