#NEWLINE# def _merge_schema( first , second ) : #NEWLINE# #INDENT# if ( first . get ( 'type' ) != second . get ( 'type' ) ) : #NEWLINE# #INDENT# return merge_with_any_of ( first , second ) #NEWLINE# #UNINDENT# if ( ( 'anyOf' in first ) or ( 'anyOf' in second ) ) : #NEWLINE# #INDENT# return merge_with_any_of ( first , second ) #NEWLINE# #UNINDENT# schema_type = first . get ( 'type' ) #NEWLINE# if ( schema_type not in SCHEMA_TYPES ) : #NEWLINE# #INDENT# raise NotImplementedError ( ( 'Type %s is not yet supported' % first ) ) #NEWLINE# #UNINDENT# merge_function = SCHEMA_TYPES [ schema_type ] [ 'merge_function' ] #NEWLINE# return merge_function ( first , second )