pyTypeToSchemaType top-level property

Map<String, String> pyTypeToSchemaType
final

The mapping from Python-style type names to JSON schema types.

Implementation

final Map<String, String> pyTypeToSchemaType = <String, String>{
  'str': 'string',
  'int': 'integer',
  'float': 'number',
  'bool': 'boolean',
  'string': 'string',
  'integer': 'integer',
  'number': 'number',
  'boolean': 'boolean',
  'list': 'array',
  'array': 'array',
  'tuple': 'array',
  'object': 'object',
  'dict': 'object',
  'any': 'TYPE_UNSPECIFIED',
};