Re:Show HN: PySchemes – A library for validating data struct...
by ansgri on Sunday November 05, 2017 @02:24PM
(#15631061)
Exactly my thought about json-schema, as I use it extensively in both Python and C++ (excellent library valijson [0]).
Not all Python objects are json-serializable by default, so the ideal solution (for me) would be json-schema with simple syntax for adding custom type validators.
https://pypi.python.org/pypi/jsonschema
A post showing a simple use of it:
Using JSON Schema with Python to validate JSON data:
https://jugad2.blogspot.in/2015/12/using-json-schema-with-py...