@classmethod<EOL><INDENT>def create_schema(cls, obj, name, schema_type, root):<DEDENT>
if schema_type == SchemaTypes.MAPPED:<EOL><INDENT>schema = SchemaMapWrapper(obj, storage=cls, name=name, root=root)<EOL><DEDENT>else:<EOL><INDENT>schema = Schema(obj, schema_type, storage=cls, name=name, root=root)<EOL><DEDENT>cls.add_schema(schema)<EOL>return schema<EOL>
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