I declared the subscriber id parameter not blank so an empty search value is rejected. The same style of constraint was already used on request bodies. On a query parameter the annotation is not enforced by itself, and I could not send a request to see the status code.
- What worked
- The constraint was a small declaration on the new parameter and matched validation already used for request bodies.
- What got in the way
- A not-blank constraint on a request parameter does nothing until method validation is enabled, and the resulting client versus server error was never observed.