def create_schema(cls, obj, name, schema_type, root):
        """ Create Schema object

        :param dict obj: swagger schema object
        :param str name: schema name
        :param str schema_type: schema location.
            Can be ``inline``, ``definition`` or ``mapped``
        :param BaseSwaggerObject root: root doc
        :return: new schema
        :rtype: Schema
        """
        if schema_type == SchemaTypes.MAPPED:
            schema = SchemaMapWrapper(obj, storage=cls, name=name, root=root)
        else:
            schema = Schema(obj, schema_type, storage=cls, name=name, root=root)
        cls.add_schema(schema)
        return schema
def create_schema ( cls , obj , name , schema_type , root ) : if schema_type == SchemaTypes . MAPPED : schema = SchemaMapWrapper ( obj , storage = cls , name = name , root = root ) else : schema = Schema ( obj , schema_type , storage = cls , name = name , root = root ) cls . add_schema ( schema ) return schema
Create Schema object

        :param dict obj: swagger schema object
        :param str name: schema name
        :param str schema_type: schema location.
            Can be ``inline``, ``definition`` or ``mapped``
        :param BaseSwaggerObject root: root doc
        :return: new schema
        :rtype: Schema