Fixed checks for query parameters "required" attributed.