Open autopp opened 5 years ago
I have found another place to embed {{url}}}
as a string literal.
I think that these client codes also have the same problem.
I think that the embedded URL must be escaped.
I also found a place where url
is used as HTML escaped in comments.
E.g.: https://github.com/OpenAPITools/openapi-generator/blob/1d08296f964c4dc947ac84c058b77f2de551fd66/modules/openapi-generator/src/main/resources/Java/api.mustache#L60
If all urls are escaped with escapeText
, it seems to be a problem in such a case.
For string literals it may be better not to use url
.
Bug Report Checklist
Description
Generated Ruby client code in
samples/client/petstore-security-test/ruby
contains syntax errors.openapi-generator version
OpenAPI declaration file content or url
N/A
Command line used for generation
Steps to reproduce
Get errors:
Related issues/PRs
2101
Suggest a fix
The cause is here. I think that the embedded URL must be escaped.