jwstegemann / fritz2

Easily build reactive web-apps in Kotlin based on flows and coroutines.
https://www.fritz2.dev
MIT License
636 stars 25 forks source link

Make ComponentValidationMessage a data class #808

Closed metin-kale closed 9 months ago

metin-kale commented 9 months ago

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.

fixes #801

Lysander commented 9 months ago

Proposals: