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

Generate JSON Schema for all catalog item types #7035

Open
staffordsmith83 opened this issue Jan 23, 2024 · 0 comments
Open

Generate JSON Schema for all catalog item types #7035

staffordsmith83 opened this issue Jan 23, 2024 · 0 comments
Assignees

Comments

@staffordsmith83
Copy link
Contributor

A tool to generate a json schema file for each catalog item type at build time.
This will allow us to have intellisense when editing json catalog items manually and avoid time consuming errors!

We would generate a json schema file from traits, similar to how generateDocs.ts works.
It would be good to include a script in terriajs package.json that will generate a folder of these json schema files.

Question: are our traits defined specifically enough so that we can generate a comprehensive json schema for each catalog item type? Do we define the possible values for each trait so that we can include validation patterns in the json schema? Should we define our traits even more strictly to facilitate this?

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

No branches or pull requests

1 participant