dot-tib_from_one_of: Combine 'oneOf' sub-schemas into a tib field

.tib_from_one_ofR Documentation

Combine oneOf sub-schemas into a tib field

Description

Combine oneOf sub-schemas into a tib field

Usage

.tib_from_one_of(schema, name, openapi_spec)

Arguments

schema

(list) A JSON schema object, as defined in the Schema Object, typically from openapi_spec$components$schemas or inline within the spec.

name

(character(1)) The name of the field.

openapi_spec

(list) A parsed OpenAPI specification.

Value

A combined tib field spec, or tib_variant() if schemas are incompatible.


tibblify documentation built on May 9, 2026, 5:07 p.m.