Open BinaryNumber opened 3 years ago
Indeed, "Récupérer la liste des titi" becomes "Récupérer la liste des titi".
Is your spec file encoded in UTF-8?
Yes, both openapi.yaml and definitions.yaml are encoded in UTF-8
ok. maybe the fix is to use {{{...}}}
(original value) instead of {{...}}
(HTML-escaped value) in the templates.
In fact, apiInterface.mustache
template is already using {{{summary}}}
as you can see here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/apiInterface.mustache#L5
Bug Report Checklist
Description
When generating classes from openapi.yaml custom specification with french special characters, Swagger @ApiOperation "value" fields contain badly encoded special characters. This is a problem for me because my API documentation inside Swagger-UI is well exposed but unreadable... Indeed, "Récupérer la liste des titi" becomes "Récupérer la liste des titi".
openapi-generator version
I am usign 5.1.0 version of openapi-generator-maven-plugin
OpenAPI declaration file content or url
openapi.yaml
definitions.yaml
Generation Details
I am using the following maven configuration:
Steps to reproduce
mvn clean install
target/src/main/java/.../TotoApi.java
to see@ApiOperation(value = "some badly encoded characters", notes = "", tags={ })
target/src/main/openapi/openapi.yaml
to seesummary
anddescription
tags with badly encoded charactersRelated issues/PRs
Suggest a fix