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

export/generate json schema #408

Open
enerjazzer opened this issue Oct 2, 2019 · 1 comment
Open

export/generate json schema #408

enerjazzer opened this issue Oct 2, 2019 · 1 comment

Comments

@enerjazzer
Copy link

Could you please add an option to get the schema as json schema?
I tried using a few 3rd-party libraries that claimed to be able to work with voluptuous and they all failed miserably.
I believe the best is to have this feature built-in as you know how to access/traverse the internals of voluptuous schema with all the validations, nestings etc.
That would be especially useful with modern IDEs that can validate yaml files versus json schema which could be automatically regenerated on any change of the voluptuous schema - you could immediately see the effect of your changes.

@alecthomas
Copy link
Owner

That would be useful, but I don't have the time to implement this. PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants