When a @BeanParam field has @Parameter(schema = @Schema(defaultValue = "ASC")) on an enum-typed field, SmallRye produces a schema with only the default value, type and enum are lost.
I would expect SmallRye to pick up the type and enum values from the Java field type and combine them with the explicitly provided default value.
Example:
public static class QueryOptions {
@QueryParam("sortOrder")
@Parameter(description = "Sort direction", schema = @Schema(defaultValue = "ASC"))
SortOrder sortOrder; // enum with ASC, DESC
}
# Expected:
schema:
type: string
enum: [ASC, DESC]
default: ASC
# Actual:
schema:
default: ASC
When a
@BeanParamfield has@Parameter(schema = @Schema(defaultValue = "ASC"))on an enum-typed field, SmallRye produces a schema with only the default value, type and enum are lost.I would expect SmallRye to pick up the type and enum values from the Java field type and combine them with the explicitly provided default value.
Example: