How and Should We Validate Optional Query Parameters in Spring REST Controller I have a Spring REST API endpoint defined as follows: