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

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

ArgumentsTypeDescription
payload
JSONObject
Raw payload received in the API action body
paths
string[]
Paths of properties (lodash style)