schemas icon indicating copy to clipboard operation
schemas copied to clipboard

Add JSON Schema files

Open orta opened this issue 6 years ago • 4 comments

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

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

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

orta avatar Feb 18 '19 11:02 orta

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:

simonhaenisch avatar Jun 14 '19 09:06 simonhaenisch

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.

dtinth avatar Sep 12 '20 10:09 dtinth

Any updates on this @anatrajkovska?

ghost avatar Oct 27 '20 04:10 ghost

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.

GerryFerdinandus avatar Jan 08 '22 21:01 GerryFerdinandus