incompatible
Tests flags that are incompatible with one another and appends errors for both incompatible flags when an entry in others has a non-default value.
If field is its default value, this method does nothing.
errs := ErrorMap()
inp_1 := {name: foo, isDefault: false}
inp_2 := {name: bar, isDefault: false}
errs.incompatible(inp_1, inp_2)
errs.toMap == {
foo: Incompatible with bar
bar: Incompatible with foo
}Content copied to clipboard
Parameters
field
Primary field to test against.
others
Other fields to test against.