R6 class with Types and Formats.
type
and format
properties are used to give the type of the field (string, number etc) -
see types and formats for more details.
If type is not provided a consumer should assume a type of "string".
A field's type
property is a string indicating the type of this field.
A field's format
property is a string, indicating a format for the field type.
Both type
and format are optional: in a field descriptor, the absence of a type
property indicates that
the field is of the type "string", and the absence of a format
property indicates that the field's type format
is "default".
Types are based on the type set of json-schema with some additions and minor modifications (cf other type lists include those in Elasticsearch types).
R6Class
object.
Object of R6Class
.
Types and formats specifications,
types.castAny
,
types.castBoolean
,
types.castDate
,
types.castDatetime
,
types.castDuration
,
types.castGeojson
,
types.castGeopoint
,
types.castInteger
,
types.castList
,
types.castNumber
,
types.castObject
,
types.castString
,
types.castTime
,
types.castYear
,
types.castYearmonth
,
types.castArray
clone()
The objects of this class are cloneable with this method.
Types$clone(deep = FALSE)
deep
Whether to make a deep clone.