-
Notifications
You must be signed in to change notification settings - Fork 2k
Minify generated schema.json #726
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/vercel/turbo-site/6zWrB2fDFmyiXjWqsD1wJ6EKrW4u |
We should really treat the schema file as generated output. So actually, can you do the following?
Now we can minify and also just have single file diffs |
Just adding the |
This commit continues the amazing work done in #634 and #726. Instead of generating the JSON schema from a separate TypeScript file, this commit introduces a new CLI (to avoid bloating the main one) that will output a JSON schema from the struct definition itself, including the actual code comments. This will allow to better integration and to avoid differences between the two codebases.
I added
--minify
option tots-json-schema-generator
because some of my schemas have gotten bigger.I've just enabled it here too :)