fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.1.1
2info:
3 title: OpenAPI 3.1.1 schema const example
4 version: 1
5components:
6 schemas:
7 Foo:
8 properties:
9 foo:
10 const: foo
11 type: string
12 bar:
13 const: 3.2
14 type: number
15 baz:
16 const: -1
17 type: integer
18 qux:
19 const: true
20 type: boolean
21 quux:
22 const: [1, 2, 3, 'foo', true]
23 type: array
24 corge:
25 const:
26 foo: 1
27 bar: true
28 baz: grault
29 type: object
30 garply:
31 const: 10n
32 format: int64
33 type: integer
34 # Integer format const examples - number type
35 numberInt8:
36 const: 100
37 format: int8
38 type: number
39 numberInt16:
40 const: 1000
41 format: int16
42 type: number
43 numberInt32:
44 const: 100000
45 format: int32
46 type: number
47 numberInt64:
48 const: 1000000000000
49 format: int64
50 type: number
51 numberUint8:
52 const: 200
53 format: uint8
54 type: number
55 numberUint16:
56 const: 50000
57 format: uint16
58 type: number
59 numberUint32:
60 const: 3000000000
61 format: uint32
62 type: number
63 numberUint64:
64 const: 18000000000000000000
65 format: uint64
66 type: number
67 # Integer format const examples - integer type
68 integerInt8:
69 const: -100
70 format: int8
71 type: integer
72 integerInt16:
73 const: -1000
74 format: int16
75 type: integer
76 integerInt32:
77 const: -100000
78 format: int32
79 type: integer
80 integerInt64:
81 const: -1000000000000
82 format: int64
83 type: integer
84 integerUint8:
85 const: 255
86 format: uint8
87 type: integer
88 integerUint16:
89 const: 65535
90 format: uint16
91 type: integer
92 integerUint32:
93 const: 4294967295
94 format: uint32
95 type: integer
96 integerUint64:
97 const: 18446744073709551615n
98 format: uint64
99 type: integer
100 # Integer format const examples - string type (only for 64-bit formats)
101 stringInt64:
102 const: '-9223372036854775808'
103 format: int64
104 type: string
105 stringUint64:
106 const: '18446744073709551615'
107 format: uint64
108 type: string
109 type: object