ensureProperties #
Checks if the provided properties are present in the payload
A BadRequestError
will be thrown if a property is missing.
ensureProperties (payload: JSONObject, paths: string[]): void | never
Arguments | Type | Description |
---|---|---|
payload | JSONObject | Raw payload received in the API action body |
paths | string[] | Paths of properties (lodash style) |