Skip to content

Commit

Permalink
Fix: color in diagrams (#274)
Browse files Browse the repository at this point in the history
* Fix: don't repeat color for relation to action/function parameter types

* 0.24.1

* Bump dependencies

* Changelog
  • Loading branch information
ralfhandl authored Dec 20, 2023
1 parent bde9e2b commit ed7df03
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 36 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.24.1] - 2023-12-20

### Fixed

- Complex types were sometimes wrongly colored in diagrams

## [0.24.0] - 2023-11-07

### Added
Expand Down
1 change: 0 additions & 1 deletion lib/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ function resourceDiagram(model) {
comma +
"[" +
name +
color.resource +
"]in-" +
cardinality(param.$Type) +
">[" +
Expand Down
64 changes: 32 additions & 32 deletions 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
@@ -1,6 +1,6 @@
{
"name": "odata-openapi",
"version": "0.24.0",
"version": "0.24.1",
"description": "Convert OData CSDL XML or CSDL JSON to OpenAPI",
"homepage": "https://github.com/oasis-tcs/odata-openapi/blob/master/lib/README.md",
"bugs": "https://github.com/oasis-tcs/odata-openapi/issues",
Expand Down
2 changes: 1 addition & 1 deletion test/annotations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ describe("Annotations", function () {
"This service is located at [https://localhost/service-root/](https://localhost/service-root/)",
"",
"## Entity Data Model",
"![ER Diagram](https://yuml.me/diagram/class/[root{bg:lightslategray}],[act{bg:lawngreen}]->[root],[act{bg:lawngreen}]in->[root],[roots%20{bg:lawngreen}]++-*>[root])",
"![ER Diagram](https://yuml.me/diagram/class/[root{bg:lightslategray}],[act{bg:lawngreen}]->[root],[act]in->[root],[roots%20{bg:lawngreen}]++-*>[root])",
"",
"### Legend",
"![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])",
Expand Down
2 changes: 1 addition & 1 deletion test/csdl2openapi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ describe("Edge cases", function () {
"This service is located at [https://localhost/service-root/](https://localhost/service-root/)",
"",
"## Entity Data Model",
"![ER Diagram](https://yuml.me/diagram/class/[Complex],[funO{bg:lawngreen}],[funO{bg:lawngreen}]in->[Complex],[funC{bg:lawngreen}],[funC{bg:lawngreen}]in->[Complex])",
"![ER Diagram](https://yuml.me/diagram/class/[Complex],[funO{bg:lawngreen}],[funO]in->[Complex],[funC{bg:lawngreen}],[funC]in->[Complex])",
"",
"### Legend",
"![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])",
Expand Down

0 comments on commit ed7df03

Please sign in to comment.