Skip to content

Serialization of spaceDelimited query parameter with a list of strings. #3550

@iglosiggio

Description

@iglosiggio

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.

Metadata

Metadata

Assignees

Labels

clarificationrequests to clarify, but not change, part of the specparam serializationIssues related to parameter and/or header serializationquestion

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions