#NEWLINE# def method_schema( instance , method ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'id' : ( ( ( ( instance . url if ( instance is not None ) else '' ) + '.' ) + method . slug ) + ';schema' ) , #NEWLINE# 'title' : method . slug , #NEWLINE# 'description' : ( method . __doc__ or '*No description provided*' ) , #NEWLINE# 'type' : 'object' , #NEWLINE# 'oneOf' : [ { #NEWLINE# #INDENT# '$ref' : '#/definitions/method_request' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# '$ref' : '#/definitions/method_response' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'definitions' : { #NEWLINE# #INDENT# 'method_request' : method_request_schema ( instance , method ) , #NEWLINE# 'method_response' : method_response_schema ( instance , method ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }