Skip to content

Commit 4f02218

Browse files
committed
Hopefully last updates
1 parent 29656bb commit 4f02218

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

versions/3.0.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ definitions:
22142214
22152215
A simple object to allow referencing other definitions in the specification, internally and externally.
22162216
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.
22182218
22192219
For this specification, reference resolution is done as defined by the JSON Reference specification and not by the JSON Schema specification.
22202220
@@ -2223,6 +2223,8 @@ Field Name | Type | Description
22232223
---|:---:|---
22242224
<a name="referenceRef"></a>$ref | `string` | **Required.** The reference string.
22252225

2226+
This object cannot be extended with additional properties and any properties added SHALL be ignored.
2227+
22262228
##### Reference Object Example
22272229

22282230
```json
@@ -2298,7 +2300,7 @@ The following properties are taken from the JSON Schema definition but their def
22982300
- 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.
22992301
- 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`.
23002302

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

23032305
Additional properties defined by the JSON Schema specification that are not mentioned here are strictly unsupported.
23042306

0 commit comments

Comments
 (0)