fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 44 lines 857 B view raw
1export const identifiers = { 2 Annotated: 'Annotated', 3 Any: 'Any', 4 BaseModel: 'BaseModel', 5 ConfigDict: 'ConfigDict', 6 Dict: 'Dict', 7 Field: 'Field', 8 List: 'List', 9 Literal: 'Literal', 10 Optional: 'Optional', 11 Union: 'Union', 12 alias: 'alias', 13 default: 'default', 14 description: 'description', 15 ge: 'ge', 16 gt: 'gt', 17 le: 'le', 18 lt: 'lt', 19 max_length: 'max_length', 20 min_length: 'min_length', 21 model_config: 'model_config', 22 multiple_of: 'multiple_of', 23 pattern: 'pattern', 24} as const; 25 26export const typeMappings: Record<string, string> = { 27 array: 'list', 28 boolean: 'bool', 29 integer: 'int', 30 null: 'None', 31 number: 'float', 32 object: 'dict', 33 string: 'str', 34}; 35 36export const pydanticTypes = { 37 array: 'list', 38 boolean: 'bool', 39 integer: 'int', 40 null: 'None', 41 number: 'float', 42 object: 'dict', 43 string: 'str', 44} as const;