https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15126
--- Comment #39 from Julian Maurice <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
