Open mikaelcom opened 5 years ago
Two generated validation methods (union, list and array rules) have been added to the generated classes:
union
list
array
validate{parameterName}ForUnionConstraintsFrom{setterMethodName}
validate{parameterName}ArrayValuesFrom{setterMethodName}
validate{parameterName}ForChoiceConstraintsFrom{setterMethodName}
Wouldn't it be better to extract them from the geenerated classes to the PackageBase project into a limited number of generic validation methods?
This way, it would be easier to implement new validation rules without having to update the generated classes nor the generator's validation rules.
Two generated validation methods (
union
,list
andarray
rules) have been added to the generated classes:validate{parameterName}ForUnionConstraintsFrom{setterMethodName}
validate{parameterName}ArrayValuesFrom{setterMethodName}
validate{parameterName}ForChoiceConstraintsFrom{setterMethodName}
Wouldn't it be better to extract them from the geenerated classes to the PackageBase project into a limited number of generic validation methods?
This way, it would be easier to implement new validation rules without having to update the generated classes nor the generator's validation rules.