Skip to content

Commit 8bc304c

Browse files
authored
Update versions/3.0.4.md
1 parent da96b2a commit 8bc304c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions/3.0.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ It is RECOMMENDED that the entry document of an OAD be named: `openapi.json` or
132132
JSON or YAML objects within an OAD are interpreted as specific Objects (such as [Operation Objects](#operation-object), [Response Objects](#response-object), [Reference Objects](#reference-object), etc.) based on their context. Depending on how references are arranged, a given JSON or YAML object can be interpreted in multiple different contexts:
133133

134134
* As the root object of the [entry document](#openapi-description-structure), which is always interpreted as an OpenAPI Object
135-
* As the Object type implied by its parent Object within the OpenAPI Description
135+
* As the Object type implied by its parent Object within the document
136136
* As a reference target, with the Object type matching the reference source's context
137137

138138
If the same JSON/YAML object is parsed multiple times and the respective contexts require it to be parsed as _different_ Object types, the resulting behavior is _implementation defined_, and MAY be treated as an error if detected. An example would be referencing an empty Schema Object under `#/components/schemas` where a Path Item Object is expected, as an empty object is valid for both types. For maximum interoperability, it is RECOMMENDED that OpenAPI Description authors avoid such scenarios.

0 commit comments

Comments
 (0)