From 7ecd69e61f5ae310276c371813ec4938b7cd59ce Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 May 2021 09:26:38 +0200 Subject: [PATCH] Bug 28272: Add unseen_renewals for checkouts t/db_dependent/api/v1/checkouts.t ...................... 7/93 # Failed test '200 OK' # at t/db_dependent/api/v1/checkouts.t line 198. # got: '500' # expected: '200' # Failed test 'exact match for JSON Pointer ""' # at t/db_dependent/api/v1/checkouts.t line 198. # Structures begin differing at: # $got->{unseen_renewals} = Does not exist # $expected->{unseen_renewals} = '0' t/db_dependent/api/v1/checkouts.t ...................... 88/93 # Failed test '200 OK' # at t/db_dependent/api/v1/checkouts.t line 218. # got: '500' # expected: '200' # Failed test 'exact match for JSON Pointer ""' # at t/db_dependent/api/v1/checkouts.t line 218. # Structures begin differing at: # $got->{max_renewals} = Does not exist # $expected->{max_renewals} = '1' # Looks like you failed 4 tests of 93. --- api/v1/swagger/definitions/allows_renewal.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v1/swagger/definitions/allows_renewal.json b/api/v1/swagger/definitions/allows_renewal.json index 9c40cedcdb0..4ee01d6f5bd 100644 --- a/api/v1/swagger/definitions/allows_renewal.json +++ b/api/v1/swagger/definitions/allows_renewal.json @@ -12,6 +12,10 @@ "current_renewals": { "type": "integer", "description": "Current used renewals" + }, + "unseen_renewals": { + "type": "integer", + "description": "Number of consecutive times the item was renewed without being seen" }, "error": { "type": ["string", "null"], -- 2.20.1