Official Plugins (Kuzzle v2.x)
Device Manager v1.x
2

This plugin is part of the Kuzzle Enterprise Plan. If you are interested, please contact us.

ensureProperties #

Checks if the provided properties are present in the payload

A BadRequestError will be thrown if a property is missing.

Copied to clipboard!
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)