cancel
Showing results for 
Search instead for 
Did you mean: 

New project from swaggerhub import openApi 3.0.2 error

SOLVED
Highlighted
New Contributor

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




1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
New Contributor

Re: New project from swaggerhub import openApi 3.0.2 error

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.

View solution in original post

3 REPLIES 3
Highlighted
Community Manager

Re: New project from swaggerhub import openApi 3.0.2 error

Any thoughts on this, Community?

@richie @nmrao @msiadak @HimanshuTayal 


Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Community Hero

Re: New project from swaggerhub import openApi 3.0.2 error

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.


Regards,
Rao.
Highlighted
New Contributor

Re: New project from swaggerhub import openApi 3.0.2 error

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.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
The new challenge is here!

Create a script to сhange an XPath Match assertion to a JSONPath Match assertion for the TechCorner tag!


Scripts created in July:
- A script to generate an email when an assertion fails
- A script to change the request body before sending it to the server
Top Kudoed Authors