Skip to content

Commit e7f4406

Browse files
authored
moving relationship_type from Relationship to RelationshipList (#74)
* moving relationship_type from Relationship to RelationshipList * moving relationship_type from Relationship to RelationshipList * moving relationship_type from Relationship to RelationshipList
1 parent 5194e92 commit e7f4406

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

specification/entities.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,18 @@ components:
7878
data_source_oddrn:
7979
type: string
8080
example: //aws/glue/123456789010/
81+
relationship_type:
82+
type: string
83+
enum:
84+
- ERD
85+
- GRAPH
8186
items:
8287
type: array
8388
items:
8489
$ref: '#/components/schemas/Relationship'
8590
required:
8691
- data_source_oddrn
92+
- relationship_type
8793

8894
DatasetStatisticsList:
8995
type: object
@@ -123,11 +129,6 @@ components:
123129
- $ref: '#/components/schemas/BaseObject'
124130
- type: object
125131
properties:
126-
relationship_type:
127-
type: string
128-
enum:
129-
- ERD
130-
- GRAPH
131132
source_dataset_oddrn:
132133
type: string
133134
target_dataset_oddrn:
@@ -136,8 +137,9 @@ components:
136137
oneOf:
137138
- $ref: '#/components/schemas/ERDRelationship'
138139
- $ref: '#/components/schemas/GraphRelationship'
140+
discriminator:
141+
propertyName: relationship_entity_name
139142
required:
140-
- relationship_type
141143
- source_dataset_oddrn
142144
- target_dataset_oddrn
143145
- details
@@ -157,18 +159,25 @@ components:
157159
type: boolean
158160
cardinality:
159161
$ref: '#/components/schemas/CardinalityType'
162+
relationship_entity_name:
163+
type: string
160164
required:
161165
- source_dataset_field_oddrns_list
162166
- target_dataset_field_oddrns_list
167+
- relationship_entity_name
163168

164169
GraphRelationship:
165170
type: object
166171
properties:
167172
is_directed:
168173
type: boolean
174+
relationship_entity_name:
175+
type: string
169176
attributes:
170177
type: object
171178
additionalProperties: true
179+
required:
180+
- relationship_entity_name
172181

173182
CardinalityType:
174183
type: string

0 commit comments

Comments
 (0)