Open
Description
openedon Jul 10, 2023
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