Currently, TroubleTicket, AnomalieAdresseBase, AnomalieAdresseNewBuilding, AnomalieAdresseUpdate, and AnomalieAdresseUpdateNbLogements all defines the relatedEntity property.
If we want to have polymorphism, this leads to have "cascading validation" more than once for the relatedEntity. This will cause the validation to always fail in any interface generated using codegen.
Je ne comprend pas cette issue, vous enlevez le typage de l'objet dans common pour corriger votre probleme...
alors que RelatedEntity est bien une classe mere je ne comprend pas où est le multi source
This issue is strictly related to https://github.com/before-interop/common/issues/52 and should be resolved together.
Currently, TroubleTicket, AnomalieAdresseBase, AnomalieAdresseNewBuilding, AnomalieAdresseUpdate, and AnomalieAdresseUpdateNbLogements all defines the relatedEntity property.
If we want to have polymorphism, this leads to have "cascading validation" more than once for the relatedEntity. This will cause the validation to always fail in any interface generated using codegen.
Normally, we should have a single source of truth, and this is highlighted in the official best practices: https://learn.openapis.org/best-practices.html#keep-a-single-source-of-truth
that's why we should remove the definition of relatedEntity from parents and define it only in the "leaves"