From: Pedro Amorim Date: Mon, 20 Mar 2023 13:25:19 +0000 (+0000) Subject: Bug 32923: Fix licenses spec X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=0fb86ccdc5696fb15bf057469a5c962f8c228211;p=srvgit Bug 32923: Fix licenses spec Bug 32713 is now validating embed and brought this flaw to light. Before this patch, listing licenses on ERM would result in a 400 bad request Signed-off-by: Tomas Cohen Arazi --- diff --git a/api/v1/swagger/paths/erm_licenses.yaml b/api/v1/swagger/paths/erm_licenses.yaml index 0abc7cf424..bca05a2b87 100644 --- a/api/v1/swagger/paths/erm_licenses.yaml +++ b/api/v1/swagger/paths/erm_licenses.yaml @@ -51,6 +51,15 @@ - $ref: "../swagger.yaml#/parameters/q_param" - $ref: "../swagger.yaml#/parameters/q_body" - $ref: "../swagger.yaml#/parameters/q_header" + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - vendor.name responses: 200: description: A list of agreements' licenses