+<a name="parameterAllowEmptyValue"></a> allowEmptyValue | `boolean` | Sets the ability to pass empty-valued parameters. This is valid only for `query` parameters and allows sending a parameter with an empty value. If `false`, which is the default value, then empty values MUST NOT be accepted. ***TODO: What values are empty? RFC6570 defines `null`, `[]`, `{}`, and objects with only `null` properties (e.g. `{"foo": null, "bar": null}` to be "undefined" and serialize as empty values, but it does not consider the empty string to be undefined even though it also serializes as an empty value. Also, how does this interact with `content`, which is not RFC6570-based and may result in empty values through any number of different circumstances.*** If [`style`](#parameterStyle) is used, and if behavior is `n/a` (cannot be serialized), the value of `allowEmptyValue` MUST NOT be interpreted to allow empty values to be serialized.
0 commit comments