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.4.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2604,7 +2604,7 @@ It is not mandatory to have a Tag Object per tag defined in the Operation Object
2604
2604
Field Name | Type | Description
2605
2605
---|:---:|---
2606
2606
<a name="tagName"></a>name | `string` | **REQUIRED**. The name of the tag.
2607
-
<a name="tagDescription"></a>description | `string` | A short description for the tag. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
2607
+
<a name="tagDescription"></a>description | `string` | A description for the tag. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
2608
2608
<a name="tagExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this tag.
2609
2609
2610
2610
This object MAY be extended with [Specification Extensions](#specificationExtensions).
A simple object to allow referencing other components in the specification, internally and externally.
2629
+
A simple object to allow referencing other components in the OpenAPI document, internally and externally.
2630
2630
2631
2631
The Reference Object is defined by [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03) and follows the same structure, behavior and rules.
2632
2632
@@ -3157,7 +3157,7 @@ The expectation now is that a property with name `petType` _MUST_ be present in
3157
3157
}
3158
3158
```
3159
3159
3160
-
Will indicate that the `Cat` schema be used in conjunction with this payload.
3160
+
Will indicate that the `Cat` schema is expected to match this payload.
3161
3161
3162
3162
In scenarios where the value of the discriminator field does not match the schema name or implicit mapping is not possible, an optional `mapping` definition MAY be used:
3163
3163
@@ -3177,7 +3177,7 @@ MyResponseType:
3177
3177
3178
3178
Here the discriminating value of `dog` will map to the schema `#/components/schemas/Dog`, rather than the default (implicit) value of `#/components/schemas/dog`. If the discriminating value does not match an implicit or explicit mapping, no schema can be determined and validation SHOULD fail.
3179
3179
3180
-
When used in conjunction with the `anyOf` construct, the use of the discriminator can avoid ambiguity where multiple schemas may satisfy a single payload.
3180
+
When used in conjunction with the `anyOf` construct, the use of the discriminator can avoid ambiguity for serializers/deserializers where multiple schemas may satisfy a single payload.
3181
3181
3182
3182
This example shows the `allOf` usage, which avoids needing to reference all child schemas in the parent:
3183
3183
@@ -3221,7 +3221,7 @@ components:
3221
3221
type: boolean
3222
3222
```
3223
3223
3224
-
a payload like this:
3224
+
Validated against the `Pet` schema, a payload like this:
3225
3225
3226
3226
```json
3227
3227
{
@@ -3230,7 +3230,7 @@ a payload like this:
3230
3230
}
3231
3231
```
3232
3232
3233
-
will indicate that the `Cat` schema be used. Likewise this schema:
3233
+
will indicate that the `#/components/schemas/Cat` schema is expected to match. Likewise this payload:
3234
3234
3235
3235
```json
3236
3236
{
@@ -3239,7 +3239,7 @@ will indicate that the `Cat` schema be used. Likewise this schema:
3239
3239
}
3240
3240
```
3241
3241
3242
-
will map to `Dog` because of the definition in the `mappings` element.
3242
+
will map to `#/components/schemas/Dog` because the `dog` entry in the `mapping` element maps to `Dog` which is the schema name for `#/components/schemas/Dog`.
3243
3243
3244
3244
3245
3245
#### <a name="xmlObject"></a>XML Object
@@ -3362,7 +3362,7 @@ In this example, a full model definition is shown.
@@ -3611,7 +3611,7 @@ Supported schemes are HTTP authentication, an API key (either as a header, a coo
3611
3611
Field Name | Type | Applies To | Description
3612
3612
---|:---:|---|---
3613
3613
<a name="securitySchemeType"></a>type | `string` | Any | **REQUIRED**. The type of the security scheme. Valid values are `"apiKey"`, `"http"`, `"oauth2"`, `"openIdConnect"`.
3614
-
<aname="securitySchemeDescription"></a>description | `string` | Any | A short description for security scheme. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
3614
+
<a name="securitySchemeDescription"></a>description | `string` | Any | A description for security scheme. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation.
3615
3615
<a name="securitySchemeName"></a>name | `string` | `apiKey` | **REQUIRED**. The name of the header, query or cookie parameter to be used.
3616
3616
<a name="securitySchemeIn"></a>in | `string` | `apiKey` | **REQUIRED**. The location of the API key. Valid values are `"query"`, `"header"` or `"cookie"`.
3617
3617
<a name="securitySchemeScheme"></a>scheme | `string` | `http` | **REQUIRED**. The name of the HTTP Authentication scheme to be used in the [Authorization header as defined in RFC7235](https://tools.ietf.org/html/rfc7235#section-5.1). The values used SHOULD be registered in the [IANA Authentication Scheme registry](https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml). The value is case-insensitive, as defined in [RFC7235](https://datatracker.ietf.org/doc/html/rfc7235#section-2.1).
@@ -3642,14 +3642,14 @@ scheme: basic
3642
3642
```json
3643
3643
{
3644
3644
"type": "apiKey",
3645
-
"name": "api_key",
3645
+
"name": "api-key",
3646
3646
"in": "header"
3647
3647
}
3648
3648
```
3649
3649
3650
3650
```yaml
3651
3651
type: apiKey
3652
-
name: api_key
3652
+
name: api-key
3653
3653
in: header
3654
3654
```
3655
3655
@@ -3659,7 +3659,7 @@ in: header
3659
3659
{
3660
3660
"type": "http",
3661
3661
"scheme": "bearer",
3662
-
"bearerFormat": "JWT",
3662
+
"bearerFormat": "JWT"
3663
3663
}
3664
3664
```
3665
3665
@@ -3717,9 +3717,9 @@ Configuration details for a supported OAuth Flow
3717
3717
##### Fixed Fields
3718
3718
Field Name | Type | Applies To | Description
3719
3719
---|:---:|---|---
3720
-
<a name="oauthFlowAuthorizationUrl"></a>authorizationUrl | `string` | `oauth2` (`"implicit"`, `"authorizationCode"`) | **REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL.
3721
-
<a name="oauthFlowTokenUrl"></a>tokenUrl | `string` | `oauth2` (`"password"`, `"clientCredentials"`, `"authorizationCode"`) | **REQUIRED**. The token URL to be used for this flow. This MUST be in the form of a URL.
3722
-
<a name="oauthFlowRefreshUrl"></a>refreshUrl | `string` | `oauth2` | The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
3720
+
<a name="oauthFlowAuthorizationUrl"></a>authorizationUrl | `string` | `oauth2` (`"implicit"`, `"authorizationCode"`) | **REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
3721
+
<a name="oauthFlowTokenUrl"></a>tokenUrl | `string` | `oauth2` (`"password"`, `"clientCredentials"`, `"authorizationCode"`) | **REQUIRED**. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
3722
+
<a name="oauthFlowRefreshUrl"></a>refreshUrl | `string` | `oauth2` | The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
3723
3723
<a name="oauthFlowScopes"></a>scopes | Map[`string`, `string`] | `oauth2` | **REQUIRED**. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
3724
3724
3725
3725
This object MAY be extended with [Specification Extensions](#specificationExtensions).
@@ -3960,7 +3960,7 @@ While not part of the specification itself, certain libraries MAY choose to allo
3960
3960
3961
3961
Two examples of this:
3962
3962
3963
-
1. The [Paths Object](#pathsObject) MAY be empty. It may be counterintuitive, but this may tell the viewer that they got to the right place, but can't access any documentation. They'd still have access to the [Info Object](#infoObject) which may contain additional information regarding authentication.
3963
+
1. The [Paths Object](#pathsObject) MAY be present but empty. It may be counterintuitive, but this may tell the viewer that they got to the right place, but can't access any documentation. They would still have access to at least the [Info Object](#infoObject) which may contain additional information regarding authentication.
3964
3964
2. The [Path Item Object](#pathItemObject) MAY be empty. In this case, the viewer will be aware that the path exists, but will not be able to see any of its operations or parameters. This is different from hiding the path itself from the [Paths Object](#pathsObject), because the user will be aware of its existence. This allows the documentation provider to finely control what the viewer can see.
3965
3965
3966
3966
## Security Considerations
@@ -4030,7 +4030,7 @@ To control the serialization of numbers, booleans, and `null` (or other values R
4030
4030
The resulting strings would not require any further type conversion.
4031
4031
4032
4032
The `format` keyword can assist in serialization.
4033
-
Some formats (such as `date-time` or `byte`) are unambiguous, while others (such as [`decimal`](https://spec.openapis.org/registry/format/decimal.html) in the [Format Registry](https://spec.openapis.org/registry/format/)) are less clear.
4033
+
Some formats (such as `date-time`) are unambiguous, while others (such as [`decimal`](https://spec.openapis.org/registry/format/decimal.html) in the [Format Registry](https://spec.openapis.org/registry/format/)) are less clear.
4034
4034
However, care must be taken with `format` to ensure that the specific formats are supported by all relevant tools as unrecognized formats are ignored.
4035
4035
4036
4036
Requiring input as pre-formatted, schema-validated strings also improves round-trip interoperability as not all programming languages and environments support the same data types.
0 commit comments