Ask a Question

Import OpenAPI spec error

SOLVED
slimjack
Occasional Contributor

Import OpenAPI spec error

I'm trying to create a test from OpenAPI spec (v 3.0.0). The spec is valid based on swagger-cli validation. But SOAP UI Pro is not able to process it with the error: "Could not import a definition from the specified file". How to understand what is the problem, is there any error log?

4 REPLIES 4
Nastya_Khovrina
SmartBear Alumni (Retired)

Hi slimjack!

 

Thank you for your post. Can you provide us with your definition file?

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
slimjack
Occasional Contributor

The spec I'm trying to import

Nastya_Khovrina
SmartBear Alumni (Retired)

Hi slimjack,

 

I've uploaded your definition to SwaggerHub: https://app.swaggerhub.com/home and download the definition again. After this, I was able to create a project in ReadyAPI based on this specification. Maybe, there was an issue with encoding.

 

BTW, there is an error in the last reference:

"$ref": "#components/schemas/BodySiteShort"

should be: 

"$ref": "#/components/schemas/BodySiteShort"

 

So, please correct the specification. I've attached the corrected file for your reference.

 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
slimjack
Occasional Contributor

Thank you

cancel
Showing results for 
Search instead for 
Did you mean: