I am using Swagger 3.0/Open-API in a Java project.
I have non-bean-like DTO classes which are JAX-B-annotated.
@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public MyDTO {
private String myProperty;
}
Swagger does not pick up the property myProperty while JAX-B and Jackson
process it as expected.
The Swagger docs talk about bean properties from time to time, but I don't
see a requirement for classes to be beans. All solutions regarding JAXB and
non-bean-like model classes I found (e.g. @ApiModelProperty) refer to older
Swagger versions.
Is there a way to have current Swagger process non-public properties
without setters/getters?
--
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.