The input is unknown[] deliberately: BaseEntityResult.Errors is any[] and mixes
ValidationErrorInfo instances with plain Errors. Entries carrying a string Message (the MJ
shape) are kept — a missing or non-string Source is normalised to '', meaning "not tied to a
field", and an unknown Type defaults to Failure. Entries without a Message (an Error has
only lowercase message) are skipped: they have no field to paint and their text already reaches
the client through CompleteMessage.
Flattens a result's
Errorsarray for transport.The input is
unknown[]deliberately:BaseEntityResult.Errorsisany[]and mixesValidationErrorInfoinstances with plainErrors. Entries carrying a stringMessage(the MJ shape) are kept — a missing or non-stringSourceis normalised to'', meaning "not tied to a field", and an unknownTypedefaults toFailure. Entries without aMessage(anErrorhas only lowercasemessage) are skipped: they have no field to paint and their text already reaches the client throughCompleteMessage.