Support JSON-B @JsonbProperty in generated documentation
See original GitHub issueQ | 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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
Json Binding 1.0 Users Guide - Java EE
JSON -B supports collections and generic collections handling. ... The same JSON document will be produced if @JsonbProperty annotation is ...
Read more >Custom binding with JSON-B - IBM Developer
Learn how to use and combine annotations and runtime configuration to control the binding and appearance of properties, fields, ...
Read more >Jakarta JSON Binding
Support binding (serialization and deserialization) for all RFC 7159-compatible JSON documents. Relationships to JSON Related specifications
Read more >JSON-P and JSON-B :: Open Liberty Docs
JSON supports two standard data structures: objects and arrays. ... They are relatively expensive to create private static final Jsonb jsonb ...
Read more >9.5: JSON Functions and Operators - PostgreSQL
This documentation is for an unsupported version of PostgreSQL. ... operators that accept integer JSON array subscripts all support negative subscripting ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am using swagger plugin to generate classes from api spec (yaml) file. The generated model classes contains Jackson annotations. I would like to have JSON-B annotations instead of Jackson annotations. How this can be achieved?
+1 for Swagger to read @JsonbProperty