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

Add JSON Schema files #50

Open
orta opened this issue Feb 18, 2019 · 4 comments
Open

Add JSON Schema files #50

orta opened this issue Feb 18, 2019 · 4 comments

Comments

@orta
Copy link

orta commented Feb 18, 2019

👋 - 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]":

screen shot 2019-02-18 at 6 22 10 am

Now I've got validations + docs inline in my editor.

@simonhaenisch
Copy link
Contributor

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

🤓

@dtinth
Copy link

dtinth commented Sep 12, 2020

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.

@ghost
Copy link

ghost commented Oct 27, 2020

Any updates on this @anatrajkovska?

@GerryFerdinandus
Copy link

A problem request has been opened to add support for vercel.json
SchemaStore/schemastore#1942
How to continue with this issue?
There is no json file here that can be link to.

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

4 participants