I'm using v2.3.1 of swagger-codegen-maven-plugin to generate a set of model
classes for use in a spring-boot application.
In the swagger definition that we have been supplied with, there are
attributes in the entities which are in some cases prefixed with an '*@*',
but the attribute name could be the same as an unprefixed name in the same
entity.
When the Java code is generated, the '*@*' is stripped, potentially
resulting in a duplicate attribute being created in the source code. In one
particular example, there is an entity which defines both *type* & *@type*,
resulting in two identical properties being added to the Java source:
@JsonProperty("type")
private String type = null;
@JsonProperty("@type")
private String type = null;
Is there a way of avoiding this without modifying the supplied swagger
definition? So, rather than just stripping the '*@*', is it possible to
provide a substitution... eg '*at*' ?
Thanks.
Lee
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.