schema_check() creates a raw schema fragment with a check operator. The
helper performs only lightweight structural validation; semantic validation of
kind and check arguments is handled by schema_doc() and schema edit verbs.
Value
A raw schema fragment accepted by schema_doc() and schema edit verbs.
Examples
schema_check("string", min.chars = 1)
#> $check
#> $check$kind
#> [1] "string"
#>
#> $check$min.chars
#> [1] 1
#>
#>
schema <- schema_doc(schema_check("string", min.chars = 1))
schema
#> {
#> "check": {
#> "kind": "string",
#> "min.chars": 1
#> }
#> }