fork of hey-api/openapi-ts because I need some additional things
1{
2 "openapi": "3.1.1",
3 "info": {
4 "title": "OpenAPI 3.1.1 transformers any of null example",
5 "version": "1"
6 },
7 "paths": {
8 "/foo": {
9 "get": {
10 "responses": {
11 "200": {
12 "description": "OK",
13 "content": {
14 "application/json": {
15 "schema": {
16 "type": "array",
17 "items": {
18 "$ref": "#/components/schemas/Foo"
19 }
20 }
21 }
22 }
23 }
24 }
25 }
26 },
27 "/api/nested-date-object": {
28 "get": {
29 "operationId": "nestedDateObject",
30 "responses": {
31 "200": {
32 "description": "Object with nested date",
33 "content": {
34 "application/json": {
35 "schema": {
36 "$ref": "#/components/schemas/NestedDateObject"
37 }
38 }
39 }
40 }
41 }
42 }
43 }
44 },
45 "components": {
46 "schemas": {
47 "NestedDateObject": {
48 "description": "Object with a nested date structure",
49 "type": "object",
50 "properties": {
51 "foo": {
52 "type": "object",
53 "properties": {
54 "bar": {
55 "type": "string",
56 "format": "date-time"
57 }
58 }
59 }
60 }
61 },
62 "Foo": {
63 "type": "object",
64 "properties": {
65 "foo": {
66 "type": "string",
67 "format": "date-time"
68 },
69 "bar": {
70 "anyOf": [
71 {
72 "type": "string",
73 "format": "date-time"
74 },
75 {
76 "type": "null"
77 }
78 ]
79 },
80 "baz": {
81 "anyOf": [
82 {
83 "type": ["string", "null"],
84 "format": "date-time"
85 }
86 ]
87 },
88 "requiredQux": {
89 "anyOf": [
90 {
91 "type": ["string", "null"],
92 "format": "date-time"
93 }
94 ]
95 }
96 },
97 "required": ["requiredQux"]
98 }
99 }
100 }
101}