new module:ct-core /validator /Map Config Utility()
Utility class with static method for checking validity of map config object.
Methods
(static) check Config(config, value:)
Check validity of given map config object.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
configuration object specifying the allowed/required keys and values in a map. Properties
|
||||||||||||||||||||||||
value: |
* |
The field's value must match the given value exactly. Example config objects: This is the simplest possible config object; it allows any field.{ anyAllowed: true } This config object allows any field, and requires that width be present, and have value type number at least 100.
|