Ah, I see it now. Most of what used to be under ApiModelProperty now lives under Schema.
What does that mean, exactly? The docs shows this:
@ApiModelProperty(description = "pet status in the store", allowableValues = {"available","pending","sold"})
public String getStatus() {
return status;
}
But that annotation doesn't exist in 2.0.0-rc2. How should I document fields in my class?
You both are right. The ApiModelProperty doesn't exist in the new version. Everything related with the models is now handled with the @Schema annotation.
Thanks a lot for this observation!
We updated the wiki with this:
And/Or a schema property:
@Schema(description = "pet status in the store", allowableValues = {"available","pending","sold"})
public String getStatus() {
return status;
}
Most helpful comment
You both are right. The ApiModelProperty doesn't exist in the new version. Everything related with the models is now handled with the @Schema annotation.
Thanks a lot for this observation!
We updated the wiki with this:
And/Or a schema property:
@Schema(description = "pet status in the store", allowableValues = {"available","pending","sold"}) public String getStatus() { return status; }