schemas
schemas copied to clipboard
Add JSON Schema files
:wave: - One thing I used for Peril that has been really useful is to export a JSON schema in the repo for the app settings file. This is auto-generated from the objects in the repo.
Then you can use this arbitrarily in any JSON file by using "$schema": "[url]":
Now I've got validations + docs inline in my editor.
Yup would be nice if you compile your schemas into json in like a dist folder or sth, so we could use them as
https://unpkg.com/@zeit/schemas/dist/deployment/config
:nerd_face:
For a workaround, I have submitted a pull request #59 with an action to automatically update JSON files from JS files. These JSON files are available in my fork.
Any updates on this @anatrajkovska?
A problem request has been opened to add support for vercel.json https://github.com/SchemaStore/schemastore/issues/1942 How to continue with this issue? There is no json file here that can be link to.