spectator
spectator copied to clipboard
Fix: boolean casting
This PR fixes two issues related to request validation.
-
If a parameter is not null but "falsey" such as
0the parameter it is not validated this PR corrects this and updates the tests -
It is currently not possible to validate "boolean" type parameters as the assertion will always fail since the string type value from the request parameter is not cast to boolean.
The data (string) must match the type: booleanThis PR caststrueandfalsestring values only to the appropriate boolean, and adds test coverage