optional field

A field that may be missing from a record, which readers must handle, typically by using a default value.

In more detail

Adding an optional field is the safest schema change, since old consumers ignore it and new consumers can fall back to a default when it is absent. A required field must always be present.

Example

v.get('currency', 'USD')

Related terms

Taught in

References

Certification courses