-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
[BUG][Spring] generator not escaping backslashes #1691
Labels
Comments
Thanks for opening this issue! I have applied any relevant labels. |
hebra
changed the title
[BUG] Description spring generator not escaping backslashes
[BUG] spring generator not escaping backslashes
Dec 17, 2018
hebra
changed the title
[BUG] spring generator not escaping backslashes
[BUG][Spring] generator not escaping backslashes
Dec 17, 2018
5 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Trying to generate Java code from the Vimeo OpenAPI spec.
That spec (api.yaml) uses backslashes in some of the strings (e.g. tag definitions).
Using the openapi gradle plugin 3.3.4 the generator 'spring' with any of it libraries (spring-boot, spring-mvc, spring-cloud) generates code which does not escape backslashes properly.
openapi-generator version
3.3.4
OpenAPI declaration file content or url
Command line used for generation
As this is a gradle project the command line is just
but I'd assume the same code is generated when using the generator lib directly.
Steps to reproduce
./gradlew clean openApiGenerate
---> the backslash is not escaoped, leading to compile errors
Suggest a fix
The text was updated successfully, but these errors were encountered: