I’m trying to validate query strings according to this JSONAPI specification:
If a server is unable to identify a relationship path or does not support inclusion of resources from a path, it MUST respond with 400 Bad Request.
What is a good way to validate query strings (or best practices)? Seems like the validator only validates against the request body. Currently just calling an instance method inside a controller doesn’t seem like a scalable solution and goes against the DRY principle.