-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map): Codegen for Markdown & Mermaid Target (#77)
* feat(*): extend markdown visitor Signed-off-by: Jonathan Casey <[email protected]> * feat(*): extend mermaid visitor Signed-off-by: Jonathan Casey <[email protected]> * test(*): update snapshot Signed-off-by: Jonathan Casey <[email protected]> * feat(*): changes relationship model Signed-off-by: Jonathan Casey <[email protected]> * empty commit Signed-off-by: Jonathan Casey <[email protected]> * Revert "feat(*): changes relationship model" This reverts commit 2191423. Signed-off-by: Jonathan Casey <[email protected]> * Revert "Revert "feat(*): changes relationship model"" This reverts commit 3e709d5. Signed-off-by: Jonathan Casey <[email protected]> * feat(*): drop cov threshold Signed-off-by: Jonathan Casey <[email protected]> * feat(*): use class Signed-off-by: Jonathan Casey <[email protected]> * feat(*): try functions 100 Signed-off-by: Jonathan Casey <[email protected]> * Revert "feat(*): try functions 100" This reverts commit 7b054aa. Signed-off-by: Jonathan Casey <[email protected]> --------- Signed-off-by: Jonathan Casey <[email protected]>
- Loading branch information
1 parent
496d7d5
commit 57104cd
Showing
4 changed files
with
249 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,7 @@ | |
"check-coverage": true, | ||
"statements": 99, | ||
"branches": 97, | ||
"functions": 100, | ||
"functions": 99, | ||
"lines": 99 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2288,6 +2288,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
## Overview | ||
- 1 concepts | ||
- 2 enumerations | ||
- 1 maps | ||
- 2 scalars | ||
- 0 assets | ||
- 0 participants | ||
- 0 transactions | ||
|
@@ -2321,6 +2323,12 @@ class \`org.acme.hr.base.TShirtSizeType\` { | |
+ \`LARGE\` | ||
} | ||
|
||
class \`org.acme.hr.base.EmployeeTShirtSizes\` { | ||
<< map >> | ||
+ Key:\`org.acme.hr.base.SSN\` | ||
+ Value: \`org.acme.hr.base.TShirtSizeType\` | ||
} | ||
|
||
class \`org.acme.hr.base.Address\` { | ||
<< concept>> | ||
+ \`String\` \`street\` | ||
|
@@ -2338,6 +2346,8 @@ class \`org.acme.hr.base.Address\` { | |
## Overview | ||
- 1 concepts | ||
- 2 enumerations | ||
- 6 maps | ||
- 2 scalars | ||
- 2 assets | ||
- 4 participants | ||
- 1 transactions | ||
|
@@ -2359,6 +2369,42 @@ class \`org.acme.hr.base.Address\` { | |
## Diagram | ||
\`\`\`mermaid | ||
classDiagram | ||
class \`org.acme.hr.CompanyProperties\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`String\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeLoginTimes\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`org.acme.hr.base.Time\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeSocialSecurityNumbers\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`org.acme.hr.base.SSN\` | ||
} | ||
|
||
class \`org.acme.hr.NextOfKin\` { | ||
<< map >> | ||
+ Key:\`org.acme.hr.KinName\` | ||
+ Value: \`org.acme.hr.KinTelephone\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeProfiles\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeDirectory\` { | ||
<< map >> | ||
+ Key:\`org.acme.hr.base.SSN\` | ||
+ Value: \`org.acme.hr.Employee\` | ||
} | ||
|
||
class \`org.acme.hr.Company\` { | ||
<< concept>> | ||
+ \`String\` \`name\` | ||
|
@@ -2500,6 +2546,12 @@ class \`org.acme.hr.base.TShirtSizeType\` { | |
} | ||
|
||
\`org.acme.hr.base.TShirtSizeType\` --|> \`[email protected]\` | ||
class \`org.acme.hr.base.EmployeeTShirtSizes\` { | ||
<< map >> | ||
+ Key:\`org.acme.hr.base.SSN\` | ||
+ Value: \`org.acme.hr.base.TShirtSizeType\` | ||
} | ||
|
||
class \`org.acme.hr.base.Address\` { | ||
<< concept>> | ||
+ \`String\` \`street\` | ||
|
@@ -2510,6 +2562,42 @@ class \`org.acme.hr.base.Address\` { | |
} | ||
|
||
\`org.acme.hr.base.Address\` --|> \`[email protected]\` | ||
class \`org.acme.hr.CompanyProperties\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`String\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeLoginTimes\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`org.acme.hr.base.Time\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeSocialSecurityNumbers\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`org.acme.hr.base.SSN\` | ||
} | ||
|
||
class \`org.acme.hr.NextOfKin\` { | ||
<< map >> | ||
+ Key:\`org.acme.hr.KinName\` | ||
+ Value: \`org.acme.hr.KinTelephone\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeProfiles\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`org.acme.hr.EmployeeDirectory\` { | ||
<< map >> | ||
+ Key:\`org.acme.hr.base.SSN\` | ||
+ Value: \`org.acme.hr.Employee\` | ||
} | ||
|
||
class \`org.acme.hr.Company\` { | ||
<< concept>> | ||
+ \`String\` \`name\` | ||
|
@@ -5724,6 +5812,12 @@ class \`[email protected]\` { | |
+ \`LARGE\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< concept>> | ||
+ \`String\` \`street\` | ||
|
@@ -5734,6 +5828,42 @@ class \`[email protected]\` { | |
} | ||
|
||
\`[email protected]\` "1" *-- "1" \`[email protected]\` | ||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`String\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< concept>> | ||
+ \`String\` \`name\` | ||
|
@@ -8274,6 +8404,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
## Overview | ||
- 1 concepts | ||
- 2 enumerations | ||
- 1 maps | ||
- 2 scalars | ||
- 0 assets | ||
- 0 participants | ||
- 0 transactions | ||
|
@@ -8307,6 +8439,12 @@ class \`[email protected]\` { | |
+ \`LARGE\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< concept>> | ||
+ \`String\` \`street\` | ||
|
@@ -8324,6 +8462,8 @@ class \`[email protected]\` { | |
## Overview | ||
- 1 concepts | ||
- 2 enumerations | ||
- 6 maps | ||
- 2 scalars | ||
- 2 assets | ||
- 4 participants | ||
- 1 transactions | ||
|
@@ -8345,6 +8485,42 @@ class \`[email protected]\` { | |
## Diagram | ||
\`\`\`mermaid | ||
classDiagram | ||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`String\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< concept>> | ||
+ \`String\` \`name\` | ||
|
@@ -8486,6 +8662,12 @@ class \`[email protected]\` { | |
} | ||
|
||
\`[email protected]\` --|> \`[email protected]\` | ||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< concept>> | ||
+ \`String\` \`street\` | ||
|
@@ -8497,6 +8679,42 @@ class \`[email protected]\` { | |
|
||
\`[email protected]\` "1" *-- "1" \`[email protected]\` | ||
\`[email protected]\` --|> \`[email protected]\` | ||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`String\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`String\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< map >> | ||
+ Key:\`[email protected]\` | ||
+ Value: \`[email protected]\` | ||
} | ||
|
||
class \`[email protected]\` { | ||
<< concept>> | ||
+ \`String\` \`name\` | ||
|