Closed hgenru closed 5 years ago
@hgenru - well, you can, just use method to_json_schema
- http://jsonmodels.readthedocs.org/en/latest/usage.html#creating-json-schema-for-your-model
@beregond oh, sorry, i'm talking about import json schema. Like this script https://github.com/cwacek/python-jsonschema-objects
@hgenru - well, it was main purpose to create jsonmodels
- to NOT deal with json schema itself :) the thing is that even if json schema is great tool (I think so), models in form of python objects are much more readable than json schema. Goal of this project is to generate json schema from models, not otherwise.
Anyway I understand your point. If all you need is to generate models at runtime, then you should use project you've mentioned, but if you want to generate python source from json schema - well, I was thinking about something like this, yet it is hard task, so don't expect such feature too quick (lack of time for that). Anyway thanks for feedback :)
It would be great to be able to import the existing models in the format json scheme