def resolve_ref(uri):
 parsed = urlparse(uri)
 if (parsed.path in schema_paths):
  schema = schema_paths[parsed.path]
  if callable(schema):
   return schema(**dict(parse_qsl(parsed.query)))
  return schema
 raise jsonschema.RefResolutionError((u'%s could not be resolved' % uri))

def resolve_ref ( uri ) : parsed = urlparse ( uri ) if ( parsed . path in schema_paths ) : schema = schema_paths [ parsed . path ] if callable ( schema ) : return schema ( ** dict ( parse_qsl ( parsed . query ) ) ) return schema raise jsonschema . RefResolutionError ( ( u'%s could not be resolved' % uri ) )
finds and returns a schema pointed to by uri that has been registered in the register_schema function .