The ComponentValidationMessage implements the Message interface, which is the building block for all validation related aspects in fritz2 and is also the default type for all headless components. It is definitely a value type from the domain perspective and thuis should be a data class. This makes it so much easier to filter duplicates for example.
That is why we change the type from an open class to a data class.
The
ComponentValidationMessage
implements theMessage
interface, which is the building block for all validation related aspects in fritz2 and is also the default type for allheadless
components. It is definitely avalue
type from the domain perspective and thuis should be adata class
. This makes it so much easier to filter duplicates for example.That is why we change the type from an
open class
to adata class
.fixes #801