Skip to content

Commit

Permalink
feat(*): add scalar support
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Casey <jonathan.casey@docusign.com>
  • Loading branch information
jonathan-casey committed Oct 20, 2023
1 parent 754e9bd commit c1afe87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/metamodelutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ function resolveTypeNames(metaModel, table) {
metaModel.type.namespace = resolveName(metaModel.type.name, table);
}
break;
case `${MetaModelNamespace}.StringScalar`:
case `${MetaModelNamespace}.BooleanScalar`:
case `${MetaModelNamespace}.DateTimeScalar`:
case `${MetaModelNamespace}.DoubleScalar`:
case `${MetaModelNamespace}.LongScalar`:
case `${MetaModelNamespace}.IntegerScalar`: {
metaModel.namespace = resolveName(metaModel.name, table);
}
break;
}
return metaModel;
}
Expand Down
3 changes: 2 additions & 1 deletion test/cto/carResolved.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
{
"$class": "concerto.metamodel@1.0.0.DateTimeScalar",
"defaultValue": null,
"name": "DateServiced"
"name": "DateServiced",
"namespace": "org.car"
},
{
"$class": "concerto.metamodel@1.0.0.MapDeclaration",
Expand Down

0 comments on commit c1afe87

Please sign in to comment.