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
I am accepting a query parameter within an object in an opaque form so that I can apply Jakarta validation constraints to it, rather than failing to create the object at all and generating a useless message about dependency injection not being able to build the object.
I'm declaring a query parameter as a String and then parsing it later, as follows:
@PositiveOrZero@Parameter(description = "The offset at which to list items", schema = @Schema(type = "integer", format = "int32"))
@QueryParam(OFFSET)
publicStringoffset;
Despite this, the schema for the query parameter continues to have string as its type:
parameters:
- name: offsetin: querydescription: The offset at which to list itemsschema:
type: string # should be type: integerformat: int32
Using schema = @Schema(implementation = Integer.class) also fails to attach the correct type to the query parameter.
The text was updated successfully, but these errors were encountered:
I am accepting a query parameter within an object in an opaque form so that I can apply Jakarta validation constraints to it, rather than failing to create the object at all and generating a useless message about dependency injection not being able to build the object.
I'm declaring a query parameter as a
String
and then parsing it later, as follows:Despite this, the schema for the query parameter continues to have
string
as its type:Using
schema = @Schema(implementation = Integer.class)
also fails to attach the correct type to the query parameter.The text was updated successfully, but these errors were encountered: