{% if storage_settings %}
# Field storage.
field.storage_settings.{{ field_id }}:
  type: mapping
  label: Example storage settings
  mapping:
    foo:
      type: string
      label: Foo
{% endif %}
{% if instance_settings %}

# Field instance.
field.field_settings.{{ field_id }}:
  type: mapping
  label: Example field settings
  mapping:
    bar:
      type: string
      label: Bar
{% endif %}

# Default value.
field.value.{{ field_id }}:
  type: mapping
  label: Default value
  mapping:
{% for subfield in subfields %}
    {{ subfield.machine_name }}:
      type: {{ subfield.type }}
      label: {{ subfield.name }}
{% endfor %}
{% if widget_settings %}

# Field widget.
field.widget.settings.{{ field_id }}:
  type: mapping
  label: Example widget settings
  mapping:
    foo:
      type: string
      label: Foo
{% endif %}
{% if formatter_settings %}

# Field formatter.
field.formatter.settings.{{ field_id }}_default:
  type: mapping
  label: Example formatter settings
  mapping:
    foo:
      type: string
      label: Foo
{% endif %}