-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Won't generate client for JSON formatted API with tabs #924
Comments
I got it to work by downloading a local copy and then running a bundler to condense it into a single file (unsure if support for that is intended). It runs but produces this warning and does nothing useful
for every endpoint so it seems to be mad still. I'll poke around and maybe file another ticket. |
I was able to work around the issue and got the generated library working. Thanks for this tool! |
Actually looking further it seems that the generated code is always setting the parsed response to |
Describe the bug
Running
gives me the error
This is a follow-on to this old bug #488 which got fixed in b01db03 . It appears the fix doesn't quite work because github doesn't serve JSON files with the expected content-type (curl with -v gives me "< content-type: text/plain; charset=utf-8").
OpenAPI Spec File
I was trying to generate a client for this code
Desktop (please complete the following information):
Additional context
I think the correct fix ought to be to fall back to JSON parsing in the event of YAML parsing failure (or else a flag to specify?). I'm not sure why the mimetype isn't being guessed right
The text was updated successfully, but these errors were encountered: