Source of truth is a jsonschema file/string which I wish to utilise to build objects as using validations etc.
Does Marshmallow allow to define schema using a JsonSchema rather than manually place the fields?
So presently what I do is,
- Take in serialized JSON data.
- Deserialize it to Python Dictionary
- Validate that python dictionary using python-jsonschema library.
So I then know that my json is good enough then the steps to serialize it to Python Object using marshmallow will follow as I know my data is validated correctly.
What I wish to achieve is gain the validation part within marshmallow using jsonschema, so to avoid using additional libraries and having multiple steps.