-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[oas3] base64 vs byte #1547
Comments
Oh, it's valid, it's just that the defined data types section defines |
FWIW, my vote is for |
I also prefer |
In OAS 3.1, this can now be handled properly from the JSON Schema perspective. Specifically: type: string
contentEncoding: base64 is a base64-endcode string (where base64 is per RFC 4648). You can use any RFC 4648 or RFC 2045 encoding, so If you are encoding a specific media type, such as a PNG file: type: string
contentEncoding: base64
contentMediaType: image/png Note that the For binary transfer, use type: string
contentMediaType: application/octet-stream or some other media type. we should probably deprecate |
For OAS 3.1.0, since we're now dropping the If there's going to be an OAS 3.0.4, then this should be clarified with a PR to the appropriate branch. |
For OAS 3.1.0 this is resolved with #2200. @OAI/tsc is there likely to be a 3.0.4 where we would fix the examples of |
My appetite for a |
As above, I believe we can close this. |
The spec makes numerous references to
{format: base64}
(here and here for example). However this format is not defined in either the wright-00 JSON-schema spec, nor in the OAS3 defined data types.The text was updated successfully, but these errors were encountered: