[Koha-bugs] [Bug 15126]=?UTF-8?Q?=20REST=C2=A0API?=: Use newer version of Swagger2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 26 08:51:23 CEST 2016


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

--- Comment #39 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to Jonathan Druart from comment #38)
> (In reply to Julian Maurice from comment #32)
> > Created attachment 50142 [details] [review] [review]
> > Bug 15126: Update patron definition
> 
> Julian, I think we need tests to make sure the swagger file will be always
> up-to-date with the DB structure. Any ideas how we could do that?

An easy solution would be to parse the spec file with Swagger module, and for
each path check that the keys are the same that the corresponding DB table.
But what if some paths return more (or less, or different) keys than the
corresponding DB table (or if there is no corresponding DB table) ?
A proper solution would be to call each path and check that the keys in the
response match with the spec, but it has to be done each time a path is added

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list