You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versions/3.0.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
#### Version 3.0.0-rc2
4
4
5
-
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 [RFC 2119](http://www.ietf.org/rfc/rfc2119.txt).
5
+
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](http://www.ietf.org/rfc/rfc2119.txt).
6
6
7
7
This document is licensed under [The Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
8
8
@@ -81,7 +81,7 @@ Path templating refers to the usage of curly braces ({}) to mark a section of a
81
81
82
82
##### <aname="mediaTypes"></a>Media Types
83
83
Media type definitions are spread across several resources.
84
-
The media type definitions SHOULD be in compliance with [RFC 6838](http://tools.ietf.org/html/rfc6838).
84
+
The media type definitions SHOULD be in compliance with [RFC6838](http://tools.ietf.org/html/rfc6838).
85
85
86
86
Some examples of possible media type definitions:
87
87
```
@@ -98,7 +98,7 @@ Some examples of possible media type definitions:
98
98
```
99
99
##### <aname="httpCodes"></a>HTTP Status Codes
100
100
The HTTP Status Codes are used to indicate the status of the executed operation.
101
-
The available status codes are defined by [RFC 7231](http://tools.ietf.org/html/rfc7231#section-6) and registered status codes are listed in the [IANA Status Code Registry](http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml).
101
+
The available status codes are defined by [RFC7231](http://tools.ietf.org/html/rfc7231#section-6) and registered status codes are listed in the [IANA Status Code Registry](http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml).
102
102
103
103
## Specification
104
104
@@ -172,7 +172,7 @@ OpenAPI compliant tooling MUST support [CommonMark 0.27](http://spec.commonmark.
172
172
173
173
### <aname="relativeReferences"></a>Relative References in URLs
174
174
175
-
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC 3986](https://tools.ietf.org/html/rfc3986#section-4.2).
175
+
Unless specified otherwise, all properties that are URLs MAY be relative references as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-4.2).
176
176
Relative references are resolved using the URLs defined in the [`Server Object`](#serverObject) as a Base URI.
177
177
178
178
Relative references used in `$ref` are processed as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03), i.e. using the URL of the current document as the base URI. See also the [Reference Object](#referenceObject).
@@ -769,7 +769,7 @@ Field Name | Type | Description
769
769
<a name="operationExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this operation.
770
770
<a name="operationId"></a>operationId | `string` | 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.
771
771
<a name="operationParameters"></a>parameters | [[Parameter Object](#parameterObject) \| [Reference Object](#referenceObject)] | A list of parameters that are applicable for this operation. If a parameter is already defined at the [Path Item](#pathItemParameters), the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a [name](#parameterName) and [___location](#parameterIn). The list can use the [Reference Object](#referenceObject) to link to parameters that are defined at the [OpenAPI Object's components/parameters](#componentsParameters).
772
-
<a name="operationRequestBody"></a>requestBody | [Request Body Object](#requestBodyObject) \| [Reference Object](#referenceObject) | The request body applicable for this operation. The `requestBody` is only supported in HTTP methods where the [HTTP 1.1 specification](https://tools.ietf.org/html/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.
772
+
<a name="operationRequestBody"></a>requestBody | [Request Body Object](#requestBodyObject) \| [Reference Object](#referenceObject) | The request body applicable for this operation. The `requestBody` is only supported in HTTP methods where the HTTP 1.1 specification [RFC7231](https://tools.ietf.org/html/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.
773
773
<a name="operationResponses"></a>responses | [Responses Object](#responsesObject) | **Required.** The list of possible responses as they are returned from executing this operation.
774
774
<a name="operationCallbacks"></a>callbacks | [Callbacks Object](#callbacksObject) | The list of possible callbacks as they are returned from executing this operation.
775
775
<a name="operationDeprecated"></a>deprecated | `boolean` | Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is `false`.
@@ -922,7 +922,7 @@ A unique parameter is defined by a combination of a [name](#parameterName) and [
922
922
There are four possible parameter locations (as specified with the `in` field):
923
923
* path - Used together with [Path Templating](#pathTemplating), where the parameter value is actually part of the operation's URL. This does not include the host or base path of the API. For example, in `/items/{itemId}`, the path parameter is `itemId`.
924
924
* query - Parameters that are appended to the URL. For example, in `/items?id=###`, the query parameter is `id`.
925
-
* header - Custom headers that are expected as part of the request. Note that [RFC 7230](https://tools.ietf.org/html/rfc7230#page-22) states header names are case insensitive.
925
+
* header - Custom headers that are expected as part of the request. Note that [RFC7230](https://tools.ietf.org/html/rfc7230#page-22) states header names are case insensitive.
926
926
* cookie - Used to pass a specific cookie value to the API.
927
927
928
928
@@ -1452,7 +1452,7 @@ requestBody:
1452
1452
1453
1453
##### Support for x-www-form-urlencoded request bodies
1454
1454
1455
-
To submit content using form url encoding via RFC 1866, the following
1455
+
To submit content using form url encoding via [RFC1866](https://tools.ietf.org/html/rfc1866), the following
1456
1456
definition may be used:
1457
1457
1458
1458
```yaml
@@ -1466,12 +1466,12 @@ requestBody:
1466
1466
type: string
1467
1467
format: uuid
1468
1468
address:
1469
-
# complex types are stringified to support RFC1866
1469
+
# complex types are stringified to support RFC 1866
1470
1470
type: object
1471
1471
properties: {}
1472
1472
```
1473
1473
1474
-
Note that in the above example, the contents in the `requestBody` MUST be stringified per RFC1866 when being passed to the server. In addition, the `address` field complex object will be stringified as well.
1474
+
Note that in the above example, the contents in the `requestBody` MUST be stringified per [RFC1866](https://tools.ietf.org/html/rfc1866/) when being passed to the server. In addition, the `address` field complex object will be stringified as well.
1475
1475
1476
1476
When passing complex objects in the `x-www-form-urlencoded` content type, the default serialization strategy of such properties is described in the `parameterContent` section as `form`.
1477
1477
@@ -1809,7 +1809,7 @@ This object can be extended with [Specification Extensions](#specificationExtens
1809
1809
The key used to identify the [Path Item Object](#pathItemObject) is a variable expression that can be evaluated in the context of a runtime HTTP request/response to identify the URL to be used for the callback request.
1810
1810
A simple example might be `$request.body#/url`.
1811
1811
However, using [variable substitution](#variableSubstitution) syntax the complete HTTP message can be accessed.
1812
-
This includes accessing any part of a body that can be accessed using a JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901).
1812
+
This includes accessing any part of a body that can be accessed using a JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901).
1813
1813
1814
1814
For example, given the following HTTP request:
1815
1815
@@ -1869,7 +1869,7 @@ myWebhook:
1869
1869
1870
1870
1871
1871
#### <a name="headersObject"></a>Headers Object
1872
-
Lists the headers that can be sent in a response or forwarded via a link. Note that [RFC 7230](https://tools.ietf.org/html/rfc7230#page-22) states header names are case insensitive.
1872
+
Lists the headers that can be sent in a response or forwarded via a link. Note that [RFC7230](https://tools.ietf.org/html/rfc7230#page-22) states header names are case insensitive.
1873
1873
1874
1874
##### Patterned Fields
1875
1875
Field Pattern | Type | Description
@@ -2104,10 +2104,10 @@ The variable expression is defined by the following [ABNF](https://tools.ietf.or
2104
2104
query-reference = "query." name
2105
2105
path-reference = "path." name
2106
2106
body-reference = "body#" fragment
2107
-
fragment = a JSON Pointer [RFC 6901](https://tools.ietf.org/html/rfc6901)
2107
+
fragment = a JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901)
2108
2108
name = *( char )
2109
-
char = as per RFC [7159](https://tools.ietf.org/html/rfc7159#section-7)
2110
-
token = as per RFC [7230](https://tools.ietf.org/html/rfc7230#section-3.2.6)
2109
+
char = as per [RFC7159](https://tools.ietf.org/html/rfc7159#section-7)
2110
+
token = as per [RFC7230](https://tools.ietf.org/html/rfc7230#section-3.2.6)
2111
2111
```
2112
2112
2113
2113
The `name` identifier is case-sensitive, whereas `token` is not.
@@ -3378,7 +3378,7 @@ Field Name | Type | Validity | Description
3378
3378
<a name="securitySchemeDescription"></a>description | `string` | Any | A short description for security scheme. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
3379
3379
<a name="securitySchemeName"></a>name | `string` | `apiKey` | **Required.** The name of the header or query parameter to be used.
3380
3380
<a name="securitySchemeIn"></a>in | `string` | `apiKey` | **Required.** The ___location of the API key. Valid values are `"query"` or `"header"`.
3381
-
<a name="securitySchemeScheme"></a>scheme | `string` | `http` | **Required.** The name of the HTTP Authorization scheme to be used in the [Authorization header as defined in RFC 7235](https://tools.ietf.org/html/rfc7235#section-4.2).
3381
+
<a name="securitySchemeScheme"></a>scheme | `string` | `http` | **Required.** The name of the HTTP Authorization scheme to be used in the [Authorization header as defined in RFC7235](https://tools.ietf.org/html/rfc7235#section-4.2).
3382
3382
<a name="securitySchemeBearerFormat"></a>bearerFormat | `string` | `http` (`"bearer"`) | 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.
3383
3383
<a name="securitySchemeFlows"></a>flows | [OAuth Flows Object](#oauthFlowsObject) | `oauth2` | **Required.** An object containing configuration information for the flow types supported.
3384
3384
<a name="securitySchemeOpenIdConnectUrl"></a>openIdConnectUrl | `string` | `openIdConnect` | **Required.** OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL.
0 commit comments