Attributes | Name and Description |
---|---|
|
caplin.core.validator.MapConfigUtility()
Utility class with static method for checking validity of map config object. |
Attributes | Name and Description |
---|---|
<static>
|
void
checkConfig(object config)
Check validity of given map config object. |
►
caplin.core.validator.MapConfigUtility()
Utility class with static method for checking validity of map config object.
►
<static>
void
checkConfig(object config)
Check validity of given map config object.
object | config | configuration object specifying the allowed/required keys and values in a map.
config must have an anyAllowed property, set to a boolean. If anyAllowed is true, then any field or value is allowed, and an optional fields property may be provided to specify if fields are required or have conditions on their values. If anyAllowed is false, then a fields property must be provided, which must be a map of field names. Only these field names will be allowed. For each field name in fields, a map can be provided specifying the following:
{ anyAllowed: true } This config object allows any field, and requires that width be present, and have value type number at least 100.
|