Bugzilla – Attachment 65706 Details for
Bug 18508
Fix t/db_dependent/api/v1/swagger/definitions.t (follow-up of 18137)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18508: Fix t/db_dependent/api/v1/swagger/definitions.t (follow-up of 18137)
Bug-18508-Fix-tdbdependentapiv1swaggerdefinitionst.patch (text/plain), 1.35 KB, created by
Tomás Cohen Arazi (tcohen)
on 2017-08-09 12:10:21 UTC
(
hide
)
Description:
Bug 18508: Fix t/db_dependent/api/v1/swagger/definitions.t (follow-up of 18137)
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2017-08-09 12:10:21 UTC
Size:
1.35 KB
patch
obsolete
>From 423f33b8536ef5b8ebdbe8a13237c2b7148d070f Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@jns.fi> >Date: Fri, 28 Apr 2017 12:33:33 +0000 >Subject: [PATCH] Bug 18508: Fix t/db_dependent/api/v1/swagger/definitions.t > (follow-up of 18137) > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/api/v1/swagger/definitions.t | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/api/v1/swagger/definitions.t b/t/db_dependent/api/v1/swagger/definitions.t >index b1fb1847d4..de0647d318 100644 >--- a/t/db_dependent/api/v1/swagger/definitions.t >+++ b/t/db_dependent/api/v1/swagger/definitions.t >@@ -23,14 +23,19 @@ use Test::More tests => 1; > use Test::Mojo; > > use Module::Load::Conditional; >-use Swagger2; >+use JSON::Validator::OpenAPI; > > use C4::Context; > use Koha::Database; > > my $swaggerPath = C4::Context->config('intranetdir') . "/api/v1/swagger"; >-my $swagger = Swagger2->new( $swaggerPath . "/swagger.json" )->expand; >-my $api_spec = $swagger->api_spec->data; >+my $swagger = JSON::Validator::OpenAPI->new->load_and_validate_schema( >+ $swaggerPath . "/swagger.json", >+ { >+ allow_invalid_ref => 1 >+ } >+); >+my $api_spec = $swagger->schema->data; > my $schema = Koha::Database->new->schema; > > # The basic idea of this test: >-- >2.14.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18508
:
62817
|
62818
|
62894
|
62895
|
65706
|
67232
|
67265
|
67266