It is expecting a String, since it is coming in via a HTTP request. That is a regex that makes sure that it is a string of "true" or "false".