Skip to content

What is the meaning of an empty "content" definition? #2875

Answered by webron
kerrykimbrough asked this question in Q&A
Discussion options

You must be logged in to vote

From what I recall, content is available in three places - Parameter Object, Request Body Object and Response Object.

Parameter Object - the documentation states that one and only one media type must be in the map, so no problem there.

Request Body Object - I believe there's an oversight here. I think we should have mentioned that by minimum, a single map entry is required. The reason being is that Request Body Object is not a required field in an operation, and if you specify it, it means that there's necessarily a payload. If there's necessarily a payload, you need to define what kind of payload it is. Maybe some more feedback from the @OAI/tsc is needed here, but I think that's a clari…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kerrykimbrough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
media and encoding Issues regarding media type support and how to encode data (outside of query/path params)
2 participants