---
elements:
    - name: foo

    - name: bar
      constraints:
        - type: Required
          when:
            field: foo
