Bug 32923: Fix new occurrences of x-koha-embed at top level
[srvgit] / api / v1 / swagger / paths / items.yaml
index e68d98b..2bd8b21 100644 (file)
       - $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:
+            - biblio
+            - checkout
+            - return_claims
+            - return_claim
+            - return_claim.patron
+        collectionFormat: csv
     consumes:
       - application/json
     produces:
     x-koha-authorization:
       permissions:
         catalogue: "1"
-    x-koha-embed:
-      - biblio
-      - checkout
-      - return_claims
-      - return_claim
-      - return_claim.patron
 "/items/{item_id}/bundled_items/{bundled_item_id}":
   delete:
     x-mojo-to: Items#remove_from_bundle