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
+21-19Lines changed: 21 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ While the API is described using JSON it does not impose a JSON input/output to
112
112
All field names in the specification are **case sensitive**.
113
113
114
114
The schema exposes two types of fields.
115
-
Fixed fields, which have a declared name, and Patterned fields, which declare a regex pattern for the field name.
115
+
Fixed fields, which have a declared name, and Patterned fields, which declare a regular expression pattern for the field name.
116
116
Patterned fields can have multiple occurrences as long as each has a unique name.
117
117
118
118
In order to preserve the ability to round-trip between YAML and JSON formats, YAML version [1.2](http://www.yaml.org/spec/1.2/spec.html) is recommended along with some additional constraints:
@@ -210,7 +210,8 @@ Field Name | Type | Description
210
210
<aname="infoTermsOfService"></a>termsOfService | `string` | A URL to the Terms of Service for the API.
211
211
<aname="infoContact"></a>contact | [Contact Object](#contactObject) | The contact information for the exposed API.
212
212
<aname="infoLicense"></a>license | [License Object](#licenseObject) | The license information for the exposed API.
213
-
<aname="infoVersion"></a>version | `string` | **Required** Provides the version of the application API (not to be confused with the specification version). While not required, is it suggested that the `info.version` value correspond to the version of the API definition. In practice, the version of the API _implementation_ MAY evolve at an entirely different rate.
213
+
<aname="infoVersion"></a>version | `string` | **Required** The version of the API definition (which is distinct from the OpenAPI specification version or the API implementation version).
214
+
214
215
215
216
This object can be extended with [Specification Extensions](#specificationExtensions).
216
217
@@ -1246,6 +1247,7 @@ Field Name | Type | Description
1246
1247
<a name="contentTypeSchema"></a>schema | [Schema Object](#schemaObject) | The schema defining the type used for the request body.
1247
1248
<a name="contentTypeExamples"></a>examples | [[Example Object](#exampleObject) <span>|</span> [Reference Object](#referenceObject)] | Examples of the content type. Each example in the Examples array SHOULD be in the correct format as specified in the _content_ type. The `examples` object is mutually exclusive to the `example` object. Furthermore, if referencing a `schema` which contains an example, the `examples` value SHALL _override_ the example provided by the schema.
1248
1249
<a name="contentTypeExample"></a>example | [Example Object](#exampleObject) <span>|</span> [Reference Object](#referenceObject) | Example of the content type. The example object SHOULD be in the correct format as specified in the _content_ type. The `example` object is mutually exclusive to the `examples` object. Furthermore, if referencing a `schema` which contains an example, the `example` value SHALL _override_ the the example provided by the schema.
1250
+
<a name="contentTypeEncoding"></a>encoding | [Encoding Object](#encodingObject) | Encoding of the content type. The encoding object SHOULD only apply to `requestBody` objects when the content type is `multipart`.
1249
1251
1250
1252
##### Patterned Fields
1251
1253
Field Pattern | Type | Description
@@ -1296,7 +1298,7 @@ schema:
1296
1298
type: string
1297
1299
format: base64
1298
1300
1299
-
# content transfered in binary (octet-stream):
1301
+
# content transferred in binary (octet-stream):
1300
1302
schema:
1301
1303
type: string
1302
1304
format: binary
@@ -1346,16 +1348,16 @@ requestBody:
1346
1348
type: string
1347
1349
format: uuid
1348
1350
address:
1349
-
# complex types are stringified to support rfc1866
1351
+
# complex types are stringified to support RFC1866
1350
1352
type: object
1351
1353
properties: {}
1352
1354
```
1353
1355
1354
-
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 strigified as well.
1356
+
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.
1355
1357
1356
1358
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`.
1357
1359
1358
-
##### Special Considerations for `mutlipart` content
1360
+
##### Special Considerations for `multipart` content
1359
1361
1360
1362
It is common to use `multipart/form-data` as a `Content-Type` when transferring request bodies to operations. In contrast to 2.0, a `schema` is required to define the input parameters to the operation when using `multipart` content. This allows complex structures as well as supports mechanisms for multiple file uploads.
1361
1363
@@ -1398,7 +1400,7 @@ requestBody:
1398
1400
type: '#/definitions/Address'
1399
1401
```
1400
1402
1401
-
In scenarios where more control is needed over the Content-Type for `multipart` request bodies, an `encoding` attribute is introduced. This attribute is _only_ applicable to `mulitpart/*` and `x-www-form-urlencoded` request bodies.
1403
+
In scenarios where more control is needed over the Content-Type for `multipart` request bodies, an `encoding` attribute is introduced. This attribute is _only_ applicable to `multipart/*` and `x-www-form-urlencoded` request bodies.
1402
1404
1403
1405
#### <a name="encodingObject"></a>Encoding Object
1404
1406
@@ -1449,13 +1451,13 @@ requestBody:
1449
1451
# default is application/octet-stream, need to declare an image type only!
@@ -1699,7 +1701,7 @@ This object can be extended with [Specification Extensions](#specificationExtens
1699
1701
1700
1702
The key used to identify the Path Item Object 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.
1701
1703
A simple example might be `$request.body#/url`.
1702
-
However, using [variable substition](#variableSubstition) syntax the complete HTTP message can be accessed.
1704
+
However, using [variable substitution](#variableSubstitution) syntax the complete HTTP message can be accessed.
1703
1705
This includes accessing any part of a body that can be accessed using a JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901).
1704
1706
1705
1707
For example, given the following HTTP request:
@@ -1874,7 +1876,7 @@ Because of the potential for name clashes, consider the `href` syntax as the pre
Payload values are only available in parseable response payloads which match the advertised media-type and for media-types that can be referenced using a JSON Pointer fragment Id.
1879
+
Payload values are only available in parsable response payloads which match the advertised media-type and for media-types that can be referenced using a JSON Pointer fragment Id.
1878
1880
In all cases, if a value does _not_ exist, the parameter will be considered a `null` value (as opposed to an empty value) and _not_ passed as a parameter to the linked resource.
1879
1881
In cases where a value is required, and a parameter is not supplied, the client MAY choose to not follow the link definition.
In all cases, _variables_ from request and responses may be substituted for link generation.
1922
1924
The table below provides examples of variable expressions and examples of their use in a value:
1923
1925
@@ -3337,8 +3339,8 @@ Field Name | Type | Description
3337
3339
---|:---:|---|---
3338
3340
<a name="oauthFlowImplicit"></a>implicit| [OAuth Flow Object](#oauthFlowObject) | Configuration for the OAuth Implicit flow
3339
3341
<a name="oauthFlowPassword"></a>password| [OAuth Flow Object](#oauthFlowObject) | Configuration for the OAuth Resource Owner Password flow
3340
-
<a name="oauthFlowClientCredentials"></a>clientCredentials| [OAuth Flow Object](#oauthFlowObject) | Configuration for the OAuth Client Credentials flow. Previously called `application` in OpenApi 2.0.
3341
-
<a name="oauthFlowAuthorizationCode"></a>authorizationCode| [OAuth Flow Object](#oauthFlowObject) | Configuration for the OAuth Authorization Code flow. Previously called `accessCode` in OpenApi 2.0.
3342
+
<a name="oauthFlowClientCredentials"></a>clientCredentials| [OAuth Flow Object](#oauthFlowObject) | Configuration for the OAuth Client Credentials flow. Previously called `application` in OpenAPI 2.0.
3343
+
<a name="oauthFlowAuthorizationCode"></a>authorizationCode| [OAuth Flow Object](#oauthFlowObject) | Configuration for the OAuth Authorization Code flow. Previously called `accessCode` in OpenAPI 2.0.
3342
3344
3343
3345
This object can be extended with [Specification Extensions](#specificationExtensions).
0 commit comments