docusaurus-plugin-openapi-docs 0.0.0-1013 → 0.0.0-1015
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/openapi/types.d.ts +52 -56
- package/package.json +2 -2
- package/src/openapi/types.ts +52 -55
package/lib/openapi/types.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { JSONSchema4, JSONSchema6, JSONSchema7, JSONSchema7TypeName } from "json-schema";
|
|
2
|
-
interface Map<T> {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
}
|
|
5
2
|
export interface OpenApiObject {
|
|
6
3
|
openapi: string;
|
|
7
4
|
info: InfoObject;
|
|
@@ -54,7 +51,7 @@ export interface LicenseObject {
|
|
|
54
51
|
export interface ServerObject {
|
|
55
52
|
url: string;
|
|
56
53
|
description?: string;
|
|
57
|
-
variables?:
|
|
54
|
+
variables?: Record<string, ServerVariable>;
|
|
58
55
|
}
|
|
59
56
|
export interface ServerVariable {
|
|
60
57
|
enum?: string[];
|
|
@@ -62,29 +59,29 @@ export interface ServerVariable {
|
|
|
62
59
|
description?: string;
|
|
63
60
|
}
|
|
64
61
|
export interface ComponentsObject {
|
|
65
|
-
schemas?:
|
|
66
|
-
responses?:
|
|
67
|
-
parameters?:
|
|
68
|
-
examples?:
|
|
69
|
-
requestBodies?:
|
|
70
|
-
headers?:
|
|
71
|
-
securitySchemes?:
|
|
72
|
-
links?:
|
|
73
|
-
callbacks?:
|
|
62
|
+
schemas?: Record<string, SchemaObject>;
|
|
63
|
+
responses?: Record<string, ResponseObject>;
|
|
64
|
+
parameters?: Record<string, ParameterObject>;
|
|
65
|
+
examples?: Record<string, ExampleObject>;
|
|
66
|
+
requestBodies?: Record<string, RequestBodyObject>;
|
|
67
|
+
headers?: Record<string, HeaderObject>;
|
|
68
|
+
securitySchemes?: Record<string, SecuritySchemeObject>;
|
|
69
|
+
links?: Record<string, LinkObject>;
|
|
70
|
+
callbacks?: Record<string, CallbackObject>;
|
|
74
71
|
}
|
|
75
72
|
export interface ComponentsObjectWithRef {
|
|
76
|
-
schemas?:
|
|
77
|
-
responses?:
|
|
78
|
-
parameters?:
|
|
79
|
-
examples?:
|
|
80
|
-
requestBodies?:
|
|
81
|
-
headers?:
|
|
82
|
-
securitySchemes?:
|
|
83
|
-
links?:
|
|
84
|
-
callbacks?:
|
|
85
|
-
}
|
|
86
|
-
export type PathsObject =
|
|
87
|
-
export type PathsObjectWithRef =
|
|
73
|
+
schemas?: Record<string, SchemaObjectWithRef | ReferenceObject>;
|
|
74
|
+
responses?: Record<string, ResponseObjectWithRef | ReferenceObject>;
|
|
75
|
+
parameters?: Record<string, ParameterObjectWithRef | ReferenceObject>;
|
|
76
|
+
examples?: Record<string, ExampleObject | ReferenceObject>;
|
|
77
|
+
requestBodies?: Record<string, RequestBodyObjectWithRef | ReferenceObject>;
|
|
78
|
+
headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
|
|
79
|
+
securitySchemes?: Record<string, SecuritySchemeObject | ReferenceObject>;
|
|
80
|
+
links?: Record<string, LinkObject | ReferenceObject>;
|
|
81
|
+
callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
|
|
82
|
+
}
|
|
83
|
+
export type PathsObject = Record<string, PathItemObject>;
|
|
84
|
+
export type PathsObjectWithRef = Record<string, PathItemObjectWithRef>;
|
|
88
85
|
export interface PathItemObject {
|
|
89
86
|
$ref?: string;
|
|
90
87
|
summary?: string;
|
|
@@ -124,7 +121,7 @@ export interface OperationObject {
|
|
|
124
121
|
parameters?: ParameterObject[];
|
|
125
122
|
requestBody?: RequestBodyObject;
|
|
126
123
|
responses: ResponsesObject;
|
|
127
|
-
callbacks?:
|
|
124
|
+
callbacks?: Record<string, CallbackObject>;
|
|
128
125
|
deprecated?: boolean;
|
|
129
126
|
security?: SecurityRequirementObject[];
|
|
130
127
|
servers?: ServerObject[];
|
|
@@ -140,7 +137,7 @@ export interface OperationObjectWithRef {
|
|
|
140
137
|
parameters?: (ParameterObjectWithRef | ReferenceObject)[];
|
|
141
138
|
requestBody?: RequestBodyObjectWithRef | ReferenceObject;
|
|
142
139
|
responses: ResponsesObjectWithRef;
|
|
143
|
-
callbacks?:
|
|
140
|
+
callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
|
|
144
141
|
deprecated?: boolean;
|
|
145
142
|
security?: SecurityRequirementObject[];
|
|
146
143
|
servers?: ServerObject[];
|
|
@@ -162,8 +159,8 @@ export interface ParameterObject {
|
|
|
162
159
|
allowReserved?: boolean;
|
|
163
160
|
schema?: SchemaObject;
|
|
164
161
|
example?: any;
|
|
165
|
-
examples?:
|
|
166
|
-
content?:
|
|
162
|
+
examples?: Record<string, ExampleObject>;
|
|
163
|
+
content?: Record<string, MediaTypeObject>;
|
|
167
164
|
param?: Object;
|
|
168
165
|
"x-enumDescriptions"?: Record<string, string>;
|
|
169
166
|
}
|
|
@@ -179,62 +176,62 @@ export interface ParameterObjectWithRef {
|
|
|
179
176
|
allowReserved?: boolean;
|
|
180
177
|
schema?: SchemaObjectWithRef | ReferenceObject;
|
|
181
178
|
example?: any;
|
|
182
|
-
examples?:
|
|
183
|
-
content?:
|
|
179
|
+
examples?: Record<string, ExampleObject | ReferenceObject>;
|
|
180
|
+
content?: Record<string, MediaTypeObjectWithRef>;
|
|
184
181
|
}
|
|
185
182
|
export interface RequestBodyObject {
|
|
186
183
|
description?: string;
|
|
187
|
-
content:
|
|
184
|
+
content: Record<string, MediaTypeObject>;
|
|
188
185
|
required?: boolean;
|
|
189
186
|
}
|
|
190
187
|
export interface RequestBodyObjectWithRef {
|
|
191
188
|
description?: string;
|
|
192
|
-
content:
|
|
189
|
+
content: Record<string, MediaTypeObjectWithRef>;
|
|
193
190
|
required?: boolean;
|
|
194
191
|
}
|
|
195
192
|
export interface MediaTypeObject {
|
|
196
193
|
schema?: SchemaObject;
|
|
197
194
|
example?: any;
|
|
198
|
-
examples?:
|
|
199
|
-
encoding?:
|
|
195
|
+
examples?: Record<string, ExampleObject>;
|
|
196
|
+
encoding?: Record<string, EncodingObject>;
|
|
200
197
|
type?: any;
|
|
201
198
|
}
|
|
202
199
|
export interface MediaTypeObjectWithRef {
|
|
203
200
|
schema?: SchemaObjectWithRef | ReferenceObject;
|
|
204
201
|
example?: any;
|
|
205
|
-
examples?:
|
|
206
|
-
encoding?:
|
|
202
|
+
examples?: Record<string, ExampleObject | ReferenceObject>;
|
|
203
|
+
encoding?: Record<string, EncodingObjectWithRef>;
|
|
207
204
|
}
|
|
208
205
|
export interface EncodingObject {
|
|
209
206
|
contentType?: string;
|
|
210
|
-
headers?:
|
|
207
|
+
headers?: Record<string, HeaderObject>;
|
|
211
208
|
style?: string;
|
|
212
209
|
explode?: boolean;
|
|
213
210
|
allowReserved?: boolean;
|
|
214
211
|
}
|
|
215
212
|
export interface EncodingObjectWithRef {
|
|
216
213
|
contentType?: string;
|
|
217
|
-
headers?:
|
|
214
|
+
headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
|
|
218
215
|
style?: string;
|
|
219
216
|
explode?: boolean;
|
|
220
217
|
allowReserved?: boolean;
|
|
221
218
|
}
|
|
222
|
-
export type ResponsesObject =
|
|
223
|
-
export type ResponsesObjectWithRef =
|
|
219
|
+
export type ResponsesObject = Record<string, ResponseObject>;
|
|
220
|
+
export type ResponsesObjectWithRef = Record<string, ResponseObjectWithRef | ReferenceObject>;
|
|
224
221
|
export interface ResponseObject {
|
|
225
222
|
description: string;
|
|
226
|
-
headers?:
|
|
227
|
-
content?:
|
|
228
|
-
links?:
|
|
223
|
+
headers?: Record<string, HeaderObject>;
|
|
224
|
+
content?: Record<string, MediaTypeObject>;
|
|
225
|
+
links?: Record<string, LinkObject>;
|
|
229
226
|
}
|
|
230
227
|
export interface ResponseObjectWithRef {
|
|
231
228
|
description: string;
|
|
232
|
-
headers?:
|
|
233
|
-
content?:
|
|
234
|
-
links?:
|
|
229
|
+
headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
|
|
230
|
+
content?: Record<string, MediaTypeObjectWithRef>;
|
|
231
|
+
links?: Record<string, LinkObject | ReferenceObject>;
|
|
235
232
|
}
|
|
236
|
-
export type CallbackObject =
|
|
237
|
-
export type CallbackObjectWithRef =
|
|
233
|
+
export type CallbackObject = Record<string, PathItemObject>;
|
|
234
|
+
export type CallbackObjectWithRef = Record<string, PathItemObjectWithRef>;
|
|
238
235
|
export interface ExampleObject {
|
|
239
236
|
summary?: string;
|
|
240
237
|
description?: string;
|
|
@@ -244,7 +241,7 @@ export interface ExampleObject {
|
|
|
244
241
|
export interface LinkObject {
|
|
245
242
|
operationRef?: string;
|
|
246
243
|
operationId?: string;
|
|
247
|
-
parameters?:
|
|
244
|
+
parameters?: Record<string, any>;
|
|
248
245
|
requestBody?: any;
|
|
249
246
|
description?: string;
|
|
250
247
|
server?: ServerObject;
|
|
@@ -273,7 +270,7 @@ export type SchemaObject = Omit<JSONSchema, "type" | "allOf" | "oneOf" | "anyOf"
|
|
|
273
270
|
anyOf?: SchemaObject[];
|
|
274
271
|
not?: SchemaObject;
|
|
275
272
|
items?: SchemaObject;
|
|
276
|
-
properties?:
|
|
273
|
+
properties?: Record<string, SchemaObject>;
|
|
277
274
|
additionalProperties?: boolean | SchemaObject;
|
|
278
275
|
nullable?: boolean;
|
|
279
276
|
discriminator?: DiscriminatorObject;
|
|
@@ -293,7 +290,7 @@ export type SchemaObjectWithRef = Omit<JSONSchema, "type" | "allOf" | "oneOf" |
|
|
|
293
290
|
anyOf?: (SchemaObject | ReferenceObject)[];
|
|
294
291
|
not?: SchemaObject | ReferenceObject;
|
|
295
292
|
items?: SchemaObject | ReferenceObject;
|
|
296
|
-
properties?:
|
|
293
|
+
properties?: Record<string, SchemaObject | ReferenceObject>;
|
|
297
294
|
additionalProperties?: boolean | SchemaObject | ReferenceObject;
|
|
298
295
|
nullable?: boolean;
|
|
299
296
|
discriminator?: DiscriminatorObject;
|
|
@@ -306,7 +303,7 @@ export type SchemaObjectWithRef = Omit<JSONSchema, "type" | "allOf" | "oneOf" |
|
|
|
306
303
|
};
|
|
307
304
|
export interface DiscriminatorObject {
|
|
308
305
|
propertyName: string;
|
|
309
|
-
mapping?:
|
|
306
|
+
mapping?: Record<string, string>;
|
|
310
307
|
}
|
|
311
308
|
export interface XMLObject {
|
|
312
309
|
name?: string;
|
|
@@ -350,7 +347,6 @@ export interface OAuthFlowObject {
|
|
|
350
347
|
authorizationUrl?: string;
|
|
351
348
|
tokenUrl?: string;
|
|
352
349
|
refreshUrl?: string;
|
|
353
|
-
scopes:
|
|
350
|
+
scopes: Record<string, string>;
|
|
354
351
|
}
|
|
355
|
-
export type SecurityRequirementObject =
|
|
356
|
-
export {};
|
|
352
|
+
export type SecurityRequirementObject = Record<string, string[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-plugin-openapi-docs",
|
|
3
3
|
"description": "OpenAPI plugin for Docusaurus.",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-1015",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=14"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d127b26d4807d51e164052e9867267c03274b9d9"
|
|
69
69
|
}
|
package/src/openapi/types.ts
CHANGED
|
@@ -12,10 +12,6 @@ import type {
|
|
|
12
12
|
JSONSchema7TypeName,
|
|
13
13
|
} from "json-schema";
|
|
14
14
|
|
|
15
|
-
interface Map<T> {
|
|
16
|
-
[key: string]: T;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
15
|
export interface OpenApiObject {
|
|
20
16
|
openapi: string;
|
|
21
17
|
info: InfoObject;
|
|
@@ -74,7 +70,7 @@ export interface LicenseObject {
|
|
|
74
70
|
export interface ServerObject {
|
|
75
71
|
url: string;
|
|
76
72
|
description?: string;
|
|
77
|
-
variables?:
|
|
73
|
+
variables?: Record<string, ServerVariable>;
|
|
78
74
|
}
|
|
79
75
|
|
|
80
76
|
export interface ServerVariable {
|
|
@@ -84,32 +80,32 @@ export interface ServerVariable {
|
|
|
84
80
|
}
|
|
85
81
|
|
|
86
82
|
export interface ComponentsObject {
|
|
87
|
-
schemas?:
|
|
88
|
-
responses?:
|
|
89
|
-
parameters?:
|
|
90
|
-
examples?:
|
|
91
|
-
requestBodies?:
|
|
92
|
-
headers?:
|
|
93
|
-
securitySchemes?:
|
|
94
|
-
links?:
|
|
95
|
-
callbacks?:
|
|
83
|
+
schemas?: Record<string, SchemaObject>;
|
|
84
|
+
responses?: Record<string, ResponseObject>;
|
|
85
|
+
parameters?: Record<string, ParameterObject>;
|
|
86
|
+
examples?: Record<string, ExampleObject>;
|
|
87
|
+
requestBodies?: Record<string, RequestBodyObject>;
|
|
88
|
+
headers?: Record<string, HeaderObject>;
|
|
89
|
+
securitySchemes?: Record<string, SecuritySchemeObject>;
|
|
90
|
+
links?: Record<string, LinkObject>;
|
|
91
|
+
callbacks?: Record<string, CallbackObject>;
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
export interface ComponentsObjectWithRef {
|
|
99
|
-
schemas?:
|
|
100
|
-
responses?:
|
|
101
|
-
parameters?:
|
|
102
|
-
examples?:
|
|
103
|
-
requestBodies?:
|
|
104
|
-
headers?:
|
|
105
|
-
securitySchemes?:
|
|
106
|
-
links?:
|
|
107
|
-
callbacks?:
|
|
95
|
+
schemas?: Record<string, SchemaObjectWithRef | ReferenceObject>;
|
|
96
|
+
responses?: Record<string, ResponseObjectWithRef | ReferenceObject>;
|
|
97
|
+
parameters?: Record<string, ParameterObjectWithRef | ReferenceObject>;
|
|
98
|
+
examples?: Record<string, ExampleObject | ReferenceObject>;
|
|
99
|
+
requestBodies?: Record<string, RequestBodyObjectWithRef | ReferenceObject>;
|
|
100
|
+
headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
|
|
101
|
+
securitySchemes?: Record<string, SecuritySchemeObject | ReferenceObject>;
|
|
102
|
+
links?: Record<string, LinkObject | ReferenceObject>;
|
|
103
|
+
callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
|
|
108
104
|
}
|
|
109
105
|
|
|
110
|
-
export type PathsObject =
|
|
106
|
+
export type PathsObject = Record<string, PathItemObject>;
|
|
111
107
|
|
|
112
|
-
export type PathsObjectWithRef =
|
|
108
|
+
export type PathsObjectWithRef = Record<string, PathItemObjectWithRef>;
|
|
113
109
|
|
|
114
110
|
export interface PathItemObject {
|
|
115
111
|
$ref?: string;
|
|
@@ -152,7 +148,7 @@ export interface OperationObject {
|
|
|
152
148
|
parameters?: ParameterObject[];
|
|
153
149
|
requestBody?: RequestBodyObject;
|
|
154
150
|
responses: ResponsesObject;
|
|
155
|
-
callbacks?:
|
|
151
|
+
callbacks?: Record<string, CallbackObject>;
|
|
156
152
|
deprecated?: boolean;
|
|
157
153
|
security?: SecurityRequirementObject[];
|
|
158
154
|
servers?: ServerObject[];
|
|
@@ -170,7 +166,7 @@ export interface OperationObjectWithRef {
|
|
|
170
166
|
parameters?: (ParameterObjectWithRef | ReferenceObject)[];
|
|
171
167
|
requestBody?: RequestBodyObjectWithRef | ReferenceObject;
|
|
172
168
|
responses: ResponsesObjectWithRef;
|
|
173
|
-
callbacks?:
|
|
169
|
+
callbacks?: Record<string, CallbackObjectWithRef | ReferenceObject>;
|
|
174
170
|
deprecated?: boolean;
|
|
175
171
|
security?: SecurityRequirementObject[];
|
|
176
172
|
servers?: ServerObject[];
|
|
@@ -197,9 +193,9 @@ export interface ParameterObject {
|
|
|
197
193
|
allowReserved?: boolean;
|
|
198
194
|
schema?: SchemaObject;
|
|
199
195
|
example?: any;
|
|
200
|
-
examples?:
|
|
196
|
+
examples?: Record<string, ExampleObject>;
|
|
201
197
|
//
|
|
202
|
-
content?:
|
|
198
|
+
content?: Record<string, MediaTypeObject>;
|
|
203
199
|
param?: Object;
|
|
204
200
|
// ignoring stylings: matrix, label, form, simple, spaceDelimited,
|
|
205
201
|
// pipeDelimited and deepObject
|
|
@@ -219,43 +215,43 @@ export interface ParameterObjectWithRef {
|
|
|
219
215
|
allowReserved?: boolean;
|
|
220
216
|
schema?: SchemaObjectWithRef | ReferenceObject;
|
|
221
217
|
example?: any;
|
|
222
|
-
examples?:
|
|
218
|
+
examples?: Record<string, ExampleObject | ReferenceObject>;
|
|
223
219
|
//
|
|
224
|
-
content?:
|
|
220
|
+
content?: Record<string, MediaTypeObjectWithRef>;
|
|
225
221
|
// ignoring stylings: matrix, label, form, simple, spaceDelimited,
|
|
226
222
|
// pipeDelimited and deepObject
|
|
227
223
|
}
|
|
228
224
|
|
|
229
225
|
export interface RequestBodyObject {
|
|
230
226
|
description?: string;
|
|
231
|
-
content:
|
|
227
|
+
content: Record<string, MediaTypeObject>;
|
|
232
228
|
required?: boolean;
|
|
233
229
|
}
|
|
234
230
|
|
|
235
231
|
export interface RequestBodyObjectWithRef {
|
|
236
232
|
description?: string;
|
|
237
|
-
content:
|
|
233
|
+
content: Record<string, MediaTypeObjectWithRef>;
|
|
238
234
|
required?: boolean;
|
|
239
235
|
}
|
|
240
236
|
|
|
241
237
|
export interface MediaTypeObject {
|
|
242
238
|
schema?: SchemaObject;
|
|
243
239
|
example?: any;
|
|
244
|
-
examples?:
|
|
245
|
-
encoding?:
|
|
240
|
+
examples?: Record<string, ExampleObject>;
|
|
241
|
+
encoding?: Record<string, EncodingObject>;
|
|
246
242
|
type?: any;
|
|
247
243
|
}
|
|
248
244
|
|
|
249
245
|
export interface MediaTypeObjectWithRef {
|
|
250
246
|
schema?: SchemaObjectWithRef | ReferenceObject;
|
|
251
247
|
example?: any;
|
|
252
|
-
examples?:
|
|
253
|
-
encoding?:
|
|
248
|
+
examples?: Record<string, ExampleObject | ReferenceObject>;
|
|
249
|
+
encoding?: Record<string, EncodingObjectWithRef>;
|
|
254
250
|
}
|
|
255
251
|
|
|
256
252
|
export interface EncodingObject {
|
|
257
253
|
contentType?: string;
|
|
258
|
-
headers?:
|
|
254
|
+
headers?: Record<string, HeaderObject>;
|
|
259
255
|
style?: string;
|
|
260
256
|
explode?: boolean;
|
|
261
257
|
allowReserved?: boolean;
|
|
@@ -263,35 +259,36 @@ export interface EncodingObject {
|
|
|
263
259
|
|
|
264
260
|
export interface EncodingObjectWithRef {
|
|
265
261
|
contentType?: string;
|
|
266
|
-
headers?:
|
|
262
|
+
headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
|
|
267
263
|
style?: string;
|
|
268
264
|
explode?: boolean;
|
|
269
265
|
allowReserved?: boolean;
|
|
270
266
|
}
|
|
271
267
|
|
|
272
|
-
export type ResponsesObject =
|
|
268
|
+
export type ResponsesObject = Record<string, ResponseObject>;
|
|
273
269
|
|
|
274
|
-
export type ResponsesObjectWithRef =
|
|
270
|
+
export type ResponsesObjectWithRef = Record<
|
|
271
|
+
string,
|
|
275
272
|
ResponseObjectWithRef | ReferenceObject
|
|
276
273
|
>;
|
|
277
274
|
|
|
278
275
|
export interface ResponseObject {
|
|
279
276
|
description: string;
|
|
280
|
-
headers?:
|
|
281
|
-
content?:
|
|
282
|
-
links?:
|
|
277
|
+
headers?: Record<string, HeaderObject>;
|
|
278
|
+
content?: Record<string, MediaTypeObject>;
|
|
279
|
+
links?: Record<string, LinkObject>;
|
|
283
280
|
}
|
|
284
281
|
|
|
285
282
|
export interface ResponseObjectWithRef {
|
|
286
283
|
description: string;
|
|
287
|
-
headers?:
|
|
288
|
-
content?:
|
|
289
|
-
links?:
|
|
284
|
+
headers?: Record<string, HeaderObjectWithRef | ReferenceObject>;
|
|
285
|
+
content?: Record<string, MediaTypeObjectWithRef>;
|
|
286
|
+
links?: Record<string, LinkObject | ReferenceObject>;
|
|
290
287
|
}
|
|
291
288
|
|
|
292
|
-
export type CallbackObject =
|
|
289
|
+
export type CallbackObject = Record<string, PathItemObject>;
|
|
293
290
|
|
|
294
|
-
export type CallbackObjectWithRef =
|
|
291
|
+
export type CallbackObjectWithRef = Record<string, PathItemObjectWithRef>;
|
|
295
292
|
|
|
296
293
|
export interface ExampleObject {
|
|
297
294
|
summary?: string;
|
|
@@ -303,7 +300,7 @@ export interface ExampleObject {
|
|
|
303
300
|
export interface LinkObject {
|
|
304
301
|
operationRef?: string;
|
|
305
302
|
operationId?: string;
|
|
306
|
-
parameters?:
|
|
303
|
+
parameters?: Record<string, any>;
|
|
307
304
|
requestBody?: any;
|
|
308
305
|
description?: string;
|
|
309
306
|
server?: ServerObject;
|
|
@@ -349,7 +346,7 @@ export type SchemaObject = Omit<
|
|
|
349
346
|
anyOf?: SchemaObject[];
|
|
350
347
|
not?: SchemaObject;
|
|
351
348
|
items?: SchemaObject;
|
|
352
|
-
properties?:
|
|
349
|
+
properties?: Record<string, SchemaObject>;
|
|
353
350
|
additionalProperties?: boolean | SchemaObject;
|
|
354
351
|
|
|
355
352
|
// OpenAPI additions
|
|
@@ -383,7 +380,7 @@ export type SchemaObjectWithRef = Omit<
|
|
|
383
380
|
anyOf?: (SchemaObject | ReferenceObject)[];
|
|
384
381
|
not?: SchemaObject | ReferenceObject;
|
|
385
382
|
items?: SchemaObject | ReferenceObject;
|
|
386
|
-
properties?:
|
|
383
|
+
properties?: Record<string, SchemaObject | ReferenceObject>;
|
|
387
384
|
additionalProperties?: boolean | SchemaObject | ReferenceObject;
|
|
388
385
|
|
|
389
386
|
// OpenAPI additions
|
|
@@ -399,7 +396,7 @@ export type SchemaObjectWithRef = Omit<
|
|
|
399
396
|
|
|
400
397
|
export interface DiscriminatorObject {
|
|
401
398
|
propertyName: string;
|
|
402
|
-
mapping?:
|
|
399
|
+
mapping?: Record<string, string>;
|
|
403
400
|
}
|
|
404
401
|
|
|
405
402
|
export interface XMLObject {
|
|
@@ -455,7 +452,7 @@ export interface OAuthFlowObject {
|
|
|
455
452
|
authorizationUrl?: string; // required for some
|
|
456
453
|
tokenUrl?: string; // required for some
|
|
457
454
|
refreshUrl?: string;
|
|
458
|
-
scopes:
|
|
455
|
+
scopes: Record<string, string>;
|
|
459
456
|
}
|
|
460
457
|
|
|
461
|
-
export type SecurityRequirementObject =
|
|
458
|
+
export type SecurityRequirementObject = Record<string, string[]>;
|