Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Swagger Format #54

Open
naveenn2n opened this issue Apr 29, 2020 · 5 comments
Open

Invalid Swagger Format #54

naveenn2n opened this issue Apr 29, 2020 · 5 comments

Comments

@naveenn2n
Copy link

naveenn2n commented Apr 29, 2020

Hi Team,

We are getting invalid swagger format while loading the json file.
�[91merror:�[0m Invalid swagger format.

As per our observation, we are using petsore swagger version.

@domanchi
Copy link
Contributor

Hi @naveenn2n,

Please provide more information so that we can reproduce the issue. It does not throw this error for me on master.

@naveenn2n
Copy link
Author

naveenn2n commented Apr 30, 2020

Hi @domanchi ,

{"swagger":"2.0","info":{"version":"v1", this is the swagger information we provided. Due to privacy issues. I am unable to show content of json.

Please find below screenshots for more information.
Error Screenshot
https://user-images.githubusercontent.com/6263232/80711278-bc682900-8b0d-11ea-98a9-760b4364a11a.png

and Json format Screenshot
https://user-images.githubusercontent.com/6263232/80711456-018c5b00-8b0e-11ea-8fe3-e32f5c170838.PNG

@toptotu
Copy link

toptotu commented Sep 25, 2020

Hi @naveenn2n,

Please provide more information so that we can reproduce the issue. It does not throw this error for me on master.

I also encountered the same problem. The YAML file path is https://www.3gpp.org/ftp/Specs/archive/29_series/29.510/OpenAPI/2018-12/TS29510_Nnrf_NFManagement.yaml

@AlexB1986
Copy link

Hi @naveenn2n,
Please provide more information so that we can reproduce the issue. It does not throw this error for me on master.

I also encountered the same problem. The YAML file path is https://www.3gpp.org/ftp/Specs/archive/29_series/29.510/OpenAPI/2018-12/TS29510_Nnrf_NFManagement.yaml

Hi @toptotu, your specification is in OpenAPI v3 format, but fuzz-lightyear use Bravado library that does not support OpenAPI v 3 -- please see Yelp/bravado#306

@AlexB1986
Copy link

Hi @naveenn2n , do you use integer keys (like 200) or string (like '200') in response codes?
We faced that under Windows env with integer keys in response codes fuzz-lightyear produces "Invalid Swagger Format".
You may try:

  • use Linux env;
  • OR to fix specification -- integer keys in response codes--> string (200 --> '200')

Hope, it will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants