Delete a schema node keys rule
Arguments
- x
A
SchemaDoc.- path
Path to the target schema node. Use
$for the root node. Bare field segments such as$idimplicitly traverse containerfields. Use$fields$idto write the explicit field path. Backtick-quote field names that contain path operators, for example$`a$b`.- missing
Missing-target behavior. Use
"error"to raise an error or"ignore"to leave the schema unchanged.
Examples
schema <- schema_doc(list(check = list(kind = "list"), keys = list(type = "named")))
schema <- schema_del_keys(schema)
schema
#> {
#> "check": {
#> "kind": "list"
#> }
#> }
as.list(schema)$keys
#> NULL