swagger-core
swagger-core copied to clipboard
@Schema not working for boolean fields in Java
Hello,
I have these fields in Java object
however, when i look at generated apidocs, the additional information is missing
When i change them to Boolean object, it starts working.
Which version? On 2.2.0-SNAPSHOT
it seems to be working fine
See unit test in PR #4152
I'm using springdoc openapi version 1.6.6
@gcatanese I think that @agilehorse problem is the field name with prefix "is". I have the same issue in Kotlin.
I have the same issue swagger-core 2.2.9
@ZuevKirill95 @agilehorse About this issue, the chatGPT give the solution is:
@ApiModelProperty(name = "isExample")
private boolean example;
or
@JsonProperty("isExample")
private boolean example;