diff --git a/oas/latest.html b/oas/latest.html index 4f53076434..f4d70949d2 100644 --- a/oas/latest.html +++ b/oas/latest.html @@ -252,7 +252,7 @@
Path templating refers to the usage of template expressions, delimited by curly braces ({}), to mark a section of a URL path as replaceable using path parameters.
Each template expression in the path MUST correspond to a path parameter that is included in the Path Item itself and/or in each of the Path Item’s Operations. An exception is if the path item is empty, for example due to ACL constraints, matching path parameters are not required.
-The value for these path parameters MUST NOT contain any unescaped “generic syntax” characters described by [RFC3986]: forward slashes (/
), question marks (?
), or hashes (#
).
The value for these path parameters MUST NOT contain any unescaped “generic syntax” characters described by [RFC3986] Section 3: forward slashes (/
), question marks (?
), or hashes (#
).
Media type definitions are spread across several resources. The media type definitions SHOULD be in compliance with [RFC6838].
@@ -271,7 +271,7 @@The HTTP Status Codes are used to indicate the status of the executed operation. -The available status codes are defined by [RFC7231] and registered status codes are listed in the IANA Status Code Registry.
+The available status codes are defined by [RFC7231] Section 6 and registered status codes are listed in the IANA Status Code Registry.The OpenAPI Specification is versioned using a major
.minor
.patch
versioning scheme. The major
.minor
portion of the version string (for example 3.1
) SHALL designate the OAS feature set. .patch
versions address errors in, or provide clarifications to, this document, not the feature set. Tooling which supports OAS 3.1 SHOULD be compatible with all OAS 3.1.* versions. The patch version SHOULD NOT be considered by tooling, making no distinction between 3.1.0
and 3.1.1
for example.
Unless specified otherwise, all properties that are URIs MAY be relative references as defined by [RFC3986].
-Relative references, including those in Reference Objects
, PathItem Object
$ref
fields, Link Object
operationRef
fields and Example Object
externalValue
fields, are resolved using the referring document as the Base URI according to [RFC3986].
Unless specified otherwise, all properties that are URIs MAY be relative references as defined by [RFC3986] Section 4.2.
+Relative references, including those in Reference Objects
, PathItem Object
$ref
fields, Link Object
operationRef
fields and Example Object
externalValue
fields, are resolved using the referring document as the Base URI according to [RFC3986] Section 5.2.
If a URI contains a fragment identifier, then the fragment should be resolved per the fragment resolution mechanism of the referenced document. If the representation of the referenced document is JSON or YAML, then the fragment identifier SHOULD be interpreted as a JSON-Pointer as per [RFC6901].
-Relative references in Schema Objects
, including any that appear as $id
values, use the nearest parent $id
as a Base URI, as described by JSON Schema Specification Draft 2020-12. If no parent schema contains an $id
, then the Base URI MUST be determined according to [RFC3986].
Relative references in Schema Objects
, including any that appear as $id
values, use the nearest parent $id
as a Base URI, as described by JSON Schema Specification Draft 2020-12. If no parent schema contains an $id
, then the Base URI MUST be determined according to [RFC3986] Section 5.1.
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986]. +
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986] Section 4.2.
Unless specified otherwise, relative references are resolved using the URLs defined in the Server Object
as a Base URL. Note that these themselves MAY be relative to the referring document.
In the following description, if a field is not explicitly REQUIRED or described with a MUST or SHALL, it can be considered OPTIONAL.
@@ -1262,7 +1262,7 @@requestBody
is fully 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 (such as GET, HEAD and DELETE), requestBody
is permitted but does not have well-defined semantics and SHOULD be avoided if possible.requestBody
is fully supported in HTTP methods where the HTTP 1.1 specification [RFC7231] Section 4.3.1 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody
is permitted but does not have well-defined semantics and SHOULD be avoided if possible./items/{itemId}
, the path parameter is itemId
.
/items?id=###
, the query parameter is id
.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.primitive
, array
, object
path
primitive
, array
, object
query
, cookie
collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.array
path
, header
collectionFormat
with a csv
value from OpenAPI 2.0.collectionFormat
with a csv
value from OpenAPI 2.0.In contrast with the 2.0 specification, file
input/output content in OpenAPI is described with the same semantics as any other schema type.
In contrast with the 3.0 specification, the format
keyword has no effect on the content-encoding of the schema. JSON Schema offers a contentEncoding
keyword, which may be used to specify the Content-Encoding
for the schema. The contentEncoding
keyword supports all encodings defined in [RFC4648], including “base64” and “base64url”, as well as “quoted-printable” from [RFC2045]. The encoding specified by the contentEncoding
keyword is independent of an encoding specified by the Content-Type
header in the request or response or metadata of a multipart body – when both are present, the encoding specified in the contentEncoding
is applied first and then the encoding specified in the Content-Type
header.
In contrast with the 3.0 specification, the format
keyword has no effect on the content-encoding of the schema. JSON Schema offers a contentEncoding
keyword, which may be used to specify the Content-Encoding
for the schema. The contentEncoding
keyword supports all encodings defined in [RFC4648], including “base64” and “base64url”, as well as “quoted-printable” from [RFC2045] Section 6.7. The encoding specified by the contentEncoding
keyword is independent of an encoding specified by the Content-Type
header in the request or response or metadata of a multipart body – when both are present, the encoding specified in the contentEncoding
is applied first and then the encoding specified in the Content-Type
header.
JSON Schema also offers a contentMediaType
keyword. However, when the media type is already specified by the Media Type Object’s key, or by the contentType
field of an Encoding Object, the contentMediaType
keyword SHALL be ignored if present.
Examples:
Content transferred in binary (octet-stream) MAY omit schema
:
boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
or multipart/form-data
. If a value is explicitly defined, then the value of contentType
(implicit or explicit) SHALL be ignored.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
or multipart/form-data
. If a value is explicitly defined, then the value of contentType
(implicit or explicit) SHALL be ignored.string
, Header Object | Reference Object]"Content-Type"
, it SHALL be ignored."Content-Type"
, it SHALL be ignored.Here, json-pointer
is taken from [RFC6901], char
from [RFC7159] and token
from [RFC7230].
Here, json-pointer
is taken from [RFC6901], char
from [RFC7159] Section 7 and token
from [RFC7230] Section 3.2.6.
The name
identifier is case-sensitive, whereas token
is not.
The table below provides examples of runtime expressions and examples of their use in a value:
string
http
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in [RFC2119].
+The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in [RFC2119].
The Swagger specification is licensed under The Apache License, Version 2.0.
Swagger™ is a project used to describe and document RESTful APIs.
@@ -274,7 +274,7 @@The HTTP Status Codes are used to indicate the status of the executed operation. The available status codes are described by [RFC7231] and in the IANA Status Code Registry.
+The HTTP Status Codes are used to indicate the status of the executed operation. The available status codes are described by [RFC7231] Section 6 and in the IANA Status Code Registry.
The files describing the RESTful API in accordance with the Swagger specification are represented as JSON objects and conform to the JSON standards. YAML, being a superset of JSON, can be used as well to @@ -357,13 +357,13 @@
string
date
full-date
- [RFC3339]full-date
- [RFC3339] Section 5.6string
date-time
date-time
- [RFC3339]date-time
- [RFC3339] Section 5.6A simple object to allow referencing other definitions in the specification. It can be used to reference parameters and responses that are defined at the top level for reuse.
-The Reference Object is a JSON Reference that uses a JSON Pointer as its value. For this specification, only canonical dereferencing is supported.
+The Reference Object is a JSON Reference that uses a JSON Pointer [RFC6901] as its value. For this specification, only canonical dereferencing is supported.
As defined by full-date - [RFC3339] Section 5.6 |
||||
dateTime | string |
date-time |
-As defined by date-time - [RFC3339] |
+As defined by date-time - [RFC3339] Section 5.6 |
password | @@ -374,7 +374,7 @@Request Body Object | Reference Object | -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. |
+The request body applicable for this operation. The requestBody is only supported in HTTP methods where the HTTP 1.1 specification [RFC7231] Section 4.3.1 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody SHALL be ignored by consumers. |
|
responses | @@ -1420,7 +1420,7 @@boolean |
-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 . |
+Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query . The default value is false . |
|
schema | @@ -1543,25 +1543,25 @@Path-style parameters defined by [RFC6570] Section 3.2.7 | |||
label | primitive , array , object |
path |
-Label style parameters defined by [RFC6570] | +Label style parameters defined by [RFC6570] Section 3.2.5 |
form | primitive , array , object |
query , cookie |
-Form style parameters defined by [RFC6570]. This option replaces collectionFormat with a csv (when explode is false) or multi (when explode is true) value from OpenAPI 2.0. |
+Form style parameters defined by [RFC6570] Section 3.2.8. This option replaces collectionFormat with a csv (when explode is false) or multi (when explode is true) value from OpenAPI 2.0. |
simple | array |
path , header |
-Simple style parameters defined by [RFC6570]. This option replaces collectionFormat with a csv value from OpenAPI 2.0. |
+Simple style parameters defined by [RFC6570] Section 3.2.2. This option replaces collectionFormat with a csv value from OpenAPI 2.0. |
spaceDelimited | @@ -2214,7 +2214,7 @@boolean |
-Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false . This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded . |
+Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false . This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded . |
string
, Header Object | Reference Object]"Content-Type"
, it SHALL be ignored."Content-Type"
, it SHALL be ignored.string
http
The HTTP Status Codes are used to indicate the status of the executed operation. -The available status codes are defined by [RFC7231] and registered status codes are listed in the IANA Status Code Registry.
+The available status codes are defined by [RFC7231] Section 6 and registered status codes are listed in the IANA Status Code Registry.The OpenAPI Specification is versioned using Semantic Versioning 2.0.0 (semver) and follows the semver specification.
@@ -359,13 +359,13 @@full-date
- [RFC3339] Section 5.6string
date-time
date-time
- [RFC3339]date-time
- [RFC3339] Section 5.6Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986]. +
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986] Section 4.2.
Relative references are resolved using the URLs defined in the Server Object
as a Base URI.
Relative references used in $ref
are processed as per JSON Reference, using the URL of the current document as the base URI. See also the Reference Object.
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.requestBody
is only supported in HTTP methods where the HTTP 1.1 specification [RFC7231] Section 4.3.1 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody
SHALL be ignored by consumers./items/{itemId}
, the path parameter is itemId
.
/items?id=###
, the query parameter is id
.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.primitive
, array
, object
path
primitive
, array
, object
query
, cookie
collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.array
path
, header
collectionFormat
with a csv
value from OpenAPI 2.0.collectionFormat
with a csv
value from OpenAPI 2.0.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
.string
, Header Object | Reference Object]"Content-Type"
, it SHALL be ignored."Content-Type"
, it SHALL be ignored.string
http
The HTTP Status Codes are used to indicate the status of the executed operation. -The available status codes are defined by [RFC7231] and registered status codes are listed in the IANA Status Code Registry.
+The available status codes are defined by [RFC7231] Section 6 and registered status codes are listed in the IANA Status Code Registry.The OpenAPI Specification is versioned using Semantic Versioning 2.0.0 (semver) and follows the semver specification.
@@ -360,12 +360,12 @@full-date
- [RFC3339] Section 5.6string
date-time
date-time
- [RFC3339]date-time
- [RFC3339] Section 5.6string
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986]. +
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986] Section 4.2.
Relative references are resolved using the URLs defined in the Server Object
as a Base URI.
Relative references used in $ref
are processed as per JSON Reference, using the URL of the current document as the base URI. See also the Reference Object.
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.requestBody
is only supported in HTTP methods where the HTTP 1.1 specification [RFC7231] Section 4.3.1 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody
SHALL be ignored by consumers./items/{itemId}
, the path parameter is itemId
.
/items?id=###
, the query parameter is id
.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.primitive
, array
, object
path
primitive
, array
, object
query
, cookie
collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.array
path
, header
collectionFormat
with a csv
value from OpenAPI 2.0.collectionFormat
with a csv
value from OpenAPI 2.0.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
.string
, Header Object | Reference Object]"Content-Type"
, it SHALL be ignored."Content-Type"
, it SHALL be ignored.string
http
The HTTP Status Codes are used to indicate the status of the executed operation. -The available status codes are defined by [RFC7231] and registered status codes are listed in the IANA Status Code Registry.
+The available status codes are defined by [RFC7231] Section 6 and registered status codes are listed in the IANA Status Code Registry.The OpenAPI Specification is versioned using Semantic Versioning 2.0.0 (semver) and follows the semver specification.
@@ -362,12 +362,12 @@full-date
- [RFC3339] Section 5.6string
date-time
date-time
- [RFC3339]date-time
- [RFC3339] Section 5.6string
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986]. +
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986] Section 4.2.
Relative references are resolved using the URLs defined in the Server Object
as a Base URI.
Relative references used in $ref
are processed as per JSON Reference, using the URL of the current document as the base URI. See also the Reference Object.
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.requestBody
is only supported in HTTP methods where the HTTP 1.1 specification [RFC7231] Section 4.3.1 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody
SHALL be ignored by consumers./items/{itemId}
, the path parameter is itemId
.
/items?id=###
, the query parameter is id
.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.primitive
, array
, object
path
primitive
, array
, object
query
, cookie
collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.array
path
, header
collectionFormat
with a csv
value from OpenAPI 2.0.collectionFormat
with a csv
value from OpenAPI 2.0.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
.string
, Header Object | Reference Object]"Content-Type"
, it SHALL be ignored."Content-Type"
, it SHALL be ignored.Here, json-pointer
is taken from [RFC6901], char
from [RFC7159] and token
from [RFC7230].
Here, json-pointer
is taken from [RFC6901], char
from [RFC7159] Section 7 and token
from [RFC7230] Section 3.2.6.
The name
identifier is case-sensitive, whereas token
is not.
The table below provides examples of runtime expressions and examples of their use in a value:
string
http
Path templating refers to the usage of template expressions, delimited by curly braces ({}), to mark a section of a URL path as replaceable using path parameters.
Each template expression in the path MUST correspond to a path parameter that is included in the Path Item itself and/or in each of the Path Item’s Operations. An exception is if the path item is empty, for example due to ACL constraints, matching path parameters are not required.
-The value for these path parameters MUST NOT contain any unescaped “generic syntax” characters described by [RFC3986]: forward slashes (/
), question marks (?
), or hashes (#
).
The value for these path parameters MUST NOT contain any unescaped “generic syntax” characters described by [RFC3986] Section 3: forward slashes (/
), question marks (?
), or hashes (#
).
Media type definitions are spread across several resources. The media type definitions SHOULD be in compliance with [RFC6838].
@@ -271,7 +271,7 @@The HTTP Status Codes are used to indicate the status of the executed operation. -The available status codes are defined by [RFC7231] and registered status codes are listed in the IANA Status Code Registry.
+The available status codes are defined by [RFC7231] Section 6 and registered status codes are listed in the IANA Status Code Registry.The OpenAPI Specification is versioned using a major
.minor
.patch
versioning scheme. The major
.minor
portion of the version string (for example 3.1
) SHALL designate the OAS feature set. .patch
versions address errors in, or provide clarifications to, this document, not the feature set. Tooling which supports OAS 3.1 SHOULD be compatible with all OAS 3.1.* versions. The patch version SHOULD NOT be considered by tooling, making no distinction between 3.1.0
and 3.1.1
for example.
Unless specified otherwise, all properties that are URIs MAY be relative references as defined by [RFC3986].
-Relative references, including those in Reference Objects
, PathItem Object
$ref
fields, Link Object
operationRef
fields and Example Object
externalValue
fields, are resolved using the referring document as the Base URI according to [RFC3986].
Unless specified otherwise, all properties that are URIs MAY be relative references as defined by [RFC3986] Section 4.2.
+Relative references, including those in Reference Objects
, PathItem Object
$ref
fields, Link Object
operationRef
fields and Example Object
externalValue
fields, are resolved using the referring document as the Base URI according to [RFC3986] Section 5.2.
If a URI contains a fragment identifier, then the fragment should be resolved per the fragment resolution mechanism of the referenced document. If the representation of the referenced document is JSON or YAML, then the fragment identifier SHOULD be interpreted as a JSON-Pointer as per [RFC6901].
-Relative references in Schema Objects
, including any that appear as $id
values, use the nearest parent $id
as a Base URI, as described by JSON Schema Specification Draft 2020-12. If no parent schema contains an $id
, then the Base URI MUST be determined according to [RFC3986].
Relative references in Schema Objects
, including any that appear as $id
values, use the nearest parent $id
as a Base URI, as described by JSON Schema Specification Draft 2020-12. If no parent schema contains an $id
, then the Base URI MUST be determined according to [RFC3986] Section 5.1.
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986]. +
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986] Section 4.2.
Unless specified otherwise, relative references are resolved using the URLs defined in the Server Object
as a Base URL. Note that these themselves MAY be relative to the referring document.
In the following description, if a field is not explicitly REQUIRED or described with a MUST or SHALL, it can be considered OPTIONAL.
@@ -1262,7 +1262,7 @@requestBody
is fully 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 (such as GET, HEAD and DELETE), requestBody
is permitted but does not have well-defined semantics and SHOULD be avoided if possible.requestBody
is fully supported in HTTP methods where the HTTP 1.1 specification [RFC7231] Section 4.3.1 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody
is permitted but does not have well-defined semantics and SHOULD be avoided if possible./items/{itemId}
, the path parameter is itemId
.
/items?id=###
, the query parameter is id
.boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. This property only applies to parameters with an in
value of query
. The default value is false
.primitive
, array
, object
path
primitive
, array
, object
query
, cookie
collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.collectionFormat
with a csv
(when explode
is false) or multi
(when explode
is true) value from OpenAPI 2.0.array
path
, header
collectionFormat
with a csv
value from OpenAPI 2.0.collectionFormat
with a csv
value from OpenAPI 2.0.In contrast with the 2.0 specification, file
input/output content in OpenAPI is described with the same semantics as any other schema type.
In contrast with the 3.0 specification, the format
keyword has no effect on the content-encoding of the schema. JSON Schema offers a contentEncoding
keyword, which may be used to specify the Content-Encoding
for the schema. The contentEncoding
keyword supports all encodings defined in [RFC4648], including “base64” and “base64url”, as well as “quoted-printable” from [RFC2045]. The encoding specified by the contentEncoding
keyword is independent of an encoding specified by the Content-Type
header in the request or response or metadata of a multipart body – when both are present, the encoding specified in the contentEncoding
is applied first and then the encoding specified in the Content-Type
header.
In contrast with the 3.0 specification, the format
keyword has no effect on the content-encoding of the schema. JSON Schema offers a contentEncoding
keyword, which may be used to specify the Content-Encoding
for the schema. The contentEncoding
keyword supports all encodings defined in [RFC4648], including “base64” and “base64url”, as well as “quoted-printable” from [RFC2045] Section 6.7. The encoding specified by the contentEncoding
keyword is independent of an encoding specified by the Content-Type
header in the request or response or metadata of a multipart body – when both are present, the encoding specified in the contentEncoding
is applied first and then the encoding specified in the Content-Type
header.
JSON Schema also offers a contentMediaType
keyword. However, when the media type is already specified by the Media Type Object’s key, or by the contentType
field of an Encoding Object, the contentMediaType
keyword SHALL be ignored if present.
Examples:
Content transferred in binary (octet-stream) MAY omit schema
:
boolean
:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
or multipart/form-data
. If a value is explicitly defined, then the value of contentType
(implicit or explicit) SHALL be ignored.:/?#[]@!$&'()*+,;=
to be included without percent-encoding. The default value is false
. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded
or multipart/form-data
. If a value is explicitly defined, then the value of contentType
(implicit or explicit) SHALL be ignored.string
, Header Object | Reference Object]"Content-Type"
, it SHALL be ignored."Content-Type"
, it SHALL be ignored.Here, json-pointer
is taken from [RFC6901], char
from [RFC7159] and token
from [RFC7230].
Here, json-pointer
is taken from [RFC6901], char
from [RFC7159] Section 7 and token
from [RFC7230] Section 3.2.6.
The name
identifier is case-sensitive, whereas token
is not.
The table below provides examples of runtime expressions and examples of their use in a value:
string
http