@accordproject/concerto-cto
Advanced tools
Comparing version 1.2.2-20220111153301 to 1.2.2-20220112145448
@@ -160,7 +160,7 @@ /* | ||
result += ` ${mm.name}`; | ||
result += defaultString; | ||
result += validatorString; | ||
if (mm.isOptional) { | ||
result += ' optional'; | ||
} | ||
result += defaultString; | ||
result += validatorString; | ||
return result; | ||
@@ -203,6 +203,2 @@ } | ||
} | ||
if (mm.superType) { | ||
result += `extends ${mm.superType.name} `; | ||
} | ||
// XXX Needs to be fixed to support `identified` | ||
if (mm.identified) { | ||
@@ -215,2 +211,5 @@ if (mm.identified.$class === 'concerto.metamodel.IdentifiedBy') { | ||
} | ||
if (mm.superType) { | ||
result += `extends ${mm.superType.name} `; | ||
} | ||
result += '{'; | ||
@@ -231,2 +230,7 @@ mm.properties.forEach((property) => { | ||
let result = ''; | ||
if (metaModel.concertoVersion) { | ||
result += `concerto version "${metaModel.concertoVersion}"`; | ||
result += '\n'; | ||
result += '\n'; | ||
} | ||
result += `namespace ${metaModel.namespace}`; | ||
@@ -233,0 +237,0 @@ if (metaModel.imports && metaModel.imports.length > 0) { |
{ | ||
"name": "@accordproject/concerto-cto", | ||
"version": "1.2.2-20220111153301", | ||
"version": "1.2.2-20220112145448", | ||
"description": "Parser for Concerto CTO files", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/accordproject/concerto", |
350371
9525