Importing OpenApi 3.0.1 json file not working
Hi,
Need immediate help. Recently we have upgraded from Swagger 2 to Open API 3. but the exported JSON file from Open API 3 not able to import in SOAP UI and below is the error.
java.lang.NullPointerException: Cannot invoke "com.smartbear.swagger.SwaggerImporter.importSwagger(String)" because "this.val$importer" is null
Any help on this is highly appreciated.
currently below workarounds i am able to use,
- by changing the .json file header to swagger 2.0
- import into postman, export from postman and then import into SOAP UI
Same here Guys, do we have any news?
I have also the same issue, though the workaround doesnt solve it for me.
i checked source code and found that soapui only support swagger2, so we need convert openapi3 to openapi/swagger2 before load it into soapui
why did this thread stop in 2022? This still seems to be an issue right? If this is the solution, this seems dangerous, error prone and something that would lead to the eventual death of SoapUI. Unless soapUI is already dead and I wasn't aware. Doing evaluations of various API testing tools. I won't be going with SoapUI
SoapUI 5.7.2 Still not working, but a working workaround:
As mentioned originally in post OAS 3.0 tooling support :
Using https://editor.swagger.io/ and convert JSON definition as yaml file worked!!
SoapUI 5.8.0
still not working with default json import. i thgouht new big version update should have fixed this basic feature.
SoapUI 5.7.2 Still not working, but a working workaround:
As mentioned originally in post OAS 3.0 tooling support :
Using https://editor.swagger.io/ and convert JSON definition as yaml file worked!!
Another workaround seems to be, according to https://community.smartbear.com/discussions/soapui_os/problem-with-importing-openapi/242050/replies/260529:
The workaround for openapi files in .json format seems to be to replace this (e.g. for version 3.0.1)
{"openapi":"3.0.1"
with
{"swagger":"2.0"
and then to import the file.
It seems to work for my use case, yet I guess there might be differences in the formats because of which this approach can fail...