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

Online generator always indicates that the Swagger is not valid #12201

Open
lanxin11 opened this issue Jul 20, 2023 · 5 comments
Open

Online generator always indicates that the Swagger is not valid #12201

lanxin11 opened this issue Jul 20, 2023 · 5 comments

Comments

@lanxin11
Copy link

Description

I wanted to use the online generator to generate codes. I'm using the Zuora swagger definition but whichever file I choose, it always returns this message:

{"code":1,"type":"error","message":"The swagger specification supplied was not valid"}%

In fact, I have used different validators (like api validator, swagger editor) to validate the file I want to use, and they all say it's a valid file.

Swagger-codegen version

Online generator

Swagger declaration file content or url

https://www.zuora.com/developer/yaml/swagger.yaml

Command line used for generation
curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"https://www.zuora.com/developer/yaml/swagger.yaml"}' https://generator.swagger.io/api/gen/clients/python
Steps to reproduce

Run the following commands in terminal (I'm using macOS Monterey version 12.4):

curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"https://www.zuora.com/developer/yaml/swagger.yaml"}' https://generator.swagger.io/api/gen/clients/python
Related issues/PRs

Didn't find any

Suggest a fix/enhancement

Not sure if it's a bug or it's the problem on my end. I would really appreciate if you could add more description in the error message rather than just saying the file is invalid.

@gregory
Copy link

gregory commented Feb 16, 2024

same issue :(

@satokenta940
Copy link

Can you try using Apidog? I think his online code generation is very convenient and easy to get started with.

@Lindsay-Mathieson
Copy link

Lindsay-Mathieson commented Feb 18, 2025

Same problem here, swagger.json validates elsewhere and works with nswag

@Lindsay-Mathieson
Copy link

Can you try using Apidog? I think his online code generation is very convenient and easy to get started with.

Yeah, couldn't even find the option for codegen.

@PolyProgrammist
Copy link

+, does not work on docker

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

5 participants