#Validate request param is equal to value otherwise BadRequest
10 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @deep coyote! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
By using @Value annotation on top of the attribute like so:
@Valid
@Value("value")
private String myAtrib;
This would work? What if I wanna admit two possible values?
@Valid
@Value("value", "value2")
private String myAtribTwoVals;
yeah, this should be a custom validator
Cool, thank you for confirming my suspects👍