Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

swagger 2.0 spec fails with SwaggerParserExtension #6

Open
cast opened this issue May 2, 2015 · 9 comments
Open

swagger 2.0 spec fails with SwaggerParserExtension #6

cast opened this issue May 2, 2015 · 9 comments

Comments

@cast
Copy link

cast commented May 2, 2015

When trying to use the swagger import on a swagger spec 2.0 json file I get the following error in soap ui (using swagger core 1.5.* jersey 2 integration).

java.util.ServiceConfigurationError: io.swagger.parser.SwaggerParserExtension: Provider io.swagger.parser.Swagger20Parser not a subtype

When I go back to a 1.3.* integration (swagger spec 1.2) the import completes succesfully.

@olensmar
Copy link
Contributor

olensmar commented May 4, 2015

Hi,

Hmm.. Which version of the plugin and soapui/ready-api are you using?

/Ole

@cast
Copy link
Author

cast commented May 4, 2015

Hi Ole,

I'm using version 2.1 of the plugin on ready-api 1.3.0

@olensmar
Copy link
Contributor

olensmar commented May 4, 2015

Thanks - there is 2.1.1 version on its way out that hopefully fixes this - I can mail it to you directly if you send me your email address!?

/Ole

@olensmar
Copy link
Contributor

olensmar commented May 4, 2015

Actually - this update should already be available from the Plugin Manager - can you check if its there?

/Ole

@rbren
Copy link

rbren commented May 4, 2015

Hi Ole,

I just hit this as well, right after installing the plugin. My Plugin Manager shows the latest available is 2.1

Thanks,
-Bobby

@cast
Copy link
Author

cast commented May 5, 2015

Hi Ole, I don't see version 2.1.1 in the plugin manager yet.

But I'll send you an e-mail to test the plugin directly.

Thanks

@olensmar
Copy link
Contributor

olensmar commented May 5, 2015

Hi guys - the plugin manager should be updated now, can you please have another look there?

Sorry for the hassle - thanks for your patience...

/Ole

@rbren
Copy link

rbren commented May 5, 2015

Working now. Thanks for the quick fix Ole!

@cast
Copy link
Author

cast commented May 6, 2015

Hi Ole,

I'm getting an error that is referenced in #3

Error java.lang.NullPointerException: Cannot get property 'basePath' on null object

A part of the swagger.json indicating base path is set:

swagger: "2.0",
info: {
description: "swagger-soap-poc",
version: "v1",
title: "API sample"
},
host: "localhost:8080",
basePath: "/api"

Thanks for the fast response on the previous error!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants