Fieldset field types

A fieldset is a collection of other fields, stored as a DynamicDataFieldSet map. It is usually visualized as a fieldset in HTML, with the member fields inside it.

When working with fieldsets the different member fields are usually accessed and set directly. The path to a member field of a fieldset will always start with the path of the fieldset it belongs to.

A fieldset field requires additional field definitions to be registered under the fields key.

Example fieldset field
document-definition:
  name: company-data
  content:
    - id: general (1)
      type: fieldset
      fields: (2)
        - id: name (3)
          type: string
        - id: operational
          type: boolean
        - id: shareholders
          type: string
          possible-values:
            - private
            - public
1 Defines the fieldset field.
2 Holds the list of other fields that make up this fieldset (in order).
3 The full path for directly accessing the name field would be general.name.