https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38291

--- Comment #69 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211210
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211210&action=edit
Bug 38291: (QA follow-up) Update id swagger definition to match db

library_groups.id is an auto increment int(11) column, and the API
returns it as a number, but the swagger definition described it as a
string of at most 10 characters. Describe it as a read only integer so
that the specification matches the database and what the API returns.

To test:
1. Apply the patches, then run yarn api:bundle and restart_all
2. Log in to the staff interface as a superlibrarian and visit
   /api/v1/library_groups
=> SUCCESS: the identifier of each group is a number, for example 3,
   and not a string
3. Run: prove t/db_dependent/api/v1/library_groups.t xt/api.t
=> SUCCESS: Tests pass

Signed-off-by: Lucas Gass <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to