Requi
---
- ref : string|class-string|object
- The relative or absolute path to a security scheme.
+ The relative or absolute path to a security scheme.
- securityScheme : string
- The key into OpenApi->security array.
+ The key into OpenApi->security array.
- type : string|non-empty-array<string>
- The type of the security scheme.
+ The type of the security scheme.
- description : string
- A short description for security scheme.
+ A short description for security scheme.
- name : string
- The name of the header or query parameter to be used.
+ The name of the header or query parameter to be used.
- in : string
- Required The location of the API key.
+ Required The location of the API key.
- bearerFormat : string
A hint to the client to identify how the bearer token is formatted.
-Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.
+Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.
- scheme : string
- The name of the HTTP Authorization scheme.
+ The name of the HTTP Authorization scheme.
- openIdConnectUrl : string
- OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL.
+ OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL.
#### Reference
---
-- [OAI Security Scheme Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#securitySchemeObject).
+- [Security Scheme Object](https://spec.openapis.org/oas/v3.1.1.html#security-scheme-object-0)
### [Server](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Server.php)
@@ -1149,16 +1149,16 @@ An object representing a server.
This URL supports Server Variables and may be relative,
to indicate that the host location is relative to the location where the OpenAPI document is being served.
-Variable substitutions will be made when a variable is named in {brackets}.
+Variable substitutions will be made when a variable is named in {brackets}.
description : string
An optional string describing the host designated by the URL.
-CommonMark syntax may be used for rich text representation.
+CommonMark syntax may be used for rich text representation.
#### Reference
---
-- [OAI Server Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-object)
+- [Server Object](https://spec.openapis.org/oas/v3.1.1.html#server-object)
### [ServerVariable](https://github.com/zircote/swagger-php/tree/master/src/Annotations/ServerVariable.php)
@@ -1176,26 +1176,26 @@ An object representing a server variable for server URL template substitution.
---
- serverVariable : string
- The key into Server->variables array.
+ The key into Server->variables array.
- enum : array<string|int|float|bool|\UnitEnum>|class-string
- An enumeration of values to be used if the substitution options are from a limited set.
+ An enumeration of values to be used if the substitution options are from a limited set.
- default : string
The default value to use for substitution, and to send, if an alternate value is not supplied.
-Unlike the Schema Object's default, this value must be provided by the consumer.
+Unlike the Schema Object's default, this value must be provided by the consumer.
- variables : array
A map between a variable name and its value.
-The value is used for substitution in the server's URL template.
+The value is used for substitution in the server's URL template.
- description : string
An optional description for the server variable.
-CommonMark syntax MAY be used for rich text representation.
+CommonMark syntax MAY be used for rich text representation.
#### Reference
---
-- [OAI Server Variable Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-variable-object)
+- [Server Variable Object](https://spec.openapis.org/oas/v3.1.1.html#server-variable-object)
### [Tag](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Tag.php)
@@ -1213,14 +1213,14 @@ CommonMark syntax MAY be used for rich text representation.string
- The name of the tag.
+ The name of the tag.
description : string
- A short description for the tag. GFM syntax can be used for rich text representation.
+ A short description for the tag. GFM syntax can be used for rich text representation.
#### Reference
---
-- [OAI Tag Object]( https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md#tagObject).
+- [Tag Object](https://spec.openapis.org/oas/v3.1.1.html#tag-object)
### [Trace](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Trace.php)
@@ -1238,7 +1238,7 @@ CommonMark syntax MAY be used for rich text representation.
+ No details available.
### [Webhook](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Webhook.php)
@@ -1257,7 +1257,7 @@ Acts like a `PathItem` with the main difference being that it requires `webhook`
---
- webhook : string
- Key for the webhooks map.
+ Key for the webhooks map.
### [Xml](https://github.com/zircote/swagger-php/tree/master/src/Annotations/Xml.php)
@@ -1282,27 +1282,27 @@ When defined within the Items Object (items), it will affect the name of the ind
When defined alongside type being array (outside the items), it will affect the wrapping element
and only if wrapped is true .
-If wrapped is false , it will be ignored.
+If wrapped is false , it will be ignored.
namespace : string
- The URL of the namespace definition. Value SHOULD be in the form of a URL.
+ The URL of the namespace definition. Value SHOULD be in the form of a URL.
prefix : string
- The prefix to be used for the name.
+ The prefix to be used for the name.
attribute : bool
Declares whether the property definition translates to an attribute instead of an element.
-Default value is false .
+Default value is false .
wrapped : bool
MAY be used only for an array definition.
Signifies whether the array is wrapped (for example <books><book/><book/></books> )
or unwrapped (<book/><book/> ).
-Default value is false. The definition takes effect only when defined alongside type being array (outside the items).
+Default value is false. The definition takes effect only when defined alongside type being array (outside the items).
#### Reference
---
-- [OAI XML Object](https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md#xmlObject).
+- [XML Object](https://spec.openapis.org/oas/v3.1.1.html#xml-object)
### [XmlContent](https://github.com/zircote/swagger-php/tree/master/src/Annotations/XmlContent.php)
diff --git a/docs/reference/attributes.md b/docs/reference/attributes.md
index b6b28be53..7bd1f5ba9 100644
--- a/docs/reference/attributes.md
+++ b/docs/reference/attributes.md
@@ -24,40 +24,40 @@ In addition to this page, there are also a number of [examples](https://github.c
---
- ref : string|class-string|object|null
- The relative or absolute path to the endpoint.
+ The relative or absolute path to the endpoint.
- schema : string|null
- The key into Components->schemas array.
+ The key into Components->schemas array.
- title : string|null
Can be used to decorate a user interface with information about the data produced by this user interface.
-Preferably short; use description for more details.
+Preferably short; use description for more details.
- description : string|null
- A description will provide explanation about the purpose of the instance described by this schema.
+ A description will provide explanation about the purpose of the instance described by this schema.
- maxProperties : int|null
The maximum number of properties allowed in an object instance.
An object instance is valid against this property if its number of properties is less than, or equal to, the
-value of this attribute.
+value of this attribute.
- minProperties : int|null
The minimum number of properties allowed in an object instance.
An object instance is valid against this property if its number of properties is greater than, or equal to, the
-value of this attribute.
+value of this attribute.
- required : string[]
An object instance is valid against this property if its property set contains all elements in this property's
-array value.
+array value.
- properties : Property[]
A collection of properties to define for an object.
-Each property is represented as an instance of the Property class.
+Each property is represented as an instance of the Property class.
- type : string|non-empty-array<string>|null
The type of the schema/property.
OpenApi v3.0: The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
-Since OpenApi v3.1 an array of types may be used.
+Since OpenApi v3.1 an array of types may be used.
- format : string|null
- The extending format for the previously mentioned type. See Data Type Formats for further details.
+ The extending format for the previously mentioned type.
- items : OpenApi\Attributes\Items|null
- Required if type is "array". Describes the type of items in the array.
+ Required if type is "array". Describes the type of items in the array.
- collectionFormat : string|null
Determines the format of the array if type array is used.
@@ -68,57 +68,57 @@ Possible values are:
- pipes: pipe separated values foo|bar.
- multi: corresponds to multiple parameter instances instead of multiple values for a single instance
foo=bar&foo=baz. This is valid only for parameters of type query or formData . Default
-value is csv.
+value is csv.
- default : mixed|null
- Sets a default value to the parameter. The type of the value depends on the defined type.
+ Sets a default value to the parameter. The type of the value depends on the defined type.
- maximum : int|float
- The maximum value allowed for a numeric property. This value must be a number.
+ The maximum value allowed for a numeric property. This value must be a number.
- exclusiveMaximum : int|float|bool|null
A boolean indicating whether the maximum value is excluded from the set of valid values.
-When set to true, the maximum value is excluded, and when false or not specified, it is included.
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
- minimum : int|float
- The minimum value allowed for a numeric property. This value must be a number.
+ The minimum value allowed for a numeric property. This value must be a number.
- exclusiveMinimum : int|float|bool|null
A boolean indicating whether the minimum value is excluded from the set of valid values.
-When set to true, the minimum value is excluded, and when false or not specified, it is included.
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
- maxLength : int|null
The maximum length of a string property.
A string instance is valid against this property if its length is less than, or equal to, the value of this
-attribute.
+attribute.
- minLength : int|null
The minimum length of a string property.
A string instance is valid against this property if its length is greater than, or equal to, the value of this
-attribute.
+attribute.
- maxItems : int|null
The maximum number of items allowed in an array property.
An array instance is valid against this property if its number of items is less than, or equal to, the value of
-this attribute.
+this attribute.
- minItems : int|null
The minimum number of items allowed in an array property.
An array instance is valid against this property if its number of items is greater than, or equal to, the value
-of this attribute.
+of this attribute.
- uniqueItems : bool|null
A boolean value indicating whether all items in an array property must be unique.
-If this attribute is set to true, then all items in the array must be unique.
+If this attribute is set to true, then all items in the array must be unique.
- pattern : string|null
- A string instance is considered valid if the regular expression matches the instance successfully.
+ A string instance is considered valid if the regular expression matches the instance successfully.
- enum : array<string|int|float|bool|\UnitEnum|null>|class-string|null
A collection of allowable values for a property.
A property instance is valid against this attribute if its value is one of the values specified in this
-collection.
+collection.
- discriminator : OpenApi\Attributes\Discriminator|null
Adds support for polymorphism.
The discriminator is an object name that is used to differentiate between other schemas which may satisfy the
-payload description. See Composition and Inheritance for more details.
+payload description. See Composition and Inheritance for more details.
- readOnly : bool|null
Declares the property as "read only".
@@ -127,7 +127,7 @@ Relevant only for Schema "properties" definitions.
This means that it may be sent as part of a response but should not be sent as part of the request.
If the property is marked as readOnly being true and is in the required list, the required will take effect on
the response only. A property must not be marked as both readOnly and writeOnly being true. Default value is
-false.
+false.
- writeOnly : bool|null
Declares the property as "write only".
@@ -135,46 +135,46 @@ Relevant only for Schema "properties" definitions.
Therefore, it may be sent as part of a request but should not be sent as part of the response.
If the property is marked as writeOnly being true and is in the required list, the required will take effect on
the request only. A property must not be marked as both readOnly and writeOnly being true. Default value is
-false.
+false.
- xml : OpenApi\Attributes\Xml|null
This may be used only on properties schemas.
It has no effect on root schemas.
-Adds additional metadata to describe the XML representation of this property.
+Adds additional metadata to describe the XML representation of this property.
- externalDocs : OpenApi\Attributes\ExternalDocumentation|null
- Additional external documentation for this schema.
+ Additional external documentation for this schema.
- example : mixed|null
A free-form property to include an example of an instance for this schema.
To represent examples that cannot naturally be represented in JSON or YAML, a string value can be used to
-contain the example with escaping where necessary.
+contain the example with escaping where necessary.
- nullable : bool|null
Allows sending a null value for the defined schema.
Default value is false.
This must not be used when using OpenApi version 3.1,
-instead make the "type" property an array and add "null" as a possible type.
+instead make the "type" property an array and add "null" as a possible type.
- deprecated : bool|null
Specifies that a schema is deprecated and should be transitioned out of usage.
-Default value is false.
+Default value is false.
- allOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against all schemas
-defined by this property's value.
+defined by this property's value.
- anyOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against at least one
-schema defined by this property's value.
+schema defined by this property's value.
- oneOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against exactly one schema
-defined by this property's value.
+defined by this property's value.
- additionalProperties : OpenApi\Attributes\AdditionalProperties|bool|null
- http://json-schema.org/latest/json-schema-validation.html#anchor64.
+ http://json-schema.org/latest/json-schema-validation.html#anchor64.
- x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
- attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Attachable](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Attachable.php)
@@ -189,7 +189,7 @@ These will be ignored but can be used for custom processing.array
- No details available.
+ No details available.
### [Components](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Components.php)
@@ -208,30 +208,30 @@ These will be ignored but can be used for custom processing.array<Schema|OA\Schema>|null
- Reusable Schemas.
+ Reusable Schemas.
responses : Response[]|null
- Reusable Responses.
+ Reusable Responses.
parameters : Parameter[]|null
- Reusable Parameters.
+ Reusable Parameters.
requestBodies : RequestBody[]|null
- Reusable Request Bodies.
+ Reusable Request Bodies.
examples : array<Examples>|null
- Reusable Examples.
+ Reusable Examples.
headers : Header[]|null
- Reusable Headers.
+ Reusable Headers.
securitySchemes : SecurityScheme[]|null
- Reusable Security Schemes.
+ Reusable Security Schemes.
links : Link[]|null
- Reusable Links.
+ Reusable Links.
callbacks : array|null
- Reusable Callbacks.
+ Reusable Callbacks.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Contact](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Contact.php)
@@ -250,18 +250,18 @@ These will be ignored but can be used for custom processing.string|null
- The identifying name of the contact person/organization.
+ The identifying name of the contact person/organization.
url : string|null
- The URL pointing to the contact information.
+ The URL pointing to the contact information.
email : string|null
- The email address of the contact person/organization.
+ The email address of the contact person/organization.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [CookieParameter](https://github.com/zircote/swagger-php/tree/master/src/Attributes/CookieParameter.php)
@@ -280,29 +280,29 @@ These will be ignored but can be used for custom processing.string|null
- The key into Components::parameters or PathItem::parameters array.
+ The key into Components::parameters or PathItem::parameters array.
name : string|null
The (case-sensitive) name of the parameter.
If in is "path", the name field must correspond to the associated path segment from the path field in the Paths Object.
If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition shall be ignored.
-For all other cases, the name corresponds to the parameter name used by the in property.
+For all other cases, the name corresponds to the parameter name used by the in property.
description : string|null
A brief description of the parameter.
This could contain examples of use.
-CommonMark syntax may be used for rich text representation.
+CommonMark syntax may be used for rich text representation.
in : string|null
- This takes 'cookie' as the default location.
+ This takes 'cookie' as the default location.
required : bool|null
Determines whether this parameter is mandatory.
If the parameter location is "path", this property is required and its value must be true.
-Otherwise, the property may be included and its default value is false.
+Otherwise, the property may be included and its default value is false.
deprecated : bool|null
- Specifies that a parameter is deprecated and should be transitioned out of usage.
+ Specifies that a parameter is deprecated and should be transitioned out of usage.
allowEmptyValue : bool|null
Sets the ability to pass empty-valued parameters.
@@ -310,61 +310,61 @@ This is valid only for query parameters and allows sending a parameter with an e
Default value is false.
-If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
+If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
ref : string|class-string|object|null
- The relative or absolute path to the endpoint.
+ The relative or absolute path to the endpoint.
schema : OpenApi\Attributes\Schema|null
- The schema defining the type used for the parameter.
+ The schema defining the type used for the parameter.
example : mixed|null
Example of the media type.
The example should match the specified schema and encoding properties if present.
The example object is mutually exclusive of the examples object.
Furthermore, if referencing a schema which contains an example, the example value shall override the example provided by the schema.
-To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.
+To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.
examples : array<Examples>
Examples of the parameter.
Each example should contain a value in the correct format as specified in the parameter encoding.
The examples object is mutually exclusive of the example object.
-Furthermore, if referencing a schema which contains an example, the examples value shall override the example provided by the schema.
+Furthermore, if referencing a schema which contains an example, the examples value shall override the example provided by the schema.
content : array<MediaType>|JsonContent|XmlContent|Attachable|null
A map containing the representations for the parameter.
The key is the media type and the value describes it.
-The map must only contain one entry.
+The map must only contain one entry.
style : string|null
Describes how the parameter value will be serialized depending on the type of the parameter value.
-Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.
+Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.
explode : bool|null
When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.
For other types of parameters this property has no effect.
When style is form, the default value is true.
-For all other styles, the default value is false.
+For all other styles, the default value is false.
allowReserved : bool|null
Determines whether the parameter value should allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding.
This property only applies to parameters with an in value of query.
-The default value is false.
+The default value is false.
spaceDelimited : array|null
Space separated array values.
-This option replaces collectionFormat equal to ssv from OpenAPI 2.0.
+This option replaces collectionFormat equal to ssv from OpenAPI 2.0.
pipeDelimited : array|null
Pipe separated array values.
-This option replaces collectionFormat equal to pipes from OpenAPI 2.0.
+This option replaces collectionFormat equal to pipes from OpenAPI 2.0.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Delete](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Delete.php)
@@ -383,19 +383,19 @@ These will be ignored but can be used for custom processing.string|null
- Key in the OpenApi "Paths Object" for this operation.
+ Key in the OpenApi "Paths Object" for this operation.
operationId : string|null
Unique string used to identify the operation.
The id must be unique among all operations described in the API.
Tools and libraries may use the operationId to uniquely identify an operation, therefore, it is recommended to
-follow common programming naming conventions.
+follow common programming naming conventions.
description : string|null
A verbose explanation of the operation behavior.
-CommonMark syntax MAY be used for rich text representation.
+CommonMark syntax MAY be used for rich text representation.
summary : string|null
- A short summary of what the operation does.
+ A short summary of what the operation does.
security : array|null
A declaration of which security mechanisms can be used for this operation.
@@ -404,22 +404,22 @@ The list of values includes alternative security requirement objects that can be
Only one of the security requirement objects need to be satisfied to authorize a request.
This definition overrides any declared top-level security.
-To remove a top-level security declaration, an empty array can be used.
+To remove a top-level security declaration, an empty array can be used.
servers : Server[]
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.
+this value.
requestBody : OpenApi\Attributes\RequestBody|null
The request body applicable for this operation.
The requestBody is only supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly
defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody shall be ignored
-by consumers.
+by consumers.
tags : string[]
A list of tags for API documentation control.
-Tags can be used for logical grouping of operations by resources or any other qualifier.
+Tags can be used for logical grouping of operations by resources or any other qualifier.
parameters : Parameter[]
A list of parameters that are applicable for this operation.
@@ -429,9 +429,9 @@ The list must not include duplicated parameters.
A unique parameter is defined by a combination of a name and location.
The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object's
-components/parameters.
+components/parameters.
responses : Response[]
- The list of possible responses as they are returned from executing this operation.
+ The list of possible responses as they are returned from executing this operation.
callbacks : array|null
A map of possible out-of band callbacks related to the parent operation.
@@ -439,22 +439,22 @@ The key is a unique identifier for the Callback Object.
Each value in the map is a Callback Object that describes a request that may be initiated by the API provider
and the expected responses. The key value used to identify the callback object is an expression, evaluated at
-runtime, that identifies a URL to use for the callback operation.
+runtime, that identifies a URL to use for the callback operation.
externalDocs : OpenApi\Attributes\ExternalDocumentation|null
- Additional external documentation for this operation.
+ Additional external documentation for this operation.
deprecated : bool|null
Declares this operation to be deprecated.
Consumers should refrain from usage of the declared operation.
-Default value is false.
+Default value is false.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Discriminator](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Discriminator.php)
@@ -473,16 +473,16 @@ These will be ignored but can be used for custom processing.string|null
- The name of the property in the payload that will hold the discriminator value.
+ The name of the property in the payload that will hold the discriminator value.
mapping : string[]|null
- An object to hold mappings between payload values and schema names or references.
+ An object to hold mappings between payload values and schema names or references.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Examples](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Examples.php)
@@ -501,39 +501,39 @@ These will be ignored but can be used for custom processing.string|null
- The key into `#/components/examples`.
+ The key into `#/components/examples`.
summary : string|null
- Short description for the example.
+ Short description for the example.
description : string|null
Embedded literal example.
The value field and externalValue field are mutually exclusive.
To represent examples of media types that cannot naturally be represented
-in JSON or YAML, use a string value to contain the example, escaping where necessary.
+in JSON or YAML, use a string value to contain the example, escaping where necessary.
value : array|string|int|null
Embedded literal example.
The value field and externalValue field are mutually exclusive.
To represent examples of media types that cannot naturally be represented
-in JSON or YAML, use a string value to contain the example, escaping where necessary.
+in JSON or YAML, use a string value to contain the example, escaping where necessary.
externalValue : string|null
An URL that points to the literal example.
This provides the capability to reference examples that cannot easily be included
in JSON or YAML documents.
-The value field and externalValue field are mutually exclusive.
+The value field and externalValue field are mutually exclusive.
ref : string|class-string|object|null
- The relative or absolute path to an example.
+ The relative or absolute path to an example.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [ExternalDocumentation](https://github.com/zircote/swagger-php/tree/master/src/Attributes/ExternalDocumentation.php)
@@ -552,16 +552,16 @@ These will be ignored but can be used for custom processing.string|null
- A short description of the target documentation. GFM syntax can be used for rich text representation.
+ A short description of the target documentation. GFM syntax can be used for rich text representation.
url : string|null
- The URL for the target documentation.
+ The URL for the target documentation.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Flow](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Flow.php)
@@ -582,30 +582,30 @@ These will be ignored but can be used for custom processing.string|null
The authorization url to be used for this flow.
-This must be in the form of an url.
+This must be in the form of an url.
tokenUrl : string|null
The token URL to be used for this flow.
-This must be in the form of an url.
+This must be in the form of an url.
refreshUrl : string|null
The URL to be used for obtaining refresh tokens.
-This must be in the form of an url.
+This must be in the form of an url.
flow : string|null
Flow name.
-One of ['implicit', 'password', 'authorizationCode', 'clientCredentials'].
+One of ['implicit', 'password', 'authorizationCode', 'clientCredentials'].
scopes : array|null
The available scopes for the OAuth2 security scheme.
-A map between the scope name and a short description for it.
+A map between the scope name and a short description for it.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Get](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Get.php)
@@ -624,19 +624,19 @@ These will be ignored but can be used for custom processing.string|null
- Key in the OpenApi "Paths Object" for this operation.
+ Key in the OpenApi "Paths Object" for this operation.
operationId : string|null
Unique string used to identify the operation.
The id must be unique among all operations described in the API.
Tools and libraries may use the operationId to uniquely identify an operation, therefore, it is recommended to
-follow common programming naming conventions.
+follow common programming naming conventions.
description : string|null
A verbose explanation of the operation behavior.
-CommonMark syntax MAY be used for rich text representation.
+CommonMark syntax MAY be used for rich text representation.
summary : string|null
- A short summary of what the operation does.
+ A short summary of what the operation does.
security : array|null
A declaration of which security mechanisms can be used for this operation.
@@ -645,22 +645,22 @@ The list of values includes alternative security requirement objects that can be
Only one of the security requirement objects need to be satisfied to authorize a request.
This definition overrides any declared top-level security.
-To remove a top-level security declaration, an empty array can be used.
+To remove a top-level security declaration, an empty array can be used.
servers : Server[]
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.
+this value.
requestBody : OpenApi\Attributes\RequestBody|null
The request body applicable for this operation.
The requestBody is only supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly
defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody shall be ignored
-by consumers.
+by consumers.
tags : string[]
A list of tags for API documentation control.
-Tags can be used for logical grouping of operations by resources or any other qualifier.
+Tags can be used for logical grouping of operations by resources or any other qualifier.
parameters : Parameter[]
A list of parameters that are applicable for this operation.
@@ -670,9 +670,9 @@ The list must not include duplicated parameters.
A unique parameter is defined by a combination of a name and location.
The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object's
-components/parameters.
+components/parameters.
responses : Response[]
- The list of possible responses as they are returned from executing this operation.
+ The list of possible responses as they are returned from executing this operation.
callbacks : array|null
A map of possible out-of band callbacks related to the parent operation.
@@ -680,22 +680,22 @@ The key is a unique identifier for the Callback Object.
Each value in the map is a Callback Object that describes a request that may be initiated by the API provider
and the expected responses. The key value used to identify the callback object is an expression, evaluated at
-runtime, that identifies a URL to use for the callback operation.
+runtime, that identifies a URL to use for the callback operation.
externalDocs : OpenApi\Attributes\ExternalDocumentation|null
- Additional external documentation for this operation.
+ Additional external documentation for this operation.
deprecated : bool|null
Declares this operation to be deprecated.
Consumers should refrain from usage of the declared operation.
-Default value is false.
+Default value is false.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Head](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Head.php)
@@ -714,19 +714,19 @@ These will be ignored but can be used for custom processing.string|null
- Key in the OpenApi "Paths Object" for this operation.
+ Key in the OpenApi "Paths Object" for this operation.
operationId : string|null
Unique string used to identify the operation.
The id must be unique among all operations described in the API.
Tools and libraries may use the operationId to uniquely identify an operation, therefore, it is recommended to
-follow common programming naming conventions.
+follow common programming naming conventions.
description : string|null
A verbose explanation of the operation behavior.
-CommonMark syntax MAY be used for rich text representation.
+CommonMark syntax MAY be used for rich text representation.
summary : string|null
- A short summary of what the operation does.
+ A short summary of what the operation does.
security : array|null
A declaration of which security mechanisms can be used for this operation.
@@ -735,22 +735,22 @@ The list of values includes alternative security requirement objects that can be
Only one of the security requirement objects need to be satisfied to authorize a request.
This definition overrides any declared top-level security.
-To remove a top-level security declaration, an empty array can be used.
+To remove a top-level security declaration, an empty array can be used.
servers : Server[]
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.
+this value.
requestBody : OpenApi\Attributes\RequestBody|null
The request body applicable for this operation.
The requestBody is only supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly
defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody shall be ignored
-by consumers.
+by consumers.
tags : string[]
A list of tags for API documentation control.
-Tags can be used for logical grouping of operations by resources or any other qualifier.
+Tags can be used for logical grouping of operations by resources or any other qualifier.
parameters : Parameter[]
A list of parameters that are applicable for this operation.
@@ -760,9 +760,9 @@ The list must not include duplicated parameters.
A unique parameter is defined by a combination of a name and location.
The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object's
-components/parameters.
+components/parameters.
responses : Response[]
- The list of possible responses as they are returned from executing this operation.
+ The list of possible responses as they are returned from executing this operation.
callbacks : array|null
A map of possible out-of band callbacks related to the parent operation.
@@ -770,22 +770,22 @@ The key is a unique identifier for the Callback Object.
Each value in the map is a Callback Object that describes a request that may be initiated by the API provider
and the expected responses. The key value used to identify the callback object is an expression, evaluated at
-runtime, that identifies a URL to use for the callback operation.
+runtime, that identifies a URL to use for the callback operation.
externalDocs : OpenApi\Attributes\ExternalDocumentation|null
- Additional external documentation for this operation.
+ Additional external documentation for this operation.
deprecated : bool|null
Declares this operation to be deprecated.
Consumers should refrain from usage of the declared operation.
-Default value is false.
+Default value is false.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Header](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Header.php)
@@ -804,20 +804,20 @@ These will be ignored but can be used for custom processing.string|class-string|object|null
- The relative or absolute path to the endpoint.
+ The relative or absolute path to the endpoint.
header : string|null
- No details available.
+ No details available.
description : string|null
A brief description of the parameter.
This could contain examples of use.
-CommonMark syntax MAY be used for rich text representation.
+CommonMark syntax MAY be used for rich text representation.
required : bool|null
- No details available.
+ No details available.
schema : OpenApi\Attributes\Schema|null
- Schema object.
+ Schema object.
deprecated : bool|null
- Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.
+ Specifies that a parameter is deprecated and SHOULD be transitioned out of usage.
allowEmptyValue : bool|null
Sets the ability to pass empty-valued parameters.
@@ -825,14 +825,14 @@ This is valid only for query parameters and allows sending a parameter with an e
Default value is false.
-If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored.
+If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [HeaderParameter](https://github.com/zircote/swagger-php/tree/master/src/Attributes/HeaderParameter.php)
@@ -851,29 +851,29 @@ These will be ignored but can be used for custom processing.string|null
- The key into Components::parameters or PathItem::parameters array.
+ The key into Components::parameters or PathItem::parameters array.
name : string|null
The (case-sensitive) name of the parameter.
If in is "path", the name field must correspond to the associated path segment from the path field in the Paths Object.
If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition shall be ignored.
-For all other cases, the name corresponds to the parameter name used by the in property.
+For all other cases, the name corresponds to the parameter name used by the in property.
description : string|null
A brief description of the parameter.
This could contain examples of use.
-CommonMark syntax may be used for rich text representation.
+CommonMark syntax may be used for rich text representation.
in : string|null
- This takes 'header' as the default location.
+ This takes 'header' as the default location.
required : bool|null
Determines whether this parameter is mandatory.
If the parameter location is "path", this property is required and its value must be true.
-Otherwise, the property may be included and its default value is false.
+Otherwise, the property may be included and its default value is false.
deprecated : bool|null
- Specifies that a parameter is deprecated and should be transitioned out of usage.
+ Specifies that a parameter is deprecated and should be transitioned out of usage.
allowEmptyValue : bool|null
Sets the ability to pass empty-valued parameters.
@@ -881,61 +881,61 @@ This is valid only for query parameters and allows sending a parameter with an e
Default value is false.
-If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
+If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue shall be ignored.
ref : string|class-string|object|null
- The relative or absolute path to the endpoint.
+ The relative or absolute path to the endpoint.
schema : OpenApi\Attributes\Schema|null
- The schema defining the type used for the parameter.
+ The schema defining the type used for the parameter.
example : mixed|null
Example of the media type.
The example should match the specified schema and encoding properties if present.
The example object is mutually exclusive of the examples object.
Furthermore, if referencing a schema which contains an example, the example value shall override the example provided by the schema.
-To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.
+To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.
examples : array<Examples>
Examples of the parameter.
Each example should contain a value in the correct format as specified in the parameter encoding.
The examples object is mutually exclusive of the example object.
-Furthermore, if referencing a schema which contains an example, the examples value shall override the example provided by the schema.
+Furthermore, if referencing a schema which contains an example, the examples value shall override the example provided by the schema.
content : array<MediaType>|JsonContent|XmlContent|Attachable|null
A map containing the representations for the parameter.
The key is the media type and the value describes it.
-The map must only contain one entry.
+The map must only contain one entry.
style : string|null
Describes how the parameter value will be serialized depending on the type of the parameter value.
-Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.
+Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.
explode : bool|null
When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map.
For other types of parameters this property has no effect.
When style is form, the default value is true.
-For all other styles, the default value is false.
+For all other styles, the default value is false.
allowReserved : bool|null
Determines whether the parameter value should allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding.
This property only applies to parameters with an in value of query.
-The default value is false.
+The default value is false.
spaceDelimited : array|null
Space separated array values.
-This option replaces collectionFormat equal to ssv from OpenAPI 2.0.
+This option replaces collectionFormat equal to ssv from OpenAPI 2.0.
pipeDelimited : array|null
Pipe separated array values.
-This option replaces collectionFormat equal to pipes from OpenAPI 2.0.
+This option replaces collectionFormat equal to pipes from OpenAPI 2.0.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Info](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Info.php)
@@ -954,28 +954,28 @@ These will be ignored but can be used for custom processing.string|null
- The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).
+ The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).
description : string|null
A short description of the application.
-CommonMark syntax may be used for rich text representation.
+CommonMark syntax may be used for rich text representation.
title : string|null
- The title of the application.
+ The title of the application.
termsOfService : string|null
An URL to the Terms of Service for the API.
-Must be in the format of an url.
+Must be in the format of an url.
contact : OpenApi\Attributes\Contact|null
- The contact information for the exposed API.
+ The contact information for the exposed API.
license : OpenApi\Attributes\License|null
- The license information for the exposed API.
+ The license information for the exposed API.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Items](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Items.php)
@@ -994,40 +994,40 @@ These will be ignored but can be used for custom processing.string|class-string|object|null
- The relative or absolute path to the endpoint.
+ The relative or absolute path to the endpoint.
schema : string|null
- The key into Components->schemas array.
+ The key into Components->schemas array.
title : string|null
Can be used to decorate a user interface with information about the data produced by this user interface.
-Preferably short; use description for more details.
+Preferably short; use description for more details.
description : string|null
- A description will provide explanation about the purpose of the instance described by this schema.
+ A description will provide explanation about the purpose of the instance described by this schema.
maxProperties : int|null
The maximum number of properties allowed in an object instance.
An object instance is valid against this property if its number of properties is less than, or equal to, the
-value of this attribute.
+value of this attribute.
minProperties : int|null
The minimum number of properties allowed in an object instance.
An object instance is valid against this property if its number of properties is greater than, or equal to, the
-value of this attribute.
+value of this attribute.
required : string[]
An object instance is valid against this property if its property set contains all elements in this property's
-array value.
+array value.
properties : Property[]
A collection of properties to define for an object.
-Each property is represented as an instance of the Property class.
+Each property is represented as an instance of the Property class.
type : string|non-empty-array<string>|null
The type of the schema/property.
OpenApi v3.0: The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
-Since OpenApi v3.1 an array of types may be used.
+Since OpenApi v3.1 an array of types may be used.
format : string|null
- The extending format for the previously mentioned type. See Data Type Formats for further details.
+ The extending format for the previously mentioned type.
items : OpenApi\Attributes\Items|null
- Required if type is "array". Describes the type of items in the array.
+ Required if type is "array". Describes the type of items in the array.
collectionFormat : string|null
Determines the format of the array if type array is used.
@@ -1038,57 +1038,57 @@ Possible values are:
- pipes: pipe separated values foo|bar.
- multi: corresponds to multiple parameter instances instead of multiple values for a single instance
foo=bar&foo=baz. This is valid only for parameters of type query or formData . Default
-value is csv.
+value is csv.
default : mixed|null
- Sets a default value to the parameter. The type of the value depends on the defined type.
+ Sets a default value to the parameter. The type of the value depends on the defined type.
maximum : int|float
- The maximum value allowed for a numeric property. This value must be a number.
+ The maximum value allowed for a numeric property. This value must be a number.
exclusiveMaximum : int|float|bool|null
A boolean indicating whether the maximum value is excluded from the set of valid values.
-When set to true, the maximum value is excluded, and when false or not specified, it is included.
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
minimum : int|float
- The minimum value allowed for a numeric property. This value must be a number.
+ The minimum value allowed for a numeric property. This value must be a number.
exclusiveMinimum : int|float|bool|null
A boolean indicating whether the minimum value is excluded from the set of valid values.
-When set to true, the minimum value is excluded, and when false or not specified, it is included.
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
maxLength : int|null
The maximum length of a string property.
A string instance is valid against this property if its length is less than, or equal to, the value of this
-attribute.
+attribute.
minLength : int|null
The minimum length of a string property.
A string instance is valid against this property if its length is greater than, or equal to, the value of this
-attribute.
+attribute.
maxItems : int|null
The maximum number of items allowed in an array property.
An array instance is valid against this property if its number of items is less than, or equal to, the value of
-this attribute.
+this attribute.
minItems : int|null
The minimum number of items allowed in an array property.
An array instance is valid against this property if its number of items is greater than, or equal to, the value
-of this attribute.
+of this attribute.
uniqueItems : bool|null
A boolean value indicating whether all items in an array property must be unique.
-If this attribute is set to true, then all items in the array must be unique.
+If this attribute is set to true, then all items in the array must be unique.
pattern : string|null
- A string instance is considered valid if the regular expression matches the instance successfully.
+ A string instance is considered valid if the regular expression matches the instance successfully.
enum : array<string|int|float|bool|\UnitEnum|null>|class-string|null
A collection of allowable values for a property.
A property instance is valid against this attribute if its value is one of the values specified in this
-collection.
+collection.
discriminator : OpenApi\Attributes\Discriminator|null
Adds support for polymorphism.
The discriminator is an object name that is used to differentiate between other schemas which may satisfy the
-payload description. See Composition and Inheritance for more details.
+payload description. See Composition and Inheritance for more details.
readOnly : bool|null
Declares the property as "read only".
@@ -1097,7 +1097,7 @@ Relevant only for Schema "properties" definitions.
This means that it may be sent as part of a response but should not be sent as part of the request.
If the property is marked as readOnly being true and is in the required list, the required will take effect on
the response only. A property must not be marked as both readOnly and writeOnly being true. Default value is
-false.
+false.
writeOnly : bool|null
Declares the property as "write only".
@@ -1105,46 +1105,46 @@ Relevant only for Schema "properties" definitions.
Therefore, it may be sent as part of a request but should not be sent as part of the response.
If the property is marked as writeOnly being true and is in the required list, the required will take effect on
the request only. A property must not be marked as both readOnly and writeOnly being true. Default value is
-false.
+false.
xml : OpenApi\Attributes\Xml|null
This may be used only on properties schemas.
It has no effect on root schemas.
-Adds additional metadata to describe the XML representation of this property.
+Adds additional metadata to describe the XML representation of this property.
externalDocs : OpenApi\Attributes\ExternalDocumentation|null
- Additional external documentation for this schema.
+ Additional external documentation for this schema.
example : mixed|null
A free-form property to include an example of an instance for this schema.
To represent examples that cannot naturally be represented in JSON or YAML, a string value can be used to
-contain the example with escaping where necessary.
+contain the example with escaping where necessary.
nullable : bool|null
Allows sending a null value for the defined schema.
Default value is false.
This must not be used when using OpenApi version 3.1,
-instead make the "type" property an array and add "null" as a possible type.
+instead make the "type" property an array and add "null" as a possible type.
deprecated : bool|null
Specifies that a schema is deprecated and should be transitioned out of usage.
-Default value is false.
+Default value is false.
allOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against all schemas
-defined by this property's value.
+defined by this property's value.
anyOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against at least one
-schema defined by this property's value.
+schema defined by this property's value.
oneOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against exactly one schema
-defined by this property's value.
+defined by this property's value.
additionalProperties : OpenApi\Attributes\AdditionalProperties|bool|null
- http://json-schema.org/latest/json-schema-validation.html#anchor64.
+ http://json-schema.org/latest/json-schema-validation.html#anchor64.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [JsonContent](https://github.com/zircote/swagger-php/tree/master/src/Attributes/JsonContent.php)
@@ -1163,42 +1163,42 @@ These will be ignored but can be used for custom processing.
+Furthermore, if referencing a schema which contains an example, the examples value shall override the example provided by the schema.
ref : string|class-string|object|null
- The relative or absolute path to the endpoint.
+ The relative or absolute path to the endpoint.
schema : string|null
- The key into Components->schemas array.
+ The key into Components->schemas array.
title : string|null
Can be used to decorate a user interface with information about the data produced by this user interface.
-Preferably short; use description for more details.
+Preferably short; use description for more details.
description : string|null
- A description will provide explanation about the purpose of the instance described by this schema.
+ A description will provide explanation about the purpose of the instance described by this schema.
maxProperties : int|null
The maximum number of properties allowed in an object instance.
An object instance is valid against this property if its number of properties is less than, or equal to, the
-value of this attribute.
+value of this attribute.
minProperties : int|null
The minimum number of properties allowed in an object instance.
An object instance is valid against this property if its number of properties is greater than, or equal to, the
-value of this attribute.
+value of this attribute.
required : string[]
An object instance is valid against this property if its property set contains all elements in this property's
-array value.
+array value.
properties : Property[]
A collection of properties to define for an object.
-Each property is represented as an instance of the Property class.
+Each property is represented as an instance of the Property class.
type : string|non-empty-array<string>|null
The type of the schema/property.
OpenApi v3.0: The value MUST be one of "string", "number", "integer", "boolean", "array" or "object".
-Since OpenApi v3.1 an array of types may be used.
+Since OpenApi v3.1 an array of types may be used.
format : string|null
- The extending format for the previously mentioned type. See Data Type Formats for further details.
+ The extending format for the previously mentioned type.
items : OpenApi\Attributes\Items|null
- Required if type is "array". Describes the type of items in the array.
+ Required if type is "array". Describes the type of items in the array.
collectionFormat : string|null
Determines the format of the array if type array is used.
@@ -1209,57 +1209,57 @@ Possible values are:
- pipes: pipe separated values foo|bar.
- multi: corresponds to multiple parameter instances instead of multiple values for a single instance
foo=bar&foo=baz. This is valid only for parameters of type query or formData . Default
-value is csv.
+value is csv.
default : mixed|null
- Sets a default value to the parameter. The type of the value depends on the defined type.
+ Sets a default value to the parameter. The type of the value depends on the defined type.
maximum : int|float
- The maximum value allowed for a numeric property. This value must be a number.
+ The maximum value allowed for a numeric property. This value must be a number.
exclusiveMaximum : int|float|bool|null
A boolean indicating whether the maximum value is excluded from the set of valid values.
-When set to true, the maximum value is excluded, and when false or not specified, it is included.
+When set to true, the maximum value is excluded, and when false or not specified, it is included.
minimum : int|float
- The minimum value allowed for a numeric property. This value must be a number.
+ The minimum value allowed for a numeric property. This value must be a number.
exclusiveMinimum : int|float|bool|null
A boolean indicating whether the minimum value is excluded from the set of valid values.
-When set to true, the minimum value is excluded, and when false or not specified, it is included.
+When set to true, the minimum value is excluded, and when false or not specified, it is included.
maxLength : int|null
The maximum length of a string property.
A string instance is valid against this property if its length is less than, or equal to, the value of this
-attribute.
+attribute.
minLength : int|null
The minimum length of a string property.
A string instance is valid against this property if its length is greater than, or equal to, the value of this
-attribute.
+attribute.
maxItems : int|null
The maximum number of items allowed in an array property.
An array instance is valid against this property if its number of items is less than, or equal to, the value of
-this attribute.
+this attribute.
minItems : int|null
The minimum number of items allowed in an array property.
An array instance is valid against this property if its number of items is greater than, or equal to, the value
-of this attribute.
+of this attribute.
uniqueItems : bool|null
A boolean value indicating whether all items in an array property must be unique.
-If this attribute is set to true, then all items in the array must be unique.
+If this attribute is set to true, then all items in the array must be unique.
pattern : string|null
- A string instance is considered valid if the regular expression matches the instance successfully.
+ A string instance is considered valid if the regular expression matches the instance successfully.
enum : array<string|int|float|bool|\UnitEnum|null>|class-string|null
A collection of allowable values for a property.
A property instance is valid against this attribute if its value is one of the values specified in this
-collection.
+collection.
discriminator : OpenApi\Attributes\Discriminator|null
Adds support for polymorphism.
The discriminator is an object name that is used to differentiate between other schemas which may satisfy the
-payload description. See Composition and Inheritance for more details.
+payload description. See Composition and Inheritance for more details.
readOnly : bool|null
Declares the property as "read only".
@@ -1268,7 +1268,7 @@ Relevant only for Schema "properties" definitions.
This means that it may be sent as part of a response but should not be sent as part of the request.
If the property is marked as readOnly being true and is in the required list, the required will take effect on
the response only. A property must not be marked as both readOnly and writeOnly being true. Default value is
-false.
+false.
writeOnly : bool|null
Declares the property as "write only".
@@ -1276,46 +1276,46 @@ Relevant only for Schema "properties" definitions.
Therefore, it may be sent as part of a request but should not be sent as part of the response.
If the property is marked as writeOnly being true and is in the required list, the required will take effect on
the request only. A property must not be marked as both readOnly and writeOnly being true. Default value is
-false.
+false.
xml : OpenApi\Attributes\Xml|null
This may be used only on properties schemas.
It has no effect on root schemas.
-Adds additional metadata to describe the XML representation of this property.
+Adds additional metadata to describe the XML representation of this property.
externalDocs : OpenApi\Attributes\ExternalDocumentation|null
- Additional external documentation for this schema.
+ Additional external documentation for this schema.
example : mixed|null
A free-form property to include an example of an instance for this schema.
To represent examples that cannot naturally be represented in JSON or YAML, a string value can be used to
-contain the example with escaping where necessary.
+contain the example with escaping where necessary.
nullable : bool|null
Allows sending a null value for the defined schema.
Default value is false.
This must not be used when using OpenApi version 3.1,
-instead make the "type" property an array and add "null" as a possible type.
+instead make the "type" property an array and add "null" as a possible type.
deprecated : bool|null
Specifies that a schema is deprecated and should be transitioned out of usage.
-Default value is false.
+Default value is false.
allOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against all schemas
-defined by this property's value.
+defined by this property's value.
anyOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against at least one
-schema defined by this property's value.
+schema defined by this property's value.
oneOf : array<Schema|OA\Schema>
An instance validates successfully against this property if it validates successfully against exactly one schema
-defined by this property's value.
+defined by this property's value.
additionalProperties : OpenApi\Attributes\AdditionalProperties|bool|null
- http://json-schema.org/latest/json-schema-validation.html#anchor64.
+ http://json-schema.org/latest/json-schema-validation.html#anchor64.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [License](https://github.com/zircote/swagger-php/tree/master/src/Attributes/License.php)
@@ -1334,20 +1334,20 @@ These will be ignored but can be used for custom processing.string|null
- The license name used for the API.
+ The license name used for the API.
identifier : string|null
- An SPDX license expression for the API. The `identifier` field is mutually exclusive of the `url` field.
+ An SPDX license expression for the API. The `identifier` field is mutually exclusive of the `url` field.
url : string|null
An URL to the license used for the API. This MUST be in the form of a URL.
-The `url` field is mutually exclusive of the `identifier` field.
+The `url` field is mutually exclusive of the `identifier` field.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [Link](https://github.com/zircote/swagger-php/tree/master/src/Attributes/Link.php)
@@ -1366,19 +1366,19 @@ These will be ignored but can be used for custom processing.string|null
- The key into MediaType->links array.
+ The key into MediaType->links array.
operationRef : string|null
A relative or absolute reference to an OA operation.
This field is mutually exclusive of the operationId field, and must point to an Operation object.
-Relative values may be used to locate an existing Operation object in the OpenAPI definition.
+Relative values may be used to locate an existing Operation object in the OpenAPI definition.
ref : string|class-string|object|null
- No details available.
+ No details available.
operationId : string|null
The name of an existing, resolvable OA operation, as defined with a unique operationId .
-This field is mutually exclusive of the operationRef field.
+This field is mutually exclusive of the operationRef field.
parameters : array<string,mixed>
A map representing parameters to pass to an operation as specified with operationId or identified via
operationRef.
@@ -1386,22 +1386,22 @@ operationRef.
The key is the parameter name to be used, whereas the value can be a constant or an expression to
be evaluated and passed to the linked operation.
The parameter name can be qualified using the parameter location [{in}.]{name} for operations
-that use the same parameter name in different locations (e.g. path.id).
+that use the same parameter name in different locations (e.g. path.id).
requestBody : mixed|null
- A literal value or {expression} to use as a request body when calling the target operation.
+ A literal value or {expression} to use as a request body when calling the target operation.
description : string|null
A description of the link.
-CommonMark syntax may be used for rich text representation.
+CommonMark syntax may be used for rich text representation.
server : OpenApi\Attributes\Server|null
- A server object to be used by the target operation.
+ A server object to be used by the target operation.
x : array<string,mixed>|null
While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.
For further details see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specificationExtensions
-The keys inside the array will be prefixed with `x-`.
+The keys inside the array will be prefixed with `x-`.
attachables : Attachable[]|null
Arbitrary attachables for this annotation.
-These will be ignored but can be used for custom processing.
+These will be ignored but can be used for custom processing.
### [MediaType](https://github.com/zircote/swagger-php/tree/master/src/Attributes/MediaType.php)
@@ -1420,9 +1420,9 @@ These will be ignored but can be used for custom processing. |