We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Our api doesn't provide enum types on query params. Version 5.0.0-beta2 cast these enums as AnyType which is not usable in Swift project.
Same issue has reported and resolved for typescript-axos #6273
@openapitools/[email protected]
and master branch
https://api-int.icloudhospital.com/swagger/v1/swagger.json
With master branch
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g swift5 -i https://api-int.icloudhospital.com/swagger/v1/swagger.json -o src --skip-validate-spec
With 5.0.0-beta2
openapi-generator generate -g swift5 -i https://api-int.icloudhospital.com/swagger/v1/swagger.json -o src --skip-validate-spec
Since our api doesn't provide enum type on it's query params, I had to add skip-validate-spec
Version 5.0.0-beta2 cast these enums as AnyType which is default for all generator and my Swift project can't find this type.
When I build the master branch and generated client, my project throws below error.
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
#6273
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue. I've filed #7644 to fix it.
Sorry, something went wrong.
I think this issue can now be closed
AnyType
@wing328 same here, this issue can be closed
No branches or pull requests
Bug Report Checklist
Description
Our api doesn't provide enum types on query params.
Version 5.0.0-beta2 cast these enums as AnyType which is not usable in Swift project.
Same issue has reported and resolved for typescript-axos #6273
openapi-generator version
@openapitools/[email protected]
and master branch
OpenAPI declaration file content or url
https://api-int.icloudhospital.com/swagger/v1/swagger.json
Generation Details
With master branch
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g swift5 -i https://api-int.icloudhospital.com/swagger/v1/swagger.json -o src --skip-validate-spec
With 5.0.0-beta2
openapi-generator generate -g swift5 -i https://api-int.icloudhospital.com/swagger/v1/swagger.json -o src --skip-validate-spec
Steps to reproduce
Since our api doesn't provide enum type on it's query params, I had to add skip-validate-spec
Version 5.0.0-beta2 cast these enums as AnyType which is default for all generator and my Swift project can't find this type.
When I build the master branch and generated client, my project throws below error.
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
Related issues/PRs
#6273
Suggest a fix
The text was updated successfully, but these errors were encountered: