Inheriting from Argument() in order to represent an argument choice object. Multiple types can be stated, but at least one data type has to be picked. In a JSON-schema this is often used to make objects nullable - meaning that they allow NULL as value. The AnyOf parameter is resolved into a simple nullable argument if this applies.

Value

Object of R6Class() representing an argument choice object.

Methods

$getChoice()

returns a list of Argument() that are allowed

$isNullable

returns TRUE if only one element is in the choice that is not "null"