Skip to content

OAS3 Array query params example #3047

Closed Answered by charjr
rafalkrupinski asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it does, I asked a similar question before, and got pointed to the same rfc (You may find it useful to read the answers I received)

RFC6570-2.4.2 will give you a good idea of why someone might want explode.

The example you've given is for the simple style which can only be used in paths and headers:

In a path: parameters MUST appear in the same order specified in the template, so the name isn't required i.e.

/paint/{colors}/{type} and you get /paint/red,green,blue/silk you still know which part the color parameter is because each parameter is delimited by a forward slash.

In a header: each header has a name, so the name of the parameter is already given.

color: red,green,blue is clear.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@charjr
Comment options

Answer selected by rafalkrupinski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants