ArrayValidator: A validator specifying constraints on an array node.

Description Usage Arguments Value See Also

View source: R/types.R

Description

A validator specifying constraints on an array node.

Usage

1
2
3
4
5
6
7
8
9
ArrayValidator(
  contains,
  id,
  itemsValidator,
  maxItems,
  meta,
  minItems,
  uniqueItems
)

Arguments

contains

An array node is valid if at least one of its items is valid against the contains schema.

id

The identifier for this item.

itemsValidator

Another validator node specifying the constraints on all items in the array.

maxItems

An array node is valid if its size is less than, or equal to, this value.

meta

Metadata associated with this item.

minItems

An array node is valid if its size is greater than, or equal to, this value.

uniqueItems

A flag to indicate that each value in the array should be unique.

Value

A list of class ArrayValidator

See Also

Entity


stencilaschema documentation built on Feb. 22, 2021, 5:05 p.m.