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

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
actualValueStringyes Long-Term The value that the field contained.
fieldNameStringyes Long-Term Field being asserted on.

Table: FieldHadUnexpectedValue

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
actualValueString  Long-Term The actual value of the field. Note that this is null in the case where the field wasn't present at all.
expectedValueStringyes Long-Term Value that was asserted to be contained in the field.
fieldNameStringyes Long-Term Field being asserted on.

Table: FieldHadConflictingAssertions

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
fieldNameStringyes Long-Term Field being asserted on.

Table: AssertionOnFieldWasOrphaned

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
fieldNameStringyes Long-Term Field being asserted on.