Skip to content

Commit b74769c

Browse files
Merge pull request #5515 from OAI/ralfhandl-patch-3.2-oas.md
3.2: Fix formatting of 'Encoding Object' in oas.md
2 parents 92ddc54 + 52515e5 commit b74769c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/oas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ Each field has its own set of media types with which it can be used; for all oth
13751375
The behavior of the `encoding` field is designed to support web forms, and is therefore only defined for media types structured as name-value pairs that allow repeat values, most notably `application/x-www-form-urlencoded` and `multipart/form-data`.
13761376

13771377
To use the `encoding` field, each key under the field MUST exist in the data instance as a property; `encoding` entries with no corresponding property SHALL be ignored.
1378-
When serializing, property values of the array type MUST be handled by applying the given Encoding Object to produce one encoded value per array item, each with the same `name`, as is recommended by [[!RFC7578]] [Section 4.3](https://www.rfc-editor.org/rfc/rfc7578.html#section-4.3) for supplying multiple values per form field; when deserializing, the Encoding object is applied to each item of the array property of the same name.
1378+
When serializing, property values of the array type MUST be handled by applying the given Encoding Object to produce one encoded value per array item, each with the same `name`, as is recommended by [[!RFC7578]] [Section 4.3](https://www.rfc-editor.org/rfc/rfc7578.html#section-4.3) for supplying multiple values per form field; when deserializing, the Encoding Object is applied to each item of the array property of the same name.
13791379
For deserialization to an object, multiple values with the same `name` MUST be collapsed into an array value for that named property, with one item per value, in order.
13801380
For all other value types for both top-level non-array property values and for other values, including items of the array type within a top-level array, the Encoding Object MUST be applied to the entire value.
13811381

@@ -1934,7 +1934,7 @@ requestBody:
19341934
type: string
19351935
format: uuid
19361936

1937-
# An Encoding object allows multiple values to be provided for this
1937+
# An Encoding Object allows multiple values to be provided for this
19381938
# property, without any attempt to decode the array as application/json
19391939
alias:
19401940
type: [ string, array ]

0 commit comments

Comments
 (0)