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.1.1.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -287,8 +287,8 @@ Using a `contentEncoding` of `base64url` ensures that URL encoding (as required
287
287
288
288
The `contentMediaType` keyword is redundant if the media type is already set:
289
289
290
-
* as the key for a [`MediaType Object`](#mediaTypeObject)
291
-
* in the `contentType` field of an [`Encoding Object`](#encodingObject)
290
+
* as the key for a [MediaType Object](#mediaTypeObject)
291
+
* in the `contentType` field of an [Encoding Object](#encodingObject)
292
292
293
293
If the Schema Object will be processed by a non-OAS-aware JSON Schema implementation, it may be useful to include `contentMediaType` even if it is redundant. However, if `contentMediaType` contradicts a relevant Media Type Object or Encoding Object, then `contentMediaType` SHALL be ignored.
294
294
@@ -321,7 +321,7 @@ Note that some URI fields are named `url` for historical reasons, but the descri
321
321
322
322
Unless specified otherwise, all properties that are URIs MAY be relative references as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-4.2).
323
323
324
-
Relative references in [`Schema Objects`](#schemaObject), including any that appear as `$id` values, use the nearest parent `$id` as a Base URI, as described by [JSON Schema Specification Draft 2020-12](https://tools.ietf.org/html/draft-bhutton-json-schema-00#section-8.2).
324
+
Relative references in [Schema Objects](#schemaObject), including any that appear as `$id` values, use the nearest parent `$id` as a Base URI, as described by [JSON Schema Specification Draft 2020-12](https://tools.ietf.org/html/draft-bhutton-json-schema-00#section-8.2).
325
325
326
326
Relative URI references in other Objects, and in Schema Objects where no parent schema contains an `$id`, MUST be resolved using the referring document's base URI, which is determined in accordance with [RFC3986 §5.1.2 – 5.1.4](https://tools.ietf.org/html/rfc3986#section-5.1.2).
327
327
In practice, this is usually the retrieval URI of the document, which MAY be determined based on either its current actual location or a user-supplied expected location.
@@ -333,15 +333,15 @@ If a URI contains a fragment identifier, then the fragment should be resolved pe
333
333
API endpoints are by definition accessed as locations, and are described by this specification as ***URLs***.
334
334
335
335
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).
336
-
Unless specified otherwise, relative references are resolved using the URLs defined in the [`Server Object`](#serverObject) as a Base URL. Note that these themselves MAY be relative to the referring document.
336
+
Unless specified otherwise, relative references are resolved using the URLs defined in the [Server Object](#serverObject) as a Base URL. Note that these themselves MAY be relative to the referring document.
337
337
338
338
Relative references in CommonMark hyperlinks are resolved in their rendered context, which might differ from the context of the API description.
339
339
340
340
### Schema
341
341
342
342
This section describes the structure of the OpenAPI Description format.
343
343
This text is the only normative description of the format.
344
-
A JSON Schema is hosted on [spec.openapis.org](https://spec.openapis.org) for informational purposes.
344
+
A JSON Schema is hosted on [`spec.openapis.org`](https://spec.openapis.org) for informational purposes.
345
345
If the JSON Schema differs from this section, then this section MUST be considered authoritative.
346
346
347
347
In the following description, if a field is not explicitly **REQUIRED** or described with a MUST or SHALL, it can be considered OPTIONAL.
@@ -2709,7 +2709,7 @@ Field Name | Type | Description
2709
2709
2710
2710
This object cannot be extended with additional properties and any properties added SHALL be ignored.
2711
2711
2712
-
Note that this restriction on additional properties is a difference between Reference Objects and [`Schema Objects`](#schemaObject) that contain a `$ref` keyword.
2712
+
Note that this restriction on additional properties is a difference between Reference Objects and [Schema Objects](#schemaObject) that contain a `$ref` keyword.
0 commit comments