Create a union type specification
one_of.RdAccepts values that match any of the specified types.
Examples
# Accept different model types
schema(model = one_of(isa("lm"), isa("glm"), isa("nls")))
#> # A tibble: 0 × 1
#> # ℹ 1 variable: model <list<list>>
# Accept different neuroimaging formats
schema(img = one_of(isa("DenseNeuroVol"), isa("SparseNeuroVol")))
#> # A tibble: 0 × 1
#> # ℹ 1 variable: img <list<list>>