Skip to content
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

Allow "contentMediaType" without "type" #941

Closed
handrews opened this issue May 28, 2020 · 1 comment
Closed

Allow "contentMediaType" without "type" #941

handrews opened this issue May 28, 2020 · 1 comment

Comments

@handrews
Copy link
Contributor

Its useful to be able to use "contentMediaType" in contexts where binary media types are present. It does not make sense to use "type": "string" with binary data, because such data is not a JSON string no matter how much you try to map it into the data model.

A schema without a type can effectively be a hint not to worry about a detailed mapping. It is a way to use JSON Schema across media types without excluding binary content.

See OAI/OpenAPI-Specification#2200 for use cases.

@handrews
Copy link
Contributor Author

Fixed by #970.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants