OAS3 Array query params example #3047
-
Hi all I have some doubts about the examples in 4.7.12.4 - serialization styles.
The input array data for array is I'd expect it to serialize as: Yet both examples are simply Is this correct? |
Beta Was this translation helpful? Give feedback.
Answered by
charjr
Mar 26, 2024
Replies: 2 comments 1 reply
-
I think this refers to
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Answer accepted, closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.…