From a01d179165da296d85491929d284db48bb3e7f09 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 27 Dec 2021 11:39:10 -0300 Subject: [PATCH] Bug 29772: (follow-up) Document error codes Signed-off-by: David Nind Signed-off-by: Jonathan Druart --- api/v1/swagger/paths/patrons.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/v1/swagger/paths/patrons.yaml b/api/v1/swagger/paths/patrons.yaml index 2a066ec66ea..76fe6c1bbbe 100644 --- a/api/v1/swagger/paths/patrons.yaml +++ b/api/v1/swagger/paths/patrons.yaml @@ -567,7 +567,13 @@ schema: $ref: ../definitions.yaml#/error "409": - description: Conflict + description: | + Conflict. Possible `error_code` attribute values: + + * `has_checkouts`: The patron has pending checkouts + * `has_debt`: The patron has pending debts + * `has_guarantees`: The patron has guarantees + * `is_anonymous_patron`: The system-wide anonymous patron cannot be deleted schema: $ref: ../definitions.yaml#/error "500": -- 2.25.1