Description Usage Arguments References See Also Examples
A list of constraints for validating field values.
1 2 3 |
required |
(logical) Whether field cannot contain |
unique |
(logical) Whether field values must be unique. |
minLength |
(integer) Minimum length of field values. |
maxLength |
(integer) Maximum length of field values. |
minimum |
Minimum value (of same type as field). |
maximum |
Maximum value (of same type as field). |
pattern |
(character) Regular expression field values must match (see https://www.w3.org/TR/xmlschema-2/#regexs). |
enum |
(vector) Allowed values. |
https://specs.frictionlessdata.io/table-schema/#constraints
Other meta objects: contributor
,
field
, foreignKey
,
package
, resource
,
schema
, source
1 2 3 4 5 6 | constraints(
required = TRUE,
unique = TRUE,
minimum = "1970-01-01",
pattern = "[0-9]{4}-[0-9]{2}-[0-9]{2}"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.