Skip to content

goswagger fails #11

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

Closed
regorov opened this issue Oct 1, 2018 · 2 comments
Closed

goswagger fails #11

regorov opened this issue Oct 1, 2018 · 2 comments

Comments

@regorov
Copy link

regorov commented Oct 1, 2018

Using goswagger I've tried to generate golang client.

[regorov@t460p openapi-specification]$ ./swagger -o log.log generate client --skip-validation -f ./betsapi-oas.yaml

fails with message

failed rendering template data for definition: template execution failed for template definition: template: schemavalidator:476:65: executing "schemavalidator" at <.>: wrong type for value; expected string; got bool

There are no issues with lines or customer api.

@pinnacleapi
Copy link
Owner

Would it work for you to try generating the client using https://editor.swagger.io ?

@regorov
Copy link
Author

regorov commented Oct 2, 2018

I did. It works, but the code generated by goswagger I like more ) please take a look, I've pulled request pinnacleapi/openapi-specification#2

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

2 participants