jsonApiQuery
jsonApiQuery: (…
options) =>Function
Defined in: http/json-api-query.js:37
Creates a JSON:API query validation middleware.
Parameters
Section titled “Parameters”options
Section titled “options”…any
Options forwarded to the underlying JSON:API validator
Returns
Section titled “Returns”Function
- Ergo middleware
(req, res, acc) => void; returns{response: {statusCode: 400}}when JSON:API query parameters fail validation