Skip to main content
Panther Knowledge Base

Panther schemas: does the "required" flag propagate to subfields as well?


If I have a required field in my schema that's of type object, will the subfields of the object be required by default too?


No, if you have an object field, the subfields are all optional by default, regardless of whether the object field is required or not. For a subfield to be required, you need to explicitly mark it as such. In the example below, is an optional field, but is required.

  - name: myObj
    type: object
    required: true
        - name: foo
          type: string
        - name: bar
          type: bigint
          required: true


  • Was this article helpful?