Skip to content

Commit

Permalink
fix: add RelationshipMetadataDTO type and add creationContent propert…
Browse files Browse the repository at this point in the history
…y to RelationshipDTO
  • Loading branch information
tnotheis committed Apr 3, 2024
1 parent 5a0c5a0 commit 4f22e88
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ paths:
content:
application/json:
schema:
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationship"
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationshipMetadata"
"400":
description: >
Bad Request<br><br>
Expand Down Expand Up @@ -124,7 +124,7 @@ paths:
content:
application/json:
schema:
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationship"
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationshipMetadata"
"400":
description: >
Bad Request<br><br>
Expand Down Expand Up @@ -158,7 +158,7 @@ paths:
content:
application/json:
schema:
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationship"
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationshipMetadata"
"400":
description: >
Bad Request<br><br>
Expand Down Expand Up @@ -192,7 +192,7 @@ paths:
content:
application/json:
schema:
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationship"
"$ref": "#/components/schemas/HttpResponseEnvelopeRelationshipMetadata"
"400":
description: >
Bad Request<br><br>
Expand Down Expand Up @@ -225,6 +225,12 @@ components:
result:
$ref: "#/components/schemas/Relationship"

HttpResponseEnvelopeRelationshipMetadata:
type: object
properties:
result:
$ref: "#/components/schemas/RelationshipMetadata"

Relationship:
type: object
properties:
Expand All @@ -251,6 +257,35 @@ components:
$ref: "#/components/schemas/RelationshipAuditLogEntry"
additionalProperties: false

RelationshipMetadata:
type: object
properties:
id:
type: string
example: "REL_________________"
relationshipTemplateId:
type: string
example: "RLT_________________"
from:
type: string
example: "id1_________________________________"
to:
type: string
example: "id1_________________________________"
createdAt:
type: string
format: date-time
status:
$ref: "#/components/schemas/RelationshipStatus"
creationContent:
type: string
format: byte
auditLog:
type: array
items:
$ref: "#/components/schemas/RelationshipAuditLogEntry"
additionalProperties: false

RelationshipAuditLogEntry:
type: object
properties:
Expand Down

0 comments on commit 4f22e88

Please sign in to comment.