alecthomas/voluptuous

export/generate json schema

Open

#408 aperta il 2 ott 2019

Vedi su GitHub
 (1 commento) (5 reazioni) (0 assegnatari)Python (221 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1845 star)
Metriche merge PR
 (Merge medio 61g 21h) (6 PR mergiate in 30 g)

Descrizione

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.

Guida contributor