From b28f7ad0e62097386d44efb945f652ba8f4001d4 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 20 Oct 2023 10:00:54 -0300 Subject: [PATCH] Bug 30708: Last spec fixes Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/paths/preservation_trains.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/v1/swagger/paths/preservation_trains.yaml b/api/v1/swagger/paths/preservation_trains.yaml index f4e170a56e9..6e316e6c325 100644 --- a/api/v1/swagger/paths/preservation_trains.yaml +++ b/api/v1/swagger/paths/preservation_trains.yaml @@ -326,12 +326,12 @@ name: body required: true schema: - type: object + $ref: "../swagger.yaml#/definitions/preservation_train_item" responses: 201: description: A successfully added item schema: - type: object + $ref: "../swagger.yaml#/definitions/preservation_train_item" 400: description: Bad parameter schema: @@ -455,7 +455,7 @@ name: body required: true schema: - type: object + $ref: "../swagger.yaml#/definitions/preservation_train_item" - name: x-koha-embed in: header required: false @@ -470,7 +470,7 @@ 200: description: A successfully updated item schema: - type: object + $ref: "../swagger.yaml#/definitions/preservation_train_item" 400: description: Bad parameter schema: @@ -572,12 +572,11 @@ - catalogue_item - catalogue_item.biblio collectionFormat: csv - additionalProperties: false responses: 200: description: An item in train schema: - type: object + $ref: "../swagger.yaml#/definitions/preservation_train_item" 401: description: Authentication required schema: @@ -629,6 +628,7 @@ train_id: description: Train id type: integer + additionalProperties: false responses: 201: description: A successfully copied item -- 2.42.0