Suspicious validation behaviour of NamedEvent
The validation process of class NamedEvent is very confusing. Why do I have to pass a schema to NamedEvent, that validates the content
object that I have to pass to the constructor as well? This basically allows me to construct a schema that fits the content. Later fillEventMessage
is called, which later on validates the created message against a predefined schema. This validation may fail due to the content I passed to the constructor. This should not be happening. And the documentation should tell me, that some additional validation is performed.
Edited by GromeTT