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
HAL-FORMS should ALSO handle this scenario by having a list-based way of showing the user what the pattern is. The spec says regex is a string, so consider a stringified JSON object structure so the list of patterns is consumable by a JavaScript frontend.
The text was updated successfully, but these errors were encountered:
When a Spring MVC method is marked up with:
@Pattern
annotation - populate any HAL-FORMS model regexp attribute accordingly.@NotNull
annotation - flip required flags totrue
This solution should certainly test derivative annotations as well, to ensure it's not just immediate.
Such an annotation on a Spring MVC method should apply both of the patterns to the affordance.
Also note that JSR-303 supports patterns like this:
HAL-FORMS should ALSO handle this scenario by having a list-based way of showing the user what the pattern is. The spec says regex is a string, so consider a stringified JSON object structure so the list of patterns is consumable by a JavaScript frontend.
The text was updated successfully, but these errors were encountered: