Skip to content

Commit 6c4fd24

Browse files
author
Ron
authored
Merge pull request OAI#1091 from MikeRalphson/rfc-formatting
Make RFC references more consistent
2 parents a5bf8a0 + a5911d7 commit 6c4fd24

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

versions/3.0.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#### Version 3.0.0-rc2
44

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).
66

77
This document is licensed under [The Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).
88

@@ -81,7 +81,7 @@ Path templating refers to the usage of curly braces ({}) to mark a section of a
8181

8282
##### <a name="mediaTypes"></a>Media Types
8383
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).
8585

8686
Some examples of possible media type definitions:
8787
```
@@ -98,7 +98,7 @@ Some examples of possible media type definitions:
9898
```
9999
##### <a name="httpCodes"></a>HTTP Status Codes
100100
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).
102102

103103
## Specification
104104

@@ -172,7 +172,7 @@ OpenAPI compliant tooling MUST support [CommonMark 0.27](http://spec.commonmark.
172172

173173
### <a name="relativeReferences"></a>Relative References in URLs
174174

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).
176176
Relative references are resolved using the URLs defined in the [`Server Object`](#serverObject) as a Base URI.
177177

178178
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
769769
<a name="operationExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this operation.
770770
<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.
771771
<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.
773773
<a name="operationResponses"></a>responses | [Responses Object](#responsesObject) | **Required.** The list of possible responses as they are returned from executing this operation.
774774
<a name="operationCallbacks"></a>callbacks | [Callbacks Object](#callbacksObject) | The list of possible callbacks as they are returned from executing this operation.
775775
<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 [
922922
There are four possible parameter locations (as specified with the `in` field):
923923
* 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`.
924924
* 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.
926926
* cookie - Used to pass a specific cookie value to the API.
927927

928928

@@ -1452,7 +1452,7 @@ requestBody:
14521452
14531453
##### Support for x-www-form-urlencoded request bodies
14541454
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
14561456
definition may be used:
14571457
14581458
```yaml
@@ -1466,12 +1466,12 @@ requestBody:
14661466
type: string
14671467
format: uuid
14681468
address:
1469-
# complex types are stringified to support RFC1866
1469+
# complex types are stringified to support RFC 1866
14701470
type: object
14711471
properties: {}
14721472
```
14731473
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.
14751475

14761476
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`.
14771477

@@ -1809,7 +1809,7 @@ This object can be extended with [Specification Extensions](#specificationExtens
18091809
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.
18101810
A simple example might be `$request.body#/url`.
18111811
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).
18131813

18141814
For example, given the following HTTP request:
18151815

@@ -1869,7 +1869,7 @@ myWebhook:
18691869

18701870

18711871
#### <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.
18731873

18741874
##### Patterned Fields
18751875
Field Pattern | Type | Description
@@ -2104,10 +2104,10 @@ The variable expression is defined by the following [ABNF](https://tools.ietf.or
21042104
query-reference = "query." name
21052105
path-reference = "path." name
21062106
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)
21082108
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)
21112111
```
21122112
21132113
The `name` identifier is case-sensitive, whereas `token` is not.
@@ -3378,7 +3378,7 @@ Field Name | Type | Validity | Description
33783378
<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.
33793379
<a name="securitySchemeName"></a>name | `string` | `apiKey` | **Required.** The name of the header or query parameter to be used.
33803380
<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).
33823382
<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.
33833383
<a name="securitySchemeFlows"></a>flows | [OAuth Flows Object](#oauthFlowsObject) | `oauth2` | **Required.** An object containing configuration information for the flow types supported.
33843384
<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

Comments
 (0)