ArraySchema(itemsopt)

The ArraySchema class.

new ArraySchema(itemsopt)

Creates an array schema object.
Parameters:
Name Type Attributes Description
items BaseSchema <optional>
An optional parameter to items(). If provided, it is the same as calling S.arr().items(items).

Methods

items(items)

Set the schema for items in array
Parameters:
Name Type Description
items BaseSchema Any subclass of BaseSchema. Schema gets locked.