From d9491b75539c69aeaa95cadc4fcba7cad20de525 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 14 Jul 2023 09:43:29 -0300 Subject: [PATCH] Bug 30979: (QA follow-up) Add missing docs on error codes Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/paths/public_patrons.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/api/v1/swagger/paths/public_patrons.yaml b/api/v1/swagger/paths/public_patrons.yaml index 3e5faf52554..596a34eb2f4 100644 --- a/api/v1/swagger/paths/public_patrons.yaml +++ b/api/v1/swagger/paths/public_patrons.yaml @@ -103,11 +103,18 @@ schema: $ref: "../swagger.yaml#/definitions/error" "405": - description: Method not allowed + description: | + Method not allowed. Possible `error_code` attribute values: + + * `FEATURE_DISABLED` schema: $ref: "../swagger.yaml#/definitions/error" "409": - description: Conflict in creating checkout + description: | + Conflict in creating checkout. Possible `error_code` attribute values: + + * `ITEM_NOT_FOUND` + * `PATRON_NOT_FOUND` schema: $ref: "../swagger.yaml#/definitions/error" "412": -- 2.41.0