We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allowableValues
Description: The allowableValues parameter not restricts enum values:
enum MyEnum { A, B, C }
// groovy @Schema(allowableValues=['A' , 'B']) MyEnum field
Expected behavior:
allowableValues will restrict enum values in SwaggerUI to A, B
Actual behavior:
allowableValues extends enum values in SwaggerUI to A, B, C, A, B
io.swagger.core.v3:swagger-core:2.0.0 io.swagger.core.v3:swagger-annotations:2.0.0 io.swagger.core.v3:swagger-annotations:2.0.0 io.swagger.core.v3:swagger-jaxrs2:2.0.0 io.swagger.core.v3:swagger-integration:2.0.0
The text was updated successfully, but these errors were encountered:
@gtors btw, adding @Schema(type="string", allowableValues=['A' , 'B']) fixes this while it is still not obvious.
@Schema(type="string", allowableValues=['A' , 'B'])
Sorry, something went wrong.
You can also @Hidden the default values
@Hidden
No branches or pull requests
Description:
The
allowableValues
parameter not restricts enum values:Expected behavior:
allowableValues
will restrict enum values in SwaggerUI to A, BActual behavior:
allowableValues
extends enum values in SwaggerUI to A, B, C, A, BThe text was updated successfully, but these errors were encountered: