Foxx: use joi in queryParam and pathParam (fixes #936)

This implements the changes in #936.
Copy-paste, I guess :blush: