7.1.1.1. Policy Configuration Object

Each element of the policy is defined in a policy configuration object. The structure of a policy configuration object is as follows:

{   "policyId" : "minimum-length",
    "clientValidation": true,
    "policyExec" : "propertyMinLength",
    "policyRequirements" : ["MIN_LENGTH"]
}
      
"policyId" - a unique ID that enables the policy to be referenced by component objects.
"clientValidation" - indicates whether the policy decision can be made on the client. When "clientValidation": true, the source code for the policy decision function is returned when the client requests the requirements for a property.
"policyExec" - the name of the function that contains the policy implementation. For more information, see Section 7.1.1.2, “Policy Implementation Function”.
"policyRequirements" - an array containing the policy requirement ID of each requirement that is associated with the policy. Typically, a policy will validate only one requirement, but it can validate more than one.