Create an all schema combinator fragment
Value
A raw schema fragment accepted by schema_doc() and schema edit verbs.
Examples
schema <- schema_doc(schema_all(
schema_check("string"),
schema_check("string", min.chars = 1)
))
schema
#> {
#> "all": [
#> {
#> "check": {
#> "kind": "string"
#> }
#> },
#> {
#> "check": {
#> "kind": "string",
#> "min.chars": 1
#> }
#> }
#> ]
#> }
schema_validate(schema, "ok", mode = "test")
#> [1] TRUE