-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Class naming inconsistent in swagger comment to cause swagger generated sdk could not be built on case sensitive os. #1384
Comments
Running into this with the nodejs package (@oryd/hydra@1.0.0-rc.9) when building on debian.
|
Grrr, swagger - damn you!. Any ideas how to fix this in swagger? |
I guess as a first we can upgrade swagger-codegen now as we're no longer relying on the Go generator (which is completely broken in the new codegen version). |
aeneasr
added a commit
that referenced
this issue
Apr 26, 2019
Previously, the SDK directory was included when generating the Swagger specification. This caused issues due to duplicate models. This patch resolves that issue. Closes #1384 Signed-off-by: aeneasr <aeneas@ory.sh>
aeneasr
added a commit
that referenced
this issue
Apr 27, 2019
Previously, the SDK directory was included when generating the Swagger specification. This caused issues due to duplicate models. This patch resolves that issue. Closes #1384 Signed-off-by: aeneasr <aeneas@ory.sh>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There is inconsistent naming convention of class SwaggerJsonWebKeyQuery(SwaggerJSONWebKeyQuery) in the swagger document which cause issue for openapi-generator to generate sdk cannot be built on case sensitive os. (eg. Linux)
To Reproduce
Steps to reproduce the behavior:
openapi-generator generate -g javascript -i https://raw.githubusercontent.com/ory/hydra/v1.0.0-rc.9%2BoryOS.10/docs/api.swagger.json -o ./ --additional-properties useES6=true
Expected behavior
Can be build on any os.
Version:
Additional context
It won't be problem on mac_os and windows if file system of os is case insensitive.
For simplicity, please just check
hydra/sdk/js/swagger/src/index.js
Lines 239 to 253 in 067e498
The text was updated successfully, but these errors were encountered: