def _introspectRoute(route, exampleByIdentifier, schema_store):
 result = {}
 try:
  user_documentation = route.attributes['user_documentation']
 except KeyError:
  raise SphinxError('Undocumented route: {}'.format(route))
 result['description'] = prepare_docstring(user_documentation.text)
 result['header'] = user_documentation.header
 result['section'] = user_documentation.section
 inputSchema = route.attributes.get('inputSchema', None)
 outputSchema = route.attributes.get('outputSchema', None)
 if inputSchema:
  result['input'] = _parseSchema(inputSchema, schema_store)
  result['input_schema'] = inputSchema
 if outputSchema:
  result['output'] = _parseSchema(outputSchema, schema_store)
  result['output_schema'] = outputSchema
 examples = user_documentation.examples
 result['examples'] = list((Example.fromDictionary(exampleByIdentifier(identifier)) for identifier in examples))
 return result

def _introspectRoute ( route , exampleByIdentifier , schema_store ) : result = { } try : user_documentation = route . attributes [ 'user_documentation' ] except KeyError : raise SphinxError ( 'Undocumented route: {}' . format ( route ) ) result [ 'description' ] = prepare_docstring ( user_documentation . text ) result [ 'header' ] = user_documentation . header result [ 'section' ] = user_documentation . section inputSchema = route . attributes . get ( 'inputSchema' , None ) outputSchema = route . attributes . get ( 'outputSchema' , None ) if inputSchema : result [ 'input' ] = _parseSchema ( inputSchema , schema_store ) result [ 'input_schema' ] = inputSchema if outputSchema : result [ 'output' ] = _parseSchema ( outputSchema , schema_store ) result [ 'output_schema' ] = outputSchema examples = user_documentation . examples result [ 'examples' ] = list ( ( Example . fromDictionary ( exampleByIdentifier ( identifier ) ) for identifier in examples ) ) return result
given a l{kleinroute} .