What goes in RequestBody content field?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022
11:51 AM
12-20-2022
11:51 AM
What goes in RequestBody content field?
The OAS indicates that a Request Body contains the content field which should be of type Media Type but it seems that the top level object within the content field is really content-type and then that contains the schema. Why is there a disconnect here? Am I misunderstanding the documentation? Shouldn't Request Body's content field be content-type rather than media type?
the documentation I refer to is here https://swagger.io/specification/#request-body-object
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022
11:53 AM
12-20-2022
11:53 AM
Ah, I see that the key should be the content type and the value is the Media type.
