"body parameter" example in 3.x does not fit how Request Body Objects work #3761
Labels
bug
examples
requests for more or better examples in the specification
media and encoding
Issues regarding media type support and how to encode data (outside of query/path params)
Milestone
In the Request Body Examples section of both 3.0 and 3.1, the second example is as follows (JSON omitted for brevity):
A body parameter that is an array of string values:
This is identical to an example in the 2.0 spec, where the request body was treated as a parameter. I'm not entirely sure how it was supposed to be serialized even there, as the 3.x
style
andexplode
fields don't exist, but I definitely don't see how to serialize it in 3.0. There is no JSON Schema data model defined fortext/plain
, and nothing in the Request Body Object talks about how to serialize a list of values into plain text (Is it a comma-separated list? Is it one value per line?)What was this example trying to show, and how can we show it more clearly?
The text was updated successfully, but these errors were encountered: