Skip to content

Commit fa12074

Browse files
committed
Fix incorrect bit about binary and schemas
1 parent 6290e79 commit fa12074

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/oas.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,10 @@ Note that parsing string contents based on `contentMediaType` carries the same s
26772677

26782678
###### Schema Evaluation and Binary Data
26792679

2680-
As noted under [Working with Binary Data](#working-with-binary-data), Schema Objects for binary documents do not use any standard JSON Schema assertions, as the only ones that could apply (`const` and `enum`) would require embedding raw binary into JSON which is not possible.
2680+
Few JSON Schema implementations directly support working with binary data, as doing so is not a mandatory part of that specification.
2681+
2682+
OAS Implementations that do not have access to a binary-instance-supporting JSON Schema implementation MUST examine schemas and apply them in accordance with [Working with Binary Data](#working-with-binary-data),
2683+
When the entire instance is binary, this is straightforward as few keywords are relevant.
26812684

26822685
However, `multipart` media types can mix binary and text-based data, leaving implementations with two options for schema evaluations:
26832686

0 commit comments

Comments
 (0)