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
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2214,7 +2214,7 @@ definitions:
2214
2214
2215
2215
A simple object to allow referencing other definitions in the specification, internally and externally.
2216
2216
2217
-
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.
2217
+
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.
2218
2218
2219
2219
For this specification, reference resolution is done as defined by the JSON Reference specification and not by the JSON Schema specification.
2220
2220
@@ -2223,6 +2223,8 @@ Field Name | Type | Description
2223
2223
---|:---:|---
2224
2224
<a name="referenceRef"></a>$ref | `string` | **Required.** The reference string.
2225
2225
2226
+
This object cannot be extended with additional properties and any properties added SHALL be ignored.
2227
+
2226
2228
##### Reference Object Example
2227
2229
2228
2230
```json
@@ -2298,7 +2300,7 @@ The following properties are taken from the JSON Schema definition but their def
2298
2300
- format - See [Data Type Formats](#dataTypeFormat) for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats.
2299
2301
- default - The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided. Unlike JSON Schema, the value MUST conform to the defined type for the Schema Object defined at the same level. For example, of `type` is `string`, then `default` can be `"foo"`` but cannot be `1`.
2300
2302
2301
-
Alternatively, any time a Scheme Object can be used, a [Reference Object](#referenceObject) can be used in place. This allows referencing definitions in place of defining them inline. Effectively, it is the `$ref` property in JSON Schema but follows the same guidelines and restrictions as the Reference Object. For example, additional properties alongside a `$ref` SHALL be ignored.
2303
+
Alternatively, any time a Scheme Object can be used, a [Reference Object](#referenceObject) can be used in its place. This allows referencing definitions in place of defining them inline.
2302
2304
2303
2305
Additional properties defined by the JSON Schema specification that are not mentioned here are strictly unsupported.
0 commit comments