Open

Description
Q | A |
---|---|
Bug or feature request? | feature request |
Which Swagger-Core version? | 2.0.0 |
Which Java version? | Java 8 |
Which JAX-RS framework & version? | 2.0 |
The JSON-B annotation javax.json.bind.annotation.JsonbProperty
can be used to set a different property name for a JSON property much like the jackson annotation com.fasterxml.jackson.annotation.JsonProperty
can.
@javax.json.bind.annotation.JsonbProperty(value = "_name1")
private String name1;
@com.fasterxml.jackson.annotation.JsonProperty (value = "_name2")
private String name2;
When using the jackson annotation the name is automatically used in the generated swagger documentation.
The generated documentation should also reflect the property name set with the JSON-B annotation.
Metadata
Metadata
Assignees
Labels
No labels