Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
requireUser | Boolean | whether the cloud trigger requires a user. | ||||||||||||||||||||||||
requireMaster | Boolean | whether the cloud trigger requires a master key. | ||||||||||||||||||||||||
validateMasterKey | Boolean | whether the validator should run if masterKey is provided. Defaults to false. | ||||||||||||||||||||||||
skipWithMasterKey | Boolean | whether the cloud code function should be ignored using a masterKey. | ||||||||||||||||||||||||
requireUserKeys | Array.<String> | | If set, keys required on request.user to make the request. Properties
| ||||||||||||||||||||||||
requireAnyUserRoles | Array.<String> | | If set, request.user has to be part of at least one roles name to make the request. If set to a function, function must return role names. | ||||||||||||||||||||||||
requireAllUserRoles | Array.<String> | | If set, request.user has to be part all roles name to make the request. If set to a function, function must return role names. | ||||||||||||||||||||||||
fields | Object | | if an array of strings, validator will look for keys in request.params, and throw if not provided. If Object, fields to validate. If the trigger is a cloud function, Properties
|
Parse.Cloud. ValidatorObject
Properties