I'm finding some of the examples for serializing query parameters a little confusing in the 3.0.2 spec.
Given this portion of the examples:
style |
explode |
empty |
string |
array |
object |
| form |
false |
color= |
color=blue |
color=blue,black,brown |
color=R,100,G,200,B,150 |
| form |
true |
color= |
color=blue |
color=blue&color=black&color=brown |
R=100&G=200&B=150 |
| spaceDelimited |
false |
n/a |
n/a |
blue%20black%20brown |
R%20100%20G%20200%20B%20150 |
| pipeDelimited |
false |
n/a |
n/a |
blue|black|brown |
R|100|G|200 |
| deepObject |
true |
n/a |
n/a |
n/a |
color[R]=100&color[G]=200&color[B]=150 |
- For form, I see we are always listing a parameter name (color, or R, G and B, as appropriate).
- For deepObject, I see we also have parameter names (color[R], color[G], color[B])
Questions:
- spaceDelimited and pipeDelimited however don't have names. I'd expect these should actually be:
- color=blue%20black%20brown
- color=R%20100%20G%20200%20B%20150
- color=blue|black|brown
- color=R|100|G|200|G|150
I'm finding some of the examples for serializing query parameters a little confusing in the 3.0.2 spec.
Given this portion of the examples:
styleexplodeemptystringarrayobjectQuestions: