Skip to content

Commit 9312d08

Browse files
committed
Remaining unnecessary differences
1 parent 48eff63 commit 9312d08

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

versions/3.0.4.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,7 +2604,7 @@ It is not mandatory to have a Tag Object per tag defined in the Operation Object
26042604
Field Name | Type | Description
26052605
---|:---:|---
26062606
<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.
26082608
<a name="tagExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this tag.
26092609

26102610
This object MAY be extended with [Specification Extensions](#specificationExtensions).
@@ -2626,7 +2626,7 @@ description: Pets operations
26262626

26272627
#### <a name="referenceObject"></a>Reference Object
26282628

2629-
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.
26302630

26312631
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.
26322632

@@ -3157,7 +3157,7 @@ The expectation now is that a property with name `petType` _MUST_ be present in
31573157
}
31583158
```
31593159

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.
31613161

31623162
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:
31633163

@@ -3177,7 +3177,7 @@ MyResponseType:
31773177

31783178
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.
31793179

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.
31813181

31823182
This example shows the `allOf` usage, which avoids needing to reference all child schemas in the parent:
31833183

@@ -3221,7 +3221,7 @@ components:
32213221
type: boolean
32223222
```
32233223
3224-
a payload like this:
3224+
Validated against the `Pet` schema, a payload like this:
32253225

32263226
```json
32273227
{
@@ -3230,7 +3230,7 @@ a payload like this:
32303230
}
32313231
```
32323232

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:
32343234

32353235
```json
32363236
{
@@ -3239,7 +3239,7 @@ will indicate that the `Cat` schema be used. Likewise this schema:
32393239
}
32403240
```
32413241

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`.
32433243

32443244

32453245
#### <a name="xmlObject"></a>XML Object
@@ -3362,7 +3362,7 @@ In this example, a full model definition is shown.
33623362
"name": {
33633363
"type": "string",
33643364
"xml": {
3365-
"namespace": "http://example.com/schema/sample",
3365+
"namespace": "https://example.com/schema/sample",
33663366
"prefix": "sample"
33673367
}
33683368
}
@@ -3383,13 +3383,13 @@ Person:
33833383
name:
33843384
type: string
33853385
xml:
3386-
namespace: http://example.com/schema/sample
3386+
namespace: https://example.com/schema/sample
33873387
prefix: sample
33883388
```
33893389

33903390
```xml
33913391
<Person id="123">
3392-
<sample:name xmlns:sample="http://example.com/schema/sample">example</sample:name>
3392+
<sample:name xmlns:sample="https://example.com/schema/sample">example</sample:name>
33933393
</Person>
33943394
```
33953395

@@ -3611,7 +3611,7 @@ Supported schemes are HTTP authentication, an API key (either as a header, a coo
36113611
Field Name | Type | Applies To | Description
36123612
---|:---:|---|---
36133613
<a name="securitySchemeType"></a>type | `string` | Any | **REQUIRED**. The type of the security scheme. Valid values are `"apiKey"`, `"http"`, `"oauth2"`, `"openIdConnect"`.
3614-
<a name="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.
36153615
<a name="securitySchemeName"></a>name | `string` | `apiKey` | **REQUIRED**. The name of the header, query or cookie parameter to be used.
36163616
<a name="securitySchemeIn"></a>in | `string` | `apiKey` | **REQUIRED**. The location of the API key. Valid values are `"query"`, `"header"` or `"cookie"`.
36173617
<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
36423642
```json
36433643
{
36443644
"type": "apiKey",
3645-
"name": "api_key",
3645+
"name": "api-key",
36463646
"in": "header"
36473647
}
36483648
```
36493649

36503650
```yaml
36513651
type: apiKey
3652-
name: api_key
3652+
name: api-key
36533653
in: header
36543654
```
36553655

@@ -3659,7 +3659,7 @@ in: header
36593659
{
36603660
"type": "http",
36613661
"scheme": "bearer",
3662-
"bearerFormat": "JWT",
3662+
"bearerFormat": "JWT"
36633663
}
36643664
```
36653665

@@ -3717,9 +3717,9 @@ Configuration details for a supported OAuth Flow
37173717
##### Fixed Fields
37183718
Field Name | Type | Applies To | Description
37193719
---|:---:|---|---
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.
37233723
<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.
37243724

37253725
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
39603960

39613961
Two examples of this:
39623962

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.
39643964
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.
39653965

39663966
## Security Considerations
@@ -4030,7 +4030,7 @@ To control the serialization of numbers, booleans, and `null` (or other values R
40304030
The resulting strings would not require any further type conversion.
40314031

40324032
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.
40344034
However, care must be taken with `format` to ensure that the specific formats are supported by all relevant tools as unrecognized formats are ignored.
40354035

40364036
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

Comments
 (0)