(self, json_schema)
return json_type
Convert a json schema primitive type into the most suitable class name.

    Subclasses should override as appropriate.

    Args:
      json_schema: (dict) The defintion dictionary for this type
    Returns:
      A name suitable for use as a class in the generator's target language.
Convert a json schema primitive type into the most suitable class name.
Convert a json schema primitive type into the most suitable class name .
def GetCodeTypeFromDictionary(self, json_schema):
    """Convert a json schema primitive type into the most suitable class name.

    Subclasses should override as appropriate.

    Args:
      json_schema: (dict) The defintion dictionary for this type
    Returns:
      A name suitable for use as a class in the generator's target language.
    """
    json_type = json_schema.get('type', 'UNKNOWN')
    json_format = json_schema.get('format')
    if json_format:
      json_type = '%s (%s)' % (json_type, json_format)
    return json_type
def GetCodeTypeFromDictionary ( self , json_schema ) : json_type = json_schema . get ( 'type' , 'UNKNOWN' ) json_format = json_schema . get ( 'format' ) if json_format : json_type = '%s (%s)' % ( json_type , json_format ) return json_type