Commit 9a39e00b authored by Dominique Marcadet's avatar Dominique Marcadet

Merge branch '32-incorrect-warning-type-is-missing-for-enumerated-in-dataattribute' into 'master'

Resolve "Incorrect warning "type is missing for ENUMERATED" in DataAttribute"

Closes #32

See merge request !30
parents 54b54133 b26fd17b
Pipeline #4881 passed with stages
in 32 seconds
......@@ -3725,7 +3725,18 @@ public class DataAttributeImpl extends DocumentedClassImpl implements DataAttrib
}
}
else {
console.warning( messagePrefix + "type is missing for " + getTypeKind() );
// type for ENUMERATED may be missing if CDC has enumParameterized="true"
if(( getTypeKind().getValue() == DefinedAttributeTypeKind.ENUMERATED_VALUE )) {
if( getParentCDC().isEnumParameterized() ) {
console.info( messagePrefix + "type is missing for " + getTypeKind() + " but enumParameterized in parent CDC is true" );
}
else {
console.warning( messagePrefix + "type is missing for " + getTypeKind() + " and enumParameterized in parent CDC is false" );
}
}
else {
console.warning( messagePrefix + "type is missing for " + getTypeKind() );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment