@classmethod<EOL><INDENT>def merge_schemas(cls, schema, _schema):<DEDENT>
tmp = schema.properties[:]  <EOL>prop = {}<EOL>to_dict = lambda e: prop.update({e.pop('<STR_LIT:name>'): e})<EOL>[to_dict(i) for i in tmp]  <EOL>for _prop in _schema.properties:<EOL><INDENT>if prop.get(_prop['<STR_LIT:name>']):<EOL><INDENT>prop.pop(_prop['<STR_LIT:name>'])<EOL><DEDENT><DEDENT>if prop:<EOL><INDENT>for k, v in prop.items():<EOL><INDENT>v['<STR_LIT:name>'] = k<EOL>_schema.properties.append(v)<EOL><DEDENT><DEDENT>return _schema<EOL>
Return second Schema, which is extended by first Schema
        https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#composition-and-inheritance-polymorphism