]> git.koha-community.org Git - koha.git/commit
Bug 36641: Introduce render_invalid_parameter_value helper
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 24 Jun 2024 15:04:01 +0000 (16:04 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 18 Jul 2024 16:25:42 +0000 (18:25 +0200)
commitdca5e04165dc071822cc17dd26d7ddc63d09a30e
tree79ba722a146f8f4f46853568feaf861f4fc087fb
parentbaa68147535f67c2f14aa9a0a73c41a4a1b51252
Bug 36641: Introduce render_invalid_parameter_value helper

This patch introduces a new 'render_invalid_parameter_value' helper
method that accepts 'path' and 'values' parameters to denote which field
has failed validation and where the end user can get valid options.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/REST/Plugin/Responses.pm
t/db_dependent/api/v1/responses.t