Skip to content

Commit

Permalink
#107 : adding the class description
Browse files Browse the repository at this point in the history
  • Loading branch information
faizanvahevaria committed Apr 3, 2020
1 parent f4acd51 commit 4a5b6fb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gs-gs.staruml-cefact",
"title": "OpenAPI3.0 Generator",
"description": "StarUML Extension for generating OpenAPI 3.0 Specs from the UML Diagrams. \nImplementation Rules are according to https://edi3.org/uml-profile/ \nExtension Source Code: https://github.com/gs-gs/staruml-cefact \nExtension version: 0.3.7",
"version": "0.3.11",
"version": "0.3.12",
"engines": {
"staruml": ">=3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Component {
}

this.mainSchemaObj[objClass.name] = mainClassesObj

mainClassesObj.description = objClass.documentation;
mainClassesObj.type = 'object';

/**
Expand Down
14 changes: 14 additions & 0 deletions src/composition.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ class Composition {
sName=assoc.end2.reference.name;
ref=constant.getReference() + sName;
propertiesObj['$ref'] = ref;
propertiesObj.description = assoc.end2.reference.documentation;

/* let allOfArray = [];
propertiesObj.allOf = allOfArray;
let objAllOfArry = {};
sName=assoc.end2.reference.name;
ref=constant.getReference() + sName;
objAllOfArry['$ref'] = ref;
allOfArray.push(objAllOfArry);
objAllOfArry = {};
objAllOfArry.description = assoc.end2.reference.documentation;
allOfArray.push(objAllOfArry); */
}
let temp={};
temp['ref']=propertiesObj;
Expand Down

0 comments on commit 4a5b6fb

Please sign in to comment.