···3030 *
3131 * {@link https://json-schema.org/understanding-json-schema/reference/combining#allof allOf} can not be used to "extend" a schema to add more details to it in the sense of object-oriented inheritance. {@link https://json-schema.org/learn/glossary#instance Instances} must independently be valid against "all of" the schemas in the `allOf`. See the section on {@link https://json-schema.org/understanding-json-schema/reference/object#extending Extending Closed Schemas} for more information.
3232 */
3333- allOf?: ReadonlyArray<Document>;
3333+ allOf?: Array<Document>;
3434 /**
3535 * `anyOf`: (OR) Must be valid against _any_ of the subschemas
3636 *
3737 * To validate against `anyOf`, the given data must be valid against any (one or more) of the given subschemas.
3838 */
3939- anyOf?: ReadonlyArray<Document>;
3939+ anyOf?: Array<Document>;
4040 /**
4141 * The `const` keyword is used to restrict a value to a single value.
4242 */
···6262 /**
6363 * The `dependentRequired` {@link https://json-schema.org/learn/glossary#keyword keyword} conditionally requires that certain properties must be present if a given property is present in an object. For example, suppose we have a {@link https://json-schema.org/learn/glossary#schema schema} representing a customer. If you have their credit card number, you also want to ensure you have a billing address. If you don't have their credit card number, a billing address would not be required. We represent this dependency of one property on another using the `dependentRequired` keyword. The value of the `dependentRequired` keyword is an object. Each entry in the object maps from the name of a property, _p_, to an array of strings listing properties that are required if _p_ is present.
6464 */
6565- dependentRequired?: Record<string, ReadonlyArray<string>>;
6565+ dependentRequired?: Record<string, Array<string>>;
6666 /**
6767 * The `dependentSchemas` keyword conditionally applies a {@link https://json-schema.org/learn/glossary#subschema subschema} when a given property is present. This schema is applied in the same way {@link https://json-schema.org/understanding-json-schema/reference/combining#allof allOf} applies schemas. Nothing is merged or extended. Both schemas apply independently.
6868 */
···9090 *
9191 * You can use `enum` even without a type, to accept values of different types.
9292 */
9393- enum?: ReadonlyArray<unknown>;
9393+ enum?: Array<unknown>;
9494 /**
9595 * The `examples` keyword is a place to provide an array of examples that validate against the schema. This isn't used for validation, but may help with explaining the effect and purpose of the schema to a reader. Each entry should validate against the schema in which it resides, but that isn't strictly required. There is no need to duplicate the `default` value in the `examples` array, since `default` will be treated as another example.
9696 */
9797- examples?: ReadonlyArray<unknown>;
9797+ examples?: Array<unknown>;
9898 /**
9999 * The `format` keyword allows for basic semantic identification of certain kinds of string values that are commonly used. For example, because JSON doesn't have a "DateTime" type, dates need to be encoded as strings. `format` allows the schema author to indicate that the string value should be interpreted as a date. By default, `format` is just an annotation and does not effect validation.
100100 *
···126126 *
127127 * Careful consideration should be taken when using `oneOf` entries as the nature of it requires verification of _every_ sub-schema which can lead to increased processing times. Prefer `anyOf` where possible.
128128 */
129129- oneOf?: ReadonlyArray<Document>;
129129+ oneOf?: Array<Document>;
130130 /**
131131 * The boolean keywords `readOnly` and `writeOnly` are typically used in an API context. `readOnly` indicates that a value should not be modified. It could be used to indicate that a `PUT` request that changes a value would result in a `400 Bad Request` response. `writeOnly` indicates that a value may be set, but will remain hidden. In could be used to indicate you can set a value with a `PUT` request, but it would not be included when retrieving that record with a `GET` request.
132132 */
···187187 /**
188188 * `prefixItems` is an array, where each item is a schema that corresponds to each index of the document's array. That is, an array where the first element validates the first element of the input array, the second element validates the second element of the input array, etc.
189189 */
190190- prefixItems?: ReadonlyArray<Document>;
190190+ prefixItems?: Array<Document>;
191191 /**
192192 * The `unevaluatedItems` keyword is useful mainly when you want to add or disallow extra items to an array.
193193 *
···311311 *
312312 * The `required` keyword takes an array of zero or more strings. Each of these strings must be unique.
313313 */
314314- required?: ReadonlyArray<string>;
314314+ required?: Array<string>;
315315 /**
316316 * The `unevaluatedProperties` keyword is similar to `additionalProperties` except that it can recognize properties declared in subschemas. So, the example from the previous section can be rewritten without the need to redeclare properties.
317317 *
···2222 *
2323 * You can use `enum` even without a type, to accept values of different types.
2424 */
2525- enum?: ReadonlyArray<unknown>;
2525+ enum?: Array<unknown>;
2626 /**
2727 * Ranges of numbers are specified using a combination of the `minimum` and `maximum` keywords, (or `exclusiveMinimum` and `exclusiveMaximum` for expressing exclusive range).
2828 *
···128128 *
129129 * The `required` keyword takes an array of zero or more strings. Each of these strings must be unique.
130130 */
131131- required?: ReadonlyArray<string>;
131131+ required?: Array<string>;
132132 /**
133133 * The `title` and `description` keywords must be strings. A "title" will preferably be short, whereas a "description" will provide a more lengthy explanation about the purpose of the data described by the schema.
134134 */
+18-18
packages/spec-types/src/openapi/v2/spec.ts
···1717 /**
1818 * A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mime-types Mime Types}.
1919 */
2020- consumes?: ReadonlyArray<string>;
2020+ consumes?: Array<string>;
2121 /**
2222 * An object to hold data types produced and consumed by operations.
2323 */
···4545 /**
4646 * A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mime-types Mime Types}.
4747 */
4848- produces?: ReadonlyArray<string>;
4848+ produces?: Array<string>;
4949 /**
5050 * An object to hold responses that can be used across operations. This property _does not_ define global responses for all operations.
5151 */
···5353 /**
5454 * The transfer protocol of the API. Values MUST be from the list: `"http"`, `"https"`, `"ws"`, `"wss"`. If the `schemes` is not included, the default scheme to be used is the one used to access the Swagger definition itself.
5555 */
5656- schemes?: ReadonlyArray<'http' | 'https' | 'ws' | 'wss'>;
5656+ schemes?: Array<'http' | 'https' | 'ws' | 'wss'>;
5757 /**
5858 * A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
5959 */
6060- security?: ReadonlyArray<SecurityRequirementObject>;
6060+ security?: Array<SecurityRequirementObject>;
6161 /**
6262 * Security scheme definitions that can be used across the specification.
6363 */
···6969 /**
7070 * A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#operation-object Operation Object} must be declared. The tags that are not declared may be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.
7171 */
7272- tags?: ReadonlyArray<TagObject>;
7272+ tags?: Array<TagObject>;
7373}
74747575/**
···219219 /**
220220 * See {@link https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1 https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1}.
221221 */
222222- enum?: ReadonlyArray<unknown>;
222222+ enum?: Array<unknown>;
223223 /**
224224 * See {@link https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.2 https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.2}.
225225 */
···401401 /**
402402 * See {@link https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1 https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1}.
403403 */
404404- enum?: ReadonlyArray<unknown>;
404404+ enum?: Array<unknown>;
405405 /**
406406 * See {@link https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.2 https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.2}.
407407 */
···534534 /**
535535 * A list of MIME types the operation can consume. This overrides the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerConsumes `consumes`} definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mime-types Mime Types}.
536536 */
537537- consumes?: ReadonlyArray<string>;
537537+ consumes?: Array<string>;
538538 /**
539539 * Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is `false`.
540540 */
···554554 /**
555555 * A list of parameters that are applicable for this operation. If a parameter is already defined at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#pathItemParameters Path Item}, the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterName name} and {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterIn location}. The list can use the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#reference-object Reference Object} to link to parameters that are defined at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerParameters Swagger Object's parameters}. There can be one "body" parameter at most.
556556 */
557557- parameters?: ReadonlyArray<ParameterObject | ReferenceObject>;
557557+ parameters?: Array<ParameterObject | ReferenceObject>;
558558 /**
559559 * A list of MIME types the operation can produce. This overrides the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerProduces `produces`} definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#mime-types Mime Types}.
560560 */
561561- produces?: ReadonlyArray<string>;
561561+ produces?: Array<string>;
562562 /**
563563 * **Required**. The list of possible responses as they are returned from executing this operation.
564564 */
···566566 /**
567567 * The transfer protocol for the operation. Values MUST be from the list: `"http"`, `"https"`, `"ws"`, `"wss"`. The value overrides the Swagger Object {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerSchemes `schemes`} definition.
568568 */
569569- schemes?: ReadonlyArray<'http' | 'https' | 'ws' | 'wss'>;
569569+ schemes?: Array<'http' | 'https' | 'ws' | 'wss'>;
570570 /**
571571 * A declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerSecurity `security`}. To remove a top-level security declaration, an empty array can be used.
572572 */
573573- security?: ReadonlyArray<SecurityRequirementObject>;
573573+ security?: Array<SecurityRequirementObject>;
574574 /**
575575 * A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.
576576 */
···578578 /**
579579 * A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
580580 */
581581- tags?: ReadonlyArray<string>;
581581+ tags?: Array<string>;
582582 /**
583583 * A list of code samples associated with an operation.
584584 */
585585- 'x-codeSamples'?: ReadonlyArray<CodeSampleObject>;
585585+ 'x-codeSamples'?: Array<CodeSampleObject>;
586586}
587587588588/**
···739739 /**
740740 * See {@link https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1 https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1}.
741741 */
742742- enum?: ReadonlyArray<unknown>;
742742+ enum?: Array<unknown>;
743743 /**
744744 * See {@link https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.2 https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.2}.
745745 */
···897897 /**
898898 * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterName name} and {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#parameterIn location}. The list can use the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#reference-object Reference Object} to link to parameters that are defined at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#swaggerParameters Swagger Object's parameters}. There can be one "body" parameter at most.
899899 */
900900- parameters?: ReadonlyArray<ParameterObject | ReferenceObject>;
900900+ parameters?: Array<ParameterObject | ReferenceObject>;
901901 /**
902902 * A definition of a PATCH operation on this path.
903903 */
···13261326 *
13271327 * {@link https://json-schema.org/understanding-json-schema/reference/combining#allof allOf} can not be used to "extend" a schema to add more details to it in the sense of object-oriented inheritance. {@link https://json-schema.org/learn/glossary#instance Instances} must independently be valid against "all of" the schemas in the `allOf`. See the section on {@link https://json-schema.org/understanding-json-schema/reference/object#extending Extending Closed Schemas} for more information.
13281328 */
13291329- allOf?: ReadonlyArray<SchemaObject>;
13291329+ allOf?: Array<SchemaObject>;
13301330 /**
13311331 * Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the `required` property list. When used, the value MUST be the name of this schema or any schema that inherits it.
13321332 */
···14411441 /**
14421442 * Each name must correspond to a security scheme which is declared in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#securityDefinitions Security Definitions}. If the security scheme is of type `"oauth2"`, then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.
14431443 */
14441444- [name: string]: ReadonlyArray<string>;
14441444+ [name: string]: Array<string>;
14451445}
1446144614471447/**
+12-12
packages/spec-types/src/openapi/v3-1/spec.ts
···3434 /**
3535 * A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement (`{}`) can be included in the array.
3636 */
3737- security?: ReadonlyArray<SecurityRequirementObject>;
3737+ security?: Array<SecurityRequirementObject>;
3838 /**
3939 * An array of Server Objects, which provide connectivity information to a target server. If the `servers` property is not provided, or is an empty array, the default value would be a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-object Server Object} with a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#serverUrl url} value of `/`.
4040 */
4141- servers?: ReadonlyArray<ServerObject>;
4141+ servers?: Array<ServerObject>;
4242 /**
4343 * A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#operation-object Operation Object} must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.
4444 */
4545- tags?: ReadonlyArray<TagObject>;
4545+ tags?: Array<TagObject>;
4646 /**
4747 * The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the `callbacks` feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An {@link https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.1/webhook-example.yaml example} is available.
4848 */
···10701070 /**
10711071 * A list of parameters that are applicable for this operation. If a parameter is already defined at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#pathItemParameters Path Item}, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterName name} and {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterIn location}. The list can use the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#reference-object Reference Object} to link to parameters that are defined at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsParameters OpenAPI Object's components/parameters}.
10721072 */
10731073- parameters?: ReadonlyArray<ParameterObject | ReferenceObject>;
10731073+ parameters?: Array<ParameterObject | ReferenceObject>;
10741074 /**
10751075 * The request body applicable for this operation. The `requestBody` is fully supported in HTTP methods where the HTTP 1.1 specification {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.1 RFC7231} has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.1 GET}, {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.2 HEAD} and {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.5 DELETE}), `requestBody` is permitted but does not have well-defined semantics and SHOULD be avoided if possible.
10761076 */
···10821082 /**
10831083 * A declaration of which security mechanisms can be used for this operation. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. To make security optional, an empty security requirement (`{}`) can be included in the array. This definition overrides any declared top-level {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oasSecurity `security`}. To remove a top-level security declaration, an empty array can be used.
10841084 */
10851085- security?: ReadonlyArray<SecurityRequirementObject>;
10851085+ security?: Array<SecurityRequirementObject>;
10861086 /**
10871087 * An alternative `server` array to service this operation. If an alternative `server` object is specified at the Path Item Object or Root level, it will be overridden by this value.
10881088 */
10891089- servers?: ReadonlyArray<ServerObject>;
10891089+ servers?: Array<ServerObject>;
10901090 /**
10911091 * A short summary of what the operation does.
10921092 */
···10941094 /**
10951095 * A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
10961096 */
10971097- tags?: ReadonlyArray<string>;
10971097+ tags?: Array<string>;
10981098 /**
10991099 * A list of code samples associated with an operation.
11001100 */
11011101- 'x-codeSamples'?: ReadonlyArray<CodeSampleObject>;
11011101+ 'x-codeSamples'?: Array<CodeSampleObject>;
11021102}
1103110311041104/**
···13291329 /**
13301330 * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterName name} and {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameterIn location}. The list can use the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#reference-object Reference Object} to link to parameters that are defined at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsParameters OpenAPI Object's components/parameters}.
13311331 */
13321332- parameters?: ReadonlyArray<ParameterObject | ReferenceObject>;
13321332+ parameters?: Array<ParameterObject | ReferenceObject>;
13331333 /**
13341334 * A definition of a PATCH operation on this path.
13351335 */
···13451345 /**
13461346 * An alternative `server` array to service all operations in this path.
13471347 */
13481348- servers?: ReadonlyArray<ServerObject>;
13481348+ servers?: Array<ServerObject>;
13491349 /**
13501350 * An optional, string summary, intended to apply to all operations in this path.
13511351 */
···17051705 /**
17061706 * Each name MUST correspond to a security scheme which is declared in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsSecuritySchemes Security Schemes} under the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#components-object Components Object}. If the security scheme is of type `"oauth2"` or `"openIdConnect"`, then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band.
17071707 */
17081708- [name: string]: ReadonlyArray<string>;
17081708+ [name: string]: Array<string>;
17091709}
1710171017111711/**
···18571857 /**
18581858 * An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.
18591859 */
18601860- enum?: ReadonlyArray<string>;
18601860+ enum?: Array<string>;
18611861}
1862186218631863/**
+17-17
packages/spec-types/src/openapi/v3/spec.ts
···2929 /**
3030 * A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. Individual operations can override this definition. The list can be incomplete, up to being empty or absent. To make security explicitly optional, an empty security requirement (`{}`) can be included in the array.
3131 */
3232- security?: ReadonlyArray<SecurityRequirementObject>;
3232+ security?: Array<SecurityRequirementObject>;
3333 /**
3434 * An array of Server Objects, which provide connectivity information to a target server. If the `servers` field is not provided, or is an empty array, the default value would be a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#server-object Server Object} with a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#server-url url} value of `/`.
3535 */
3636- servers?: ReadonlyArray<ServerObject>;
3636+ servers?: Array<ServerObject>;
3737 /**
3838 * A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#operation-object Operation Object} must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.
3939 */
4040- tags?: ReadonlyArray<TagObject>;
4040+ tags?: Array<TagObject>;
4141}
42424343/**
···475475 /**
476476 * A list of parameters that are applicable for this operation. If a parameter is already defined in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#path-item-parameters Path Item}, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#parameter-name name} and {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#parameter-in location}. The list can use the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#reference-object Reference Object} to link to parameters that are defined in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#components-parameters OpenAPI Object's `components.parameters`}.
477477 */
478478- parameters?: ReadonlyArray<ParameterObject | ReferenceObject>;
478478+ parameters?: Array<ParameterObject | ReferenceObject>;
479479 /**
480480 * The request body applicable for this operation. The `requestBody` is only supported in HTTP methods where the HTTP 1.1 specification {@link https://tools.ietf.org/html/rfc7231#section-4.3.1 RFC7231} has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as {@link https://tools.ietf.org/html/rfc7231#section-4.3.1 GET}, {@link https://tools.ietf.org/html/rfc7231#section-4.3.2 HEAD} and {@link https://tools.ietf.org/html/rfc7231#section-4.3.5 DELETE}), `requestBody` SHALL be ignored by consumers.
481481 */
···487487 /**
488488 * A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement (`{}`) can be included in the array. This definition overrides any declared top-level {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#oas-security `security`}. To remove a top-level security declaration, an empty array can be used.
489489 */
490490- security?: ReadonlyArray<SecurityRequirementObject>;
490490+ security?: Array<SecurityRequirementObject>;
491491 /**
492492 * An alternative `servers` array to service this operation. If a `servers` array is specified at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#path-item-servers Path Item Object} or {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#oas-servers OpenAPI Object} level, it will be overridden by this value.
493493 */
494494- servers?: ReadonlyArray<ServerObject>;
494494+ servers?: Array<ServerObject>;
495495 /**
496496 * A short summary of what the operation does.
497497 */
···499499 /**
500500 * A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
501501 */
502502- tags?: ReadonlyArray<string>;
502502+ tags?: Array<string>;
503503 /**
504504 * A list of code samples associated with an operation.
505505 */
506506- 'x-codeSamples'?: ReadonlyArray<CodeSampleObject>;
506506+ 'x-codeSamples'?: Array<CodeSampleObject>;
507507}
508508509509/**
···650650 /**
651651 * A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#parameter-name name} and {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#parameter-in location}. The list can use the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#reference-object Reference Object} to link to parameters that are defined in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#components-parameters OpenAPI Object's `components.parameters`}.
652652 */
653653- parameters?: ReadonlyArray<ParameterObject | ReferenceObject>;
653653+ parameters?: Array<ParameterObject | ReferenceObject>;
654654 /**
655655 * A definition of a PATCH operation on this path.
656656 */
···666666 /**
667667 * An alternative `servers` array to service all operations in this path. If a `servers` array is specified at the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#oas-servers OpenAPI Object} level, it will be overridden by this value.
668668 */
669669- servers?: ReadonlyArray<ServerObject>;
669669+ servers?: Array<ServerObject>;
670670 /**
671671 * An optional string summary, intended to apply to all operations in this path.
672672 */
···870870 *
871871 * An instance validates successfully against this keyword if it validates successfully against all schemas defined by this keyword's value.
872872 */
873873- allOf?: ReadonlyArray<SchemaObject | ReferenceObject>;
873873+ allOf?: Array<SchemaObject | ReferenceObject>;
874874 /**
875875 * This keyword's value MUST be an array. This array MUST have at least one element.
876876 *
···879879 * An instance validates successfully against this keyword if it validates successfully against at least one schema defined by this
880880 keyword's value.
881881 */
882882- anyOf?: ReadonlyArray<SchemaObject | ReferenceObject>;
882882+ anyOf?: Array<SchemaObject | ReferenceObject>;
883883 /**
884884 * The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided. Unlike JSON Schema, the value MUST conform to the defined `type` for the Schema Object defined at the same level. For example, if `type` is `"string"`, then `default` can be `"foo"` but cannot be `1`.
885885 */
···907907 *
908908 * An instance validates successfully against this keyword if its value is equal to one of the elements in this keyword's array value.
909909 */
910910- enum?: ReadonlyArray<unknown>;
910910+ enum?: Array<unknown>;
911911 /**
912912 * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
913913 */
···10191019 *
10201020 * An instance validates successfully against this keyword if it validates successfully against exactly one schema defined by this keyword's value.
10211021 */
10221022- oneOf?: ReadonlyArray<SchemaObject | ReferenceObject>;
10221022+ oneOf?: Array<SchemaObject | ReferenceObject>;
10231023 /**
10241024 * The value of this keyword MUST be a string. This string SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect.
10251025 *
···10411041 *
10421042 * An object instance is valid against this keyword if its property set contains all elements in this keyword's array value.
10431043 */
10441044- required?: ReadonlyArray<string>;
10441044+ required?: Array<string>;
10451045 /**
10461046 * The value of both of these keywords MUST be a string.
10471047 *
···10891089 /**
10901090 * Each name MUST correspond to a security scheme which is declared in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#security-scheme-object Security Schemes} under the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#components-object Components Object}. If the security scheme is of type `"oauth2"` or `"openIdConnect"`, then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MUST be empty.
10911091 */
10921092- [name: string]: ReadonlyArray<string>;
10921092+ [name: string]: Array<string>;
10931093}
1094109410951095/**
···11961196 /**
11971197 * An enumeration of string values to be used if the substitution options are from a limited set. The array SHOULD NOT be empty.
11981198 */
11991199- enum?: ReadonlyArray<string>;
11991199+ enum?: Array<string>;
12001200}
1201120112021202/**