@@ -26,6 +26,8 @@ export interface LicenseObject {
2626 url ?: string ;
2727 /** An SPDX license identifier for the API. (OAS 3.1+) */
2828 identifier ?: string ;
29+ /** Specification Extensions */
30+ [ key : string ] : any ;
2931}
3032
3133/**
@@ -39,6 +41,8 @@ export interface ContactObject {
3941 url ?: string ;
4042 /** The email address of the contact person/organization. */
4143 email ?: string ;
44+ /** Specification Extensions */
45+ [ key : string ] : any ;
4246}
4347
4448/**
@@ -60,6 +64,8 @@ export interface InfoObject {
6064 license ?: LicenseObject ;
6165 /** The version of the OpenAPI document. */
6266 version : string ;
67+ /** Specification Extensions */
68+ [ key : string ] : any ;
6369}
6470
6571/**
@@ -71,6 +77,8 @@ export interface ExternalDocumentationObject {
7177 description ?: string ;
7278 /** The URL for the target documentation. */
7379 url : string ;
80+ /** Specification Extensions */
81+ [ key : string ] : any ;
7482}
7583
7684/**
@@ -90,6 +98,8 @@ export interface TagObject {
9098 parent ?: string ;
9199 /** A machine-readable string to categorize what sort of tag it is. (OAS 3.2+) */
92100 kind ?: string ;
101+ /** Specification Extensions */
102+ [ key : string ] : any ;
93103}
94104
95105/**
@@ -103,6 +113,8 @@ export interface ServerVariableObject {
103113 default : string ;
104114 /** An optional description for the server variable. */
105115 description ?: string ;
116+ /** Specification Extensions */
117+ [ key : string ] : any ;
106118}
107119
108120/**
@@ -118,6 +130,8 @@ export interface ServerObject {
118130 name ?: string ;
119131 /** A map between a variable name and its value. */
120132 variables ?: { [ variable : string ] : ServerVariableObject } ;
133+ /** Specification Extensions */
134+ [ key : string ] : any ;
121135}
122136
123137/** Represents the `discriminator` object used for polymorphism in OpenAPI schemas. */
@@ -126,6 +140,8 @@ export interface DiscriminatorObject {
126140 propertyName : string ;
127141 /** An optional map from a value to a schema reference. */
128142 mapping ?: { [ key : string ] : string } ;
143+ /** Specification Extensions */
144+ [ key : string ] : any ;
129145}
130146
131147/**
@@ -154,6 +170,8 @@ export interface XmlObject {
154170 * Values: 'element' | 'attribute' | 'text' | 'cdata' | 'none'.
155171 */
156172 nodeType ?: 'element' | 'attribute' | 'text' | 'cdata' | 'none' | string ;
173+ /** Specification Extensions */
174+ [ key : string ] : any ;
157175}
158176
159177/**
@@ -173,6 +191,8 @@ export interface LinkObject {
173191 description ?: string ;
174192 /** A server object to be used by the target operation. */
175193 server ?: ServerObject ;
194+ /** Specification Extensions */
195+ [ key : string ] : any ;
176196}
177197
178198/**
@@ -195,6 +215,8 @@ export interface HeaderObject {
195215 content ?: Record < string , { schema ?: SwaggerDefinition | { $ref : string } } > ;
196216 example ?: any ;
197217 examples ?: Record < string , any > ;
218+ /** Specification Extensions */
219+ [ key : string ] : any ;
198220}
199221
200222/** A simplified, normalized representation of an operation parameter. */
@@ -228,6 +250,8 @@ export interface Parameter {
228250 content ?: Record < string , { schema ?: SwaggerDefinition | { $ref : string } } > ;
229251 /** Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. */
230252 deprecated ?: boolean ;
253+ /** Specification Extensions */
254+ [ key : string ] : any ;
231255}
232256
233257/** A processed, unified representation of a single API operation (e.g., GET /users/{id}). */
@@ -267,6 +291,8 @@ export interface PathInfo {
267291 servers ?: ServerObject [ ] | undefined ;
268292 /** A map of possible out-of band callbacks related to the parent operation. (OAS 3+) */
269293 callbacks ?: Record < string , PathItem | { $ref : string } > ;
294+ /** Specification Extensions (e.g. x-codegen-extra) handled during extraction/normalization */
295+ [ key : string ] : any ;
270296}
271297
272298/** A single encoding definition for a multipart property. */
@@ -281,6 +307,8 @@ export interface EncodingProperty {
281307 explode ?: boolean ;
282308 /** allow reserved characters */
283309 allowReserved ?: boolean ;
310+ /** Specification Extensions */
311+ [ key : string ] : any ;
284312}
285313
286314/** Represents the request body of an operation. */
@@ -293,6 +321,8 @@ export interface RequestBody {
293321 /** Encoding object for multipart/form-data definitions */
294322 encoding ?: Record < string , EncodingProperty > ;
295323 } > ;
324+ /** Specification Extensions */
325+ [ key : string ] : any ;
296326}
297327
298328/** Represents a single response from an API Operation. */
@@ -305,6 +335,8 @@ export interface SwaggerResponse {
305335 links ?: Record < string , LinkObject | { $ref : string } > ;
306336 /** Maps a header name to its definition. */
307337 headers ?: Record < string , HeaderObject | { $ref : string } > ;
338+ /** Specification Extensions */
339+ [ key : string ] : any ;
308340}
309341
310342/**
@@ -384,6 +416,8 @@ export interface SwaggerDefinition {
384416
385417 xml ?: XmlObject ;
386418 externalDocs ?: ExternalDocumentationObject ;
419+ /** Specification Extensions */
420+ [ key : string ] : any ;
387421}
388422
389423/** Represents a security scheme recognized by the API. */
@@ -394,6 +428,8 @@ export interface SecurityScheme {
394428 scheme ?: 'bearer' | string ;
395429 flows ?: Record < string , unknown > ;
396430 openIdConnectUrl ?: string ;
431+ /** Specification Extensions */
432+ [ key : string ] : any ;
397433}
398434
399435/**
@@ -478,6 +514,8 @@ export interface SwaggerSpec {
478514 } ;
479515 /** Security definitions (Swagger 2.0). */
480516 securityDefinitions ?: { [ securityDefinitionName : string ] : SecurityScheme } ;
517+ /** Specification Extensions */
518+ [ key : string ] : any ;
481519}
482520
483521// ===================================================================================
0 commit comments