Skip to content

Commit 12a8939

Browse files
authored
Merge pull request #4776 from handrews/no-override
2 parents 6cba994 + 32f028c commit 12a8939

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/oas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ Note that while `"Cookie"` as a `name` is not forbidden if `in` is `"header"`, t
982982

983983
For simpler scenarios, a [`schema`](#parameter-schema) and [`style`](#parameter-style) can describe the structure and syntax of the parameter.
984984
When `example` or `examples` are provided in conjunction with the `schema` field, the example SHOULD match the specified schema and follow the prescribed serialization strategy for the parameter.
985-
The `example` and `examples` fields are mutually exclusive, and if either is present it SHALL _override_ any `example` in the schema.
985+
The `example` and `examples` fields are mutually exclusive.
986986

987987
These fields MUST NOT be used with `in: "querystring"`.
988988
@@ -1242,7 +1242,7 @@ Each Media Type Object describes content structured in accordance with the media
12421242
Multiple Media Type Objects can be used to describe content that can appear in any of several different media types.
12431243

12441244
When `example` or `examples` are provided, the example SHOULD match the specified schema and be in the correct format as specified by the media type and its encoding.
1245-
The `example` and `examples` fields are mutually exclusive, and if either is present it SHALL _override_ any `example` in the schema.
1245+
The `example` and `examples` fields are mutually exclusive.
12461246
See [Working With Examples](#working-with-examples) for further guidance regarding the different ways of specifying examples, including non-JSON/YAML values.
12471247

12481248
##### Fixed Fields
@@ -2118,7 +2118,6 @@ The `examples` array is part of JSON Schema and is the preferred way to include
21182118

21192119
The mutually exclusive fields in the Parameter, Header, or Media Type Objects are used to show example values which SHOULD both match the schema and be formatted as they would appear as a serialized parameter, serialized header, or within a media type representation.
21202120
The exact serialization and encoding is determined by various fields in the Parameter Object, Header Object, or in the Media Type Object's [Encoding Object](#encoding-object).
2121-
Because examples using these fields represent the final serialized form of the data, they SHALL _override_ any `example` in the corresponding Schema Object.
21222121

21232122
The singular `example` field in the Parameter, Header, or Media Type Object is concise and convenient for simple examples, but does not offer any other advantages over using Example Objects under `examples`.
21242123

@@ -2429,7 +2428,7 @@ The `allowReserved` field can disable most but not all of this behavior.
24292428
See [Appendix D](#appendix-d-serializing-headers-and-cookies) for details and further guidance.
24302429

24312430
When `example` or `examples` are provided in conjunction with the `schema` field, the example SHOULD match the specified schema and follow the prescribed serialization strategy for the header.
2432-
The `example` and `examples` fields are mutually exclusive, and if either is present it SHALL _override_ any `example` in the schema.
2431+
The `example` and `examples` fields are mutually exclusive.
24332432

24342433
| Field Name | Type | Description |
24352434
| ---- | :----: | ---- |

0 commit comments

Comments
 (0)