The specification says that spaceDelimited should be used for array or object values. How should an space be escaped when serializing into this format?
Example
Given the array ["Hello World", "Nice to see you"] serialization of this value using the spaceDelimited style is not properly defined.
Options
Hello%20World%20Nice%20to%20see%20you: Looses information
Hello%20World Nice%20to%20see%20you: Doesn't follow from the examples on the spec
Hello World%20Nice to see you: Is not valid as a query parameter. If we URLEncode again then the separator ends up URLEncoded twice.
Hello%2520World%20Nice%2520to%2520see%2520you: Encodes the array items twice. I think this is the most reasonable option but it is a bit weird.
Hello%20World%2520Nice%20to%20see%20you: Ecodes the separator twice.
The specification says that
spaceDelimitedshould be used for array or object values. How should an space be escaped when serializing into this format?Example
Given the array
["Hello World", "Nice to see you"]serialization of this value using thespaceDelimitedstyle is not properly defined.Options
Hello%20World%20Nice%20to%20see%20you: Looses informationHello%20World Nice%20to%20see%20you: Doesn't follow from the examples on the specHello World%20Nice to see you: Is not valid as a query parameter. If we URLEncode again then the separator ends up URLEncoded twice.Hello%2520World%20Nice%2520to%2520see%2520you: Encodes the array items twice. I think this is the most reasonable option but it is a bit weird.Hello%20World%2520Nice%20to%20see%20you: Ecodes the separator twice.