MapSchema()

The MapSchema class.

new MapSchema()

Methods

keyPattern(keyPattern)

Set a key pattern for the map.
Parameters:
Name Type Description
keyPattern String A pattern for keys

value(value)

Set a value schema for the map.
Parameters:
Name Type Description
value BaseSchema Any subclass of BaseSchema for the values of map