From 0eba21dfc7972acd3aaa04b980e64479f64bba07 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 --- 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 2a066ec66e..76fe6c1bbb 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.32.0