You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classQuestion {
@ArraySchema(schema = @Schema(description = "The answer to the question"))
publicSet<Option> answer;
}
enumOption {
A, B, C, D
}
The OpenAPI 3 schema looks like this:
Question:
type: objectproperties:
answer:
uniqueItems: truetype: arrayitems:
type: stringdescription: The answer to the questionenum:
- A
- B
- C
- D
When I switch to OpenAPI 3.1, I get:
Question:
type: objectproperties:
answer:
type: arrayitems:
description: The answer to the questionuniqueItems: true
I can work around this by adding implementation = Option.class to the inner @Schema annotation, e.g. @ArraySchema(schema = @Schema(description = "The answer to the question", implementation = Option.class)).
The text was updated successfully, but these errors were encountered:
I'm using 2.2.28.
I have the following classes:
The OpenAPI 3 schema looks like this:
When I switch to OpenAPI 3.1, I get:
I can work around this by adding
implementation = Option.class
to the inner@Schema
annotation, e.g.@ArraySchema(schema = @Schema(description = "The answer to the question", implementation = Option.class))
.The text was updated successfully, but these errors were encountered: