Forum Discussion

Fhruza's avatar
Fhruza
New Contributor
5 years ago

New project from swaggerhub import openApi 3.0.2 error

Hi,
I am trying to create a new project from swaggerhub definition ( openapi: 3.0.2 ) using readyApi 3.1.0
I have managed to find my private api and started import. It fails with following errors: 

attribute openapi is unexpected
attribute servers is unexpected
attribute components is unexpected
attribute swagger is missing

attribute paths.'/operationName'(post).[X-REQUEST-ID].schema is unexpected
attribute paths.'/operationName'(post).[X-REQUEST-ID].type is missing

My definition (parts mentioned in error messages):

openapi: 3.0.2
servers:
    - description: SwaggerHub API Auto Mocking
      url: 'https://virtserver.swaggerhub.com/.....'
info:
    description: |
        some description
    version: "0.0.4"
    title: title

tags:
    - name: tag1
      description: describ1

paths:
    /operationName:
        post:
            parameters:
                - in: header
                  name: X-REQUEST-ID
                  schema:
                      type: integer
                 required: true
                 description: 'Unique ID for the API request.'

It should be correct according to this: https://swagger.io/docs/specification/describing-parameters/

Do you have any idea, what might cause this?
From attribute openapi is unexpected and attribute swagger is missing it looks like openApi definition is not supported?

Thank you




  • Response from support ticket: 

    Thank you for creating the case. At the moment, ReadyAPI can work only with the 2.0 and 3.0.0 versions. We already have a request to add the possibility of using more new versions of OAS. I've linked your case to it so we will notify you via email when it's added.

    • nmrao's avatar
      nmrao
      Champion Level 3
      I remember that ReadyAPI supports Open API 3.0.0.

      But, not sure if there is change in the recently released versions.

      Please try in latest released version of ReadyAPI. If that still does not help, please check with SmartBear customer care team. Hope they can clarify supported version of Open API in the latest release.
      • Fhruza's avatar
        Fhruza
        New Contributor

        Response from support ticket: 

        Thank you for creating the case. At the moment, ReadyAPI can work only with the 2.0 and 3.0.0 versions. We already have a request to add the possibility of using more new versions of OAS. I've linked your case to it so we will notify you via email when it's added.