Skip to content
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

Allow packages to supply a dynamic config schema #370

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

j005u
Copy link
Contributor

@j005u j005u commented May 13, 2023

This change allows packages to supply an executable at /opt/etc/package-config/package-name/schemaV2 and /opt/etc/package-config/package-name/uiSchemaV2 that outputs the appropriate schema instead of a static .json file.

For example, msp-osd can populate font options dynamically.

The --config-schema and --config-ui-schema flags get appended accordingly to executable calls to allow for easy symlinking to executable that might serve multiple purposes.

@j005u
Copy link
Contributor Author

j005u commented May 13, 2023

Here's an example schemaV2 executable for msp-osd schemaV2.zip

@stylesuxx stylesuxx added this to the V2.2.0 milestone May 13, 2023
@stylesuxx stylesuxx added the enhancement New feature or request label May 13, 2023
@stylesuxx stylesuxx modified the milestones: V2.2.0, V2.3.0 May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants