ironic/releasenotes/notes/string-list-6098010bfdce9149.yaml
Dmitry Tantsur 934658dab4
Support more standard way of passing lists via query strings
Currently, arguments like "fields", "shared" or the new "device_types"
only accept comma-separated strings. While there is no single standard,
the most common approach is to repeat the arguments, i.e.

 NOT /nodes?fields=uuid,name
 BUT /nodes?fields=uuid&fields=name

Unfortunately, at least GopherCloud already relies [1] on the more common
(but not currently working in Ironic) behavior. Let's make it work.

[1] 8455d01343/openstack/baremetal/v1/nodes/testing/requests_test.go (L87)

Change-Id: Ia780b10986929d79dc4f334d278bcb00a9984fd0
2024-02-29 17:08:18 +01:00

8 lines
293 B
YAML

---
fixes:
- |
Query parameters in the API that expect lists now accept repeated arguments
(``param=value1&param=value2``) in addition to comma-separated strings
(``param=value1,value2``). The former seems to be more common and is
actually (incorrectly) used in GopherCloud.