Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified image/model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions model.puml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class TroubleTicket <<Pivot>> {
@type : String
}

class InteropTroubleTicket <<Pivot>> {
}
TroubleTicket <|-- InteropTroubleTicket

class TroubleTicketStatusType <<Enumeration>> {
acknowledged
rejected
Expand Down Expand Up @@ -97,6 +101,16 @@ class RelatedEntity <<Ref>> {
@type : String
}

class RelatedAssetGroup <<Ref>> {
JSONPath : String
role: String
entityType : String
@baseType : String
@referredType : String
@schemaLocation : Uri
@type : String
}

class RelatedParty <<Ref>> {
href : String
id : String
Expand All @@ -122,6 +136,8 @@ TroubleTicket *--> "0..*" TroubleTicketRelationship : troubleTicketRelationship

TroubleTicket *--> "0..*" RelatedEntity : relatedEntity

InteropTroubleTicket *--> "0..*" RelatedAssetGroup : relatedAssetGroup

legend
|= Color |= Description |
|<#Thistle>| Enumération de constantes|
Expand Down
64 changes: 64 additions & 0 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,46 @@ components:
description: The actual type of the target instance when needed for
disambiguation.
maxLength: 255

jsonPathAssetGroup:
type: object
description: JsonPath expression used to reference an asset group
required:
- jsonPath
- "@referredType"
properties:
jsonPath:
type: string
description: jsonPath expression used to point an asset group (i.e relatedEntities)
maxLength: 2048
role:
type: string
description: The role of an entity.
maxLength: 50
entityType:
type: string
description: The (sub)resource to used (filtering by json path query).
maxLength: 255
"@baseType":
type: string
description: When sub-classing, this defines the super-class
maxLength: 255
"@referredType":
type: string
description: The actual type of the target instance when needed for
disambiguation.
maxLength: 255
"@schemaLocation":
type: string
format: uri
description: A URI to a JSON-Schema file that defines additional attributes and
relationships
maxLength: 2048
"@type":
type: string
description: When sub-classing, this defines the sub-class entity name
maxLength: 255

RelatedParty:
type: object
description: Related Entity reference. A related party defines party or party role linked to a specific entity.
Expand Down Expand Up @@ -855,6 +895,18 @@ components:
type: string
description: When sub-classing, this defines the sub-class entity name
maxLength: 255
discriminator:
propertyName: "@type"

InteropTroubleTicket:
description: Specific Interop Implementation with AssetGroup support
allOf:
- $ref: "#/components/schemas/TroubleTicket"
- type: object
properties:
relatedAssetGroup:
$ref: "#/components/schemas/jsonPathAssetGroup"

TroubleTicket_Create:
type: object
description: >-
Expand Down Expand Up @@ -933,6 +985,18 @@ components:
type: string
description: When sub-classing, this defines the sub-class entity name
maxLength: 255
discriminator:
propertyName: "@type"

InteropTroubleTicket_Create:
description: Specific Interop Implementation with AssetGroup support
allOf:
- $ref: "#/components/schemas/TroubleTicket_Create"
- type: object
properties:
relatedAssetGroup:
$ref: "#/components/schemas/jsonPathAssetGroup"

TroubleTicket_Update:
type: object
description: >-
Expand Down