AssertionFailureOnField is a union datatype based on the different ways in which an assertion may fail. You'd use the parameters of FieldUnexpectedlyPresent, or FieldHadUnexpectedValue, or FieldHadConflictingAssertions, or AssertionOnFieldWasOrphaned datatype. Below are the tables for each datatype:

Table: FieldUnexpectedlyPresent

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 25, 2024
actualValuestringyes Long-TermThe value that the field contained.
fieldNamestringyes Long-TermThe field being asserted on.

Table: FieldHadUnexpectedValue

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 25, 2024
actualValuestring  Long-TermThe actual value of the field. Note that this is null in the case where the field wasn't present.
expectedValuestringyes Long-TermThe value that was asserted to be contained in the field.
fieldNamestringyes Long-TermThe field being asserted on.

Table: FieldHadConflictingAssertions

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 25, 2024
fieldNamestringyes Long-TermThe field being asserted on.

Table: AssertionOnFieldWasOrphaned

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 23, 2024
fieldNamestringyes Long-TermThe name of the field which is being asserted.