]> git.koha-community.org Git - koha.git/commit
Bug 30674: x-koha-override should use collectionFormat: csv
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 3 May 2022 18:04:54 +0000 (15:04 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 5 May 2022 13:30:00 +0000 (10:30 -0300)
commit63d324db28f0cdcbacddb21a2e1ff1aada1f939e
tree1cc31fd4753990a1722df3371a59d8ffd0a61089
parentc9f6ea43747f7914e1abe96c22e0f68de60e50a0
Bug 30674: x-koha-override should use collectionFormat: csv

This patch makes this header parameter rely on the OpenAPI spec to
validate and document the available options.

Right now the only place is in POST and PUT /holds.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t \
           t/db_dependent/api/v1/auth_authenticate_api_request.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests still pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
api/v1/swagger/paths/holds.yaml