From bde9e2b4675b150bf0ab73a1a45bad9a14238440 Mon Sep 17 00:00:00 2001 From: Ralf Handl Date: Tue, 19 Dec 2023 17:50:01 +0100 Subject: [PATCH] Fix: color of property target type (#273) --- examples/ExampleService.openapi3.json | 2 +- examples/People.openapi3.json | 2 +- examples/TripPin.openapi3.json | 2 +- examples/csdl-16.1.openapi3.json | 2 +- examples/example.openapi3.json | 2 +- examples/key-aliases.openapi3.json | 2 +- examples/odata-rw-v2.openapi3.json | 2 +- examples/odata-rw-v3.openapi3.json | 2 +- lib/diagram.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/ExampleService.openapi3.json b/examples/ExampleService.openapi3.json index 563127e5..5d3a4a5d 100644 --- a/examples/ExampleService.openapi3.json +++ b/examples/ExampleService.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace OData.Demo", - "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Customer{bg:lightslategray}],[Customer]++-[Address{bg:lightslategray}],[Customer]++-[PhoneNumber{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]-*[Product{bg:lightslategray}],[Supplier]++-*[Address{bg:lightslategray}],[Product{bg:lightslategray}],[Product]*-[Category{bg:lightslategray}],[Product]-*[OrderItem{bg:lightslategray}],[Order{bg:lightslategray}],[Order]-*[OrderItem{bg:lightslategray}],[Order]*-[Customer{bg:lightslategray}],[Order]++-[Address{bg:lightslategray}],[Customer{bg:lightslategray}]^[VipCustomer{bg:lightslategray}],[Category{bg:lightslategray}],[OrderItem{bg:lightslategray}],[OrderItem]->[Currency{bg:lightslategray}],[Sales{bg:lightslategray}],[Sales]*-[Currency{bg:lightslategray}],[Sales]*-[Customer{bg:lightslategray}],[Sales]*-[Product{bg:lightslategray}],[Employee{bg:lightslategray}],[LeaveRequest{bg:lightslategray}],[LeaveRequest]*-[Employee{bg:lightslategray}],[Address],[Address]->[Country],[Address]->[City],[Address]^[AddressWithLocation],[Country{bg:lightslategray}],[Supplier{bg:lightslategray}]^[PreferredSupplier{bg:lightslategray}],[PreferredSupplier]-0..1>[Employee{bg:lightslategray}],[Employee{bg:lightslategray}]^[Manager{bg:lightslategray}],[Manager]0..1-*[Employee{bg:lightslategray}],[Manager]-*[LeaveRequest{bg:lightslategray}],[Time{bg:lightslategray}],[Time]-*[Sales{bg:lightslategray}],[SalesOrganization{bg:lightslategray}],[SalesOrganization]-*[Sales{bg:lightslategray}],[SalesOrganization]-0..1>[SalesOrganization{bg:lightslategray}],[Currency{bg:lightslategray}],[City{bg:lightslategray}],[PhoneNumber],[PhoneNumber]^[CellPhoneNumber],[Cities%20{bg:lawngreen}]++-*>[City],[Currencies%20{bg:lawngreen}]++-*>[Currency],[SalesOrganizations%20{bg:lawngreen}]++-*>[SalesOrganization],[Time%20{bg:lawngreen}]++-*>[Time],[Countries%20{bg:lawngreen}]++-*>[Country],[LeaveRequests%20{bg:lawngreen}]++-*>[LeaveRequest],[Employees%20{bg:lawngreen}]++-*>[Employee],[Sales%20{bg:lawngreen}]++-*>[Sales],[OrderItems%20{bg:lawngreen}]++-*>[OrderItem],[Categories%20{bg:lawngreen}]++-*>[Category],[Orders%20{bg:lawngreen}]++-*>[Order],[Products%20{bg:lawngreen}]++-*>[Product],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Customers%20{bg:lawngreen}]++-*>[Customer])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Customer{bg:lightslategray}],[Customer]++-[Address],[Customer]++-[PhoneNumber],[Supplier{bg:lightslategray}],[Supplier]-*[Product{bg:lightslategray}],[Supplier]++-*[Address],[Product{bg:lightslategray}],[Product]*-[Category{bg:lightslategray}],[Product]-*[OrderItem{bg:lightslategray}],[Order{bg:lightslategray}],[Order]-*[OrderItem{bg:lightslategray}],[Order]*-[Customer{bg:lightslategray}],[Order]++-[Address],[Customer{bg:lightslategray}]^[VipCustomer{bg:lightslategray}],[Category{bg:lightslategray}],[OrderItem{bg:lightslategray}],[OrderItem]->[Currency{bg:lightslategray}],[Sales{bg:lightslategray}],[Sales]*-[Currency{bg:lightslategray}],[Sales]*-[Customer{bg:lightslategray}],[Sales]*-[Product{bg:lightslategray}],[Employee{bg:lightslategray}],[LeaveRequest{bg:lightslategray}],[LeaveRequest]*-[Employee{bg:lightslategray}],[Address],[Address]->[Country{bg:lightslategray}],[Address]->[City{bg:lightslategray}],[Address]^[AddressWithLocation],[Country{bg:lightslategray}],[Supplier{bg:lightslategray}]^[PreferredSupplier{bg:lightslategray}],[PreferredSupplier]-0..1>[Employee{bg:lightslategray}],[Employee{bg:lightslategray}]^[Manager{bg:lightslategray}],[Manager]0..1-*[Employee{bg:lightslategray}],[Manager]-*[LeaveRequest{bg:lightslategray}],[Time{bg:lightslategray}],[Time]-*[Sales{bg:lightslategray}],[SalesOrganization{bg:lightslategray}],[SalesOrganization]-*[Sales{bg:lightslategray}],[SalesOrganization]-0..1>[SalesOrganization{bg:lightslategray}],[Currency{bg:lightslategray}],[City{bg:lightslategray}],[PhoneNumber],[PhoneNumber]^[CellPhoneNumber],[Cities%20{bg:lawngreen}]++-*>[City],[Currencies%20{bg:lawngreen}]++-*>[Currency],[SalesOrganizations%20{bg:lawngreen}]++-*>[SalesOrganization],[Time%20{bg:lawngreen}]++-*>[Time],[Countries%20{bg:lawngreen}]++-*>[Country],[LeaveRequests%20{bg:lawngreen}]++-*>[LeaveRequest],[Employees%20{bg:lawngreen}]++-*>[Employee],[Sales%20{bg:lawngreen}]++-*>[Sales],[OrderItems%20{bg:lawngreen}]++-*>[OrderItem],[Categories%20{bg:lawngreen}]++-*>[Category],[Orders%20{bg:lawngreen}]++-*>[Order],[Products%20{bg:lawngreen}]++-*>[Product],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Customers%20{bg:lawngreen}]++-*>[Customer])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/People.openapi3.json b/examples/People.openapi3.json index 186d2936..8e46e77a 100644 --- a/examples/People.openapi3.json +++ b/examples/People.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace PeopleService", - "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Supplier{bg:lightslategray}],[Supplier]++-0..1[Address{bg:lightslategray}],[Supplier]-*>[ProductService.Product{bg:whitesmoke}],[Address],[Person{bg:lightslategray}],[Person{bg:lightslategray}]^[Customer{bg:lightslategray}],[Person{bg:lightslategray}]^[Employee{bg:lightslategray}],[PersonDetail{bg:lightslategray}],[PersonDetail]++-0..1[Address{bg:lightslategray}],[PersonDetail]0..1-0..1[Person{bg:lightslategray}],[PersonDetails%20{bg:lawngreen}]++-*>[PersonDetail],[People%20{bg:lawngreen}]++-*>[Person],[Suppliers%20{bg:lawngreen}]++-*>[Supplier])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Supplier{bg:lightslategray}],[Supplier]++-0..1[Address],[Supplier]-*>[ProductService.Product{bg:whitesmoke}],[Address],[Person{bg:lightslategray}],[Person{bg:lightslategray}]^[Customer{bg:lightslategray}],[Person{bg:lightslategray}]^[Employee{bg:lightslategray}],[PersonDetail{bg:lightslategray}],[PersonDetail]++-0..1[Address],[PersonDetail]0..1-0..1[Person{bg:lightslategray}],[PersonDetails%20{bg:lawngreen}]++-*>[PersonDetail],[People%20{bg:lawngreen}]++-*>[Person],[Suppliers%20{bg:lawngreen}]++-*>[Supplier])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/TripPin.openapi3.json b/examples/TripPin.openapi3.json index 3224faf5..65ae3ad7 100644 --- a/examples/TripPin.openapi3.json +++ b/examples/TripPin.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "TripPin service is a sample service for OData V4.", - "description": "This service is located at [https://services.odata.org/V4/(S(cnbm44wtbc1v5bgrlek5lpcc))/TripPinServiceRW/](https://services.odata.org/V4/%28S%28cnbm44wtbc1v5bgrlek5lpcc%29%29/TripPinServiceRW/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[City],[Location],[Location]++-[City],[Location]^[EventLocation],[Location]^[AirportLocation],[Photo{bg:lightslategray}],[Person{bg:lightslategray}],[Person]++-*[Location{bg:lightslategray}],[Person]++-0..1[PersonGender{bg:lightslategray}],[Person]-*>[Person{bg:lightslategray}],[Person]++-*>[Trip{bg:lightslategray}],[Person]-0..1>[Photo{bg:lightslategray}],[Airline{bg:lightslategray}],[Airport{bg:lightslategray}],[Airport]++-[AirportLocation{bg:lightslategray}],[PlanItem{bg:lightslategray}],[PlanItem{bg:lightslategray}]^[PublicTransportation{bg:lightslategray}],[PublicTransportation{bg:lightslategray}]^[Flight{bg:lightslategray}],[Flight]->[Airport{bg:lightslategray}],[Flight]->[Airport{bg:lightslategray}],[Flight]->[Airline{bg:lightslategray}],[PlanItem{bg:lightslategray}]^[Event{bg:lightslategray}],[Event]++-[EventLocation{bg:lightslategray}],[Trip{bg:lightslategray}],[Trip]-*>[Photo{bg:lightslategray}],[Trip]++-*>[PlanItem{bg:lightslategray}],[ResetDataSource{bg:lawngreen}],[GetNearestAirport{bg:lawngreen}]->[Airport],[Me%20{bg:lawngreen}]++->[Person],[Airports%20{bg:lawngreen}]++-*>[Airport],[Airlines%20{bg:lawngreen}]++-*>[Airline],[People%20{bg:lawngreen}]++-*>[Person],[Photos%20{bg:lawngreen}]++-*>[Photo])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://services.odata.org/V4/(S(cnbm44wtbc1v5bgrlek5lpcc))/TripPinServiceRW/](https://services.odata.org/V4/%28S%28cnbm44wtbc1v5bgrlek5lpcc%29%29/TripPinServiceRW/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[City],[Location],[Location]++-[City],[Location]^[EventLocation],[Location]^[AirportLocation],[Photo{bg:lightslategray}],[Person{bg:lightslategray}],[Person]++-*[Location],[Person]++-0..1[PersonGender],[Person]-*>[Person{bg:lightslategray}],[Person]++-*>[Trip{bg:lightslategray}],[Person]-0..1>[Photo{bg:lightslategray}],[Airline{bg:lightslategray}],[Airport{bg:lightslategray}],[Airport]++-[AirportLocation],[PlanItem{bg:lightslategray}],[PlanItem{bg:lightslategray}]^[PublicTransportation{bg:lightslategray}],[PublicTransportation{bg:lightslategray}]^[Flight{bg:lightslategray}],[Flight]->[Airport{bg:lightslategray}],[Flight]->[Airport{bg:lightslategray}],[Flight]->[Airline{bg:lightslategray}],[PlanItem{bg:lightslategray}]^[Event{bg:lightslategray}],[Event]++-[EventLocation],[Trip{bg:lightslategray}],[Trip]-*>[Photo{bg:lightslategray}],[Trip]++-*>[PlanItem{bg:lightslategray}],[ResetDataSource{bg:lawngreen}],[GetNearestAirport{bg:lawngreen}]->[Airport],[Me%20{bg:lawngreen}]++->[Person],[Airports%20{bg:lawngreen}]++-*>[Airport],[Airlines%20{bg:lawngreen}]++-*>[Airline],[People%20{bg:lawngreen}]++-*>[Person],[Photos%20{bg:lawngreen}]++-*>[Photo])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/csdl-16.1.openapi3.json b/examples/csdl-16.1.openapi3.json index 1bcf5f09..50f99723 100644 --- a/examples/csdl-16.1.openapi3.json +++ b/examples/csdl-16.1.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace ODataDemo", - "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-[Category{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-[Address{bg:lightslategray}],[Supplier]0..1-*[Product{bg:lightslategray}],[Country{bg:lightslategray}],[Address],[Address]-0..1>[Country],[ProductsByRating{bg:lawngreen}]-*>[Product],[Countries%20{bg:lawngreen}]++-*>[Country],[MainSupplier%20{bg:lawngreen}]++->[Supplier],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-[Category{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-[Address],[Supplier]0..1-*[Product{bg:lightslategray}],[Country{bg:lightslategray}],[Address],[Address]-0..1>[Country{bg:lightslategray}],[ProductsByRating{bg:lawngreen}]-*>[Product],[Countries%20{bg:lawngreen}]++-*>[Country],[MainSupplier%20{bg:lawngreen}]++->[Supplier],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/example.openapi3.json b/examples/example.openapi3.json index 4451e2d7..73da255e 100644 --- a/examples/example.openapi3.json +++ b/examples/example.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace ODataDemo", - "description": "This service is located at [https://services.odata.org/V4/OData/(S(nsga2k1tyctb0cn0ofcgcn4o))/OData.svc/](https://services.odata.org/V4/OData/%28S%28nsga2k1tyctb0cn0ofcgcn4o%29%29/OData.svc/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-*[Category{bg:lightslategray}],[Product{bg:lightslategray}]^[FeaturedProduct{bg:lightslategray}],[FeaturedProduct]0..1-0..1[Advertisement{bg:lightslategray}],[ProductDetail{bg:lightslategray}],[ProductDetail]0..1-0..1[Product{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-0..1[Address{bg:lightslategray}],[Supplier]0..1-*[Product{bg:lightslategray}],[Address],[Person{bg:lightslategray}],[Person{bg:lightslategray}]^[Customer{bg:lightslategray}],[Person{bg:lightslategray}]^[Employee{bg:lightslategray}],[PersonDetail{bg:lightslategray}],[PersonDetail]++-0..1[Address{bg:lightslategray}],[PersonDetail]0..1-0..1[Person{bg:lightslategray}],[Advertisement{bg:lightslategray}],[IncreaseSalaries{bg:lawngreen}],[Advertisements%20{bg:lawngreen}]++-*>[Advertisement],[PersonDetails%20{bg:lawngreen}]++-*>[PersonDetail],[Persons%20{bg:lawngreen}]++-*>[Person],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[ProductDetails%20{bg:lawngreen}]++-*>[ProductDetail],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://services.odata.org/V4/OData/(S(nsga2k1tyctb0cn0ofcgcn4o))/OData.svc/](https://services.odata.org/V4/OData/%28S%28nsga2k1tyctb0cn0ofcgcn4o%29%29/OData.svc/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-*[Category{bg:lightslategray}],[Product{bg:lightslategray}]^[FeaturedProduct{bg:lightslategray}],[FeaturedProduct]0..1-0..1[Advertisement{bg:lightslategray}],[ProductDetail{bg:lightslategray}],[ProductDetail]0..1-0..1[Product{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-0..1[Address],[Supplier]0..1-*[Product{bg:lightslategray}],[Address],[Person{bg:lightslategray}],[Person{bg:lightslategray}]^[Customer{bg:lightslategray}],[Person{bg:lightslategray}]^[Employee{bg:lightslategray}],[PersonDetail{bg:lightslategray}],[PersonDetail]++-0..1[Address],[PersonDetail]0..1-0..1[Person{bg:lightslategray}],[Advertisement{bg:lightslategray}],[IncreaseSalaries{bg:lawngreen}],[Advertisements%20{bg:lawngreen}]++-*>[Advertisement],[PersonDetails%20{bg:lawngreen}]++-*>[PersonDetail],[Persons%20{bg:lawngreen}]++-*>[Person],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[ProductDetails%20{bg:lawngreen}]++-*>[ProductDetail],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/key-aliases.openapi3.json b/examples/key-aliases.openapi3.json index 94875118..9eac9b4e 100644 --- a/examples/key-aliases.openapi3.json +++ b/examples/key-aliases.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace key.aliases", - "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Category{bg:lightslategray}],[Category]++-[EntityInfo{bg:lightslategray}],[EntityInfo],[Categories%20{bg:lawngreen}]++-*>[Category])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Category{bg:lightslategray}],[Category]++-[EntityInfo],[EntityInfo],[Categories%20{bg:lawngreen}]++-*>[Category])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/odata-rw-v2.openapi3.json b/examples/odata-rw-v2.openapi3.json index e8d3385e..814f7da4 100644 --- a/examples/odata-rw-v2.openapi3.json +++ b/examples/odata-rw-v2.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace ODataDemo", - "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-0..1[Category{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-[Address{bg:lightslategray}],[Supplier]0..1-*[Product{bg:lightslategray}],[Address],[GetProductsByRating{bg:lawngreen}]-*>[Product],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://localhost/service-root/](https://localhost/service-root/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-0..1[Category{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-[Address],[Supplier]0..1-*[Product{bg:lightslategray}],[Address],[GetProductsByRating{bg:lawngreen}]-*>[Product],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/examples/odata-rw-v3.openapi3.json b/examples/odata-rw-v3.openapi3.json index ff64f5d4..dedb1e96 100644 --- a/examples/odata-rw-v3.openapi3.json +++ b/examples/odata-rw-v3.openapi3.json @@ -2,7 +2,7 @@ "openapi": "3.0.2", "info": { "title": "Service for namespace ODataDemo", - "description": "This service is located at [https://services.odata.org/V3/(S(1urrjxgkuh4r30yqim0hqrtj))/OData/OData.svc/](https://services.odata.org/V3/%28S%281urrjxgkuh4r30yqim0hqrtj%29%29/OData/OData.svc/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-*[Category{bg:lightslategray}],[Product{bg:lightslategray}]^[FeaturedProduct{bg:lightslategray}],[FeaturedProduct]0..1-0..1[Advertisement{bg:lightslategray}],[ProductDetail{bg:lightslategray}],[ProductDetail]0..1-0..1[Product{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-0..1[Address{bg:lightslategray}],[Supplier]0..1-*[Product{bg:lightslategray}],[Address],[Person{bg:lightslategray}],[Person{bg:lightslategray}]^[Customer{bg:lightslategray}],[Person{bg:lightslategray}]^[Employee{bg:lightslategray}],[PersonDetail{bg:lightslategray}],[PersonDetail]++-0..1[Address{bg:lightslategray}],[PersonDetail]0..1-0..1[Person{bg:lightslategray}],[Advertisement{bg:lightslategray}],[IncreaseSalaries{bg:lawngreen}],[GetProductsByRating{bg:lawngreen}]-*>[Product],[Advertisements%20{bg:lawngreen}]++-*>[Advertisement],[PersonDetails%20{bg:lawngreen}]++-*>[PersonDetail],[Persons%20{bg:lawngreen}]++-*>[Person],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[ProductDetails%20{bg:lawngreen}]++-*>[ProductDetail],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", + "description": "This service is located at [https://services.odata.org/V3/(S(1urrjxgkuh4r30yqim0hqrtj))/OData/OData.svc/](https://services.odata.org/V3/%28S%281urrjxgkuh4r30yqim0hqrtj%29%29/OData/OData.svc/)\n\n## Entity Data Model\n![ER Diagram](https://yuml.me/diagram/class/[Product{bg:lightslategray}],[Product]*-*[Category{bg:lightslategray}],[Product{bg:lightslategray}]^[FeaturedProduct{bg:lightslategray}],[FeaturedProduct]0..1-0..1[Advertisement{bg:lightslategray}],[ProductDetail{bg:lightslategray}],[ProductDetail]0..1-0..1[Product{bg:lightslategray}],[Category{bg:lightslategray}],[Supplier{bg:lightslategray}],[Supplier]++-0..1[Address],[Supplier]0..1-*[Product{bg:lightslategray}],[Address],[Person{bg:lightslategray}],[Person{bg:lightslategray}]^[Customer{bg:lightslategray}],[Person{bg:lightslategray}]^[Employee{bg:lightslategray}],[PersonDetail{bg:lightslategray}],[PersonDetail]++-0..1[Address],[PersonDetail]0..1-0..1[Person{bg:lightslategray}],[Advertisement{bg:lightslategray}],[IncreaseSalaries{bg:lawngreen}],[GetProductsByRating{bg:lawngreen}]-*>[Product],[Advertisements%20{bg:lawngreen}]++-*>[Advertisement],[PersonDetails%20{bg:lawngreen}]++-*>[PersonDetail],[Persons%20{bg:lawngreen}]++-*>[Person],[Suppliers%20{bg:lawngreen}]++-*>[Supplier],[Categories%20{bg:lawngreen}]++-*>[Category],[ProductDetails%20{bg:lawngreen}]++-*>[ProductDetail],[Products%20{bg:lawngreen}]++-*>[Product])\n\n### Legend\n![Legend](https://yuml.me/diagram/plain;dir:TB;scale:60/class/[External.Type{bg:whitesmoke}],[ComplexType],[EntityType{bg:lightslategray}],[EntitySet/Singleton/Operation{bg:lawngreen}])", "version": "" }, "servers": [ diff --git a/lib/diagram.js b/lib/diagram.js index 37ef56fc..62ef9ab0 100644 --- a/lib/diagram.js +++ b/lib/diagram.js @@ -76,7 +76,7 @@ function resourceDiagram(model) { "[" + (target ? targetNP.name + - (type.$Kind == "EntityType" + (target.$Kind == "EntityType" ? color.entityType : color.complexType) : property.$Type + color.external) +