Skip to content

Commit 8c6c0dd

Browse files
authored
Merge pull request #3769 from handrews/streaming-binary-311
2 parents 46a8ca3 + afe8bb2 commit 8c6c0dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

versions/3.1.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ The `contentMediaType` keyword is redundant if the media type is already set:
196196

197197
If the Schema Object will be processed by a non-OAS-aware JSON Schema implementation, it may be useful to include `contentMediaType` even if it is redundant. However, if `contentMediaType` contradicts a relevant Media Type Object or Encoding Object, then `contentMediaType` SHALL be ignored.
198198

199+
The `maxLength` keyword MAY be used to set an expected upper bound on the length of a streaming payload. The keyword can be applied to either string data, including encoded binary data, or to unencoded binary data. For unencoded binary, the length is the number of octets.
200+
201+
##### Migrating binary descriptions from OAS 3.0
199202
The following table shows how to migrate from OAS 3.0 binary data descriptions, continuing to use `image/png` as the example binary media type:
200203

201204
OAS < 3.1 | OAS 3.1 | Comments

0 commit comments

Comments
 (0)