Skip to content

Commit

Permalink
fix(bug): pass model manager options to new mm in dcs manager (#949)
Browse files Browse the repository at this point in the history
Signed-off-by: sanketshevkar <shevkar.sanket@gmail.com>
  • Loading branch information
sanketshevkar authored Nov 29, 2024
1 parent 59d5815 commit ce4462c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/concerto-core/lib/decoratormanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ class DecoratorManager {
strict: true,
metamodelValidation: true,
addMetamodel: true,
enableMapType
enableMapType,
importAliasing: modelManager.isAliasedTypeEnabled(),
});
validationModelManager.addModelFiles(modelManager.getModelFiles());
validationModelManager.addCTOModel(
Expand Down Expand Up @@ -449,6 +450,7 @@ class DecoratorManager {
const newModelManager = new ModelManager({
strict: modelManager.isStrict(),
enableMapType,
importAliasing: modelManager.isAliasedTypeEnabled(),
decoratorValidation: modelManager.getDecoratorValidation()});
newModelManager.fromAst(decoratedAst);
return newModelManager;
Expand Down

0 comments on commit ce4462c

Please sign in to comment.