Forum Discussion

slimjack's avatar
slimjack
Occasional Contributor
6 years ago
Solved

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?

  • 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.

     

4 Replies

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi slimjack!

     

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

     

      • Nastya_Khovrina's avatar
        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.