jsonschema2dj/models.py
def factory(cls, schema: Dict) -> List[Model]:
        "factory for parsing json schema of many models"

        #  this needs to come back but has got out of date!
        #  validate(dict(definitions=schema.get("definitions", [])), META_SCHEMA)
        models = build_models(extract_relationships(schema))

        return [
            Model(model_name, schema, *fields) for model_name, fields in models.items()
        ]
factory for parsing json schema of many models
factory for parsing json schema of many models
factory for parsing json schema of many models
def factory(cls, schema: Dict) -> List[Model]:
        models = build_models(extract_relationships(schema))
        return [
            Model(model_name, schema, *fields) for model_name, fields in models.items()
        ]
def factory ( cls , schema : Dict ) -> List [ Model ] : models = build_models ( extract_relationships ( schema ) ) return [ Model ( model_name , schema , * fields ) for model_name , fields in models . items ( ) ]
factory for parsing json schema of many models
factory for parsing json schema of many models
"factory for parsing json schema of many models" #  this needs to come back but has got out of date! #  validate(dict(definitions=schema.get("definitions", [])), META_SCHEMA)
cls
schema
Dict