Forum Discussion

saniagrawal's avatar
saniagrawal
Regular Visitor
6 years ago

Does Soap ui supports swagger 3.0 or open api 3.0 importing api spec (json) file

Hi,

Does Soap ui supports swagger 3.0 or open api 3.0 import/exporting  api spec (.json) file.

4 Replies

  • Hi there,

    I got the same question/issue and figured out SoapUi is not able to import OpenAPI Files.

    We create Swagger UI for our Endpoints and i tried to import the swagger.json from it.
    Sadly both Products are from Smartbear but are not compatible.

     

    I had to chang the Header of the File to Swagger 2.0 to get the import working.

    Its kind of disturbing to see that Smartbear is neglecting compatibility of its own products.

    Cheers,

    Constantin

  • ShaneP's avatar
    ShaneP
    Occasional Contributor

    Same question here. Some with more solutions help us. Thanks in advance.

     

    Regards,

    Shane.

  • ricardo_moura's avatar
    ricardo_moura
    Occasional Contributor

    when i use "import swagger" function, the soapui shows me follow message:

    "groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object The current character read is 'o' with an int value of 111 Unable to determine the current character, it is not a string, number, array, or object line number 1 index number 0 openapi: 3.0.0 ^"

     

    i was able to import after edit yaml/json spec:

    change (openapi: 3.0.0)  to (swagger: "2.0") on first line of archive

    • nmrao's avatar
      nmrao
      Champion Level 3
      If 3.0 features are being used, just changing it to 2.0 may not work.