Skip to content

Qute/Resteasy: @Valid support for request parameter #34654

Open

Description

Description

Having a controller action like:

@Path("/apiKey")
@POST
@Produces(MediaType.TEXT_HTML)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public TemplateInstance apiKeyPost (@Valid ApiKey key) {       // ApiKey uses jakarta.validation.constraints.* annotations..
  return apiKey.data("apiKey",key);
}

@Valid seems not to be supported for form based requests (enctype="application/x-www-form-urlencoded").
It always leads to a an 415 "Unsupported Media Type" error.

Would be nice to support it.

Implementation ideas

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions