Skip to content

Commit 91b45b5

Browse files
Hearings are at defendant level
1 parent d943064 commit 91b45b5

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/main/resources/openapi/dcs-caseadmin.openapi.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ components:
6464
allOf:
6565
- $ref: '#/components/schemas/uuid'
6666
- description: "Unique identifier to track the ID of the defendant on the external system"
67+
hearings:
68+
type: array
69+
items:
70+
type: object
71+
properties:
72+
hearingDate:
73+
allOf:
74+
- $ref: '#/components/schemas/datePattern'
75+
- description: "Future hearing date for the defendant"
76+
courtHouse:
77+
type: string
78+
description: "Future hearing venue for the defendant"
79+
required:
80+
- courtHouse
6781
bailStatus:
6882
type: string
6983
description: "Bail status of the defendant"
@@ -199,13 +213,6 @@ paths:
199213
- "CPS"
200214
- "PROBATION"
201215
- "OTHER"
202-
courtHouse:
203-
type: string
204-
description: "Hearing venue"
205-
hearingDate:
206-
allOf:
207-
- $ref: '#/components/schemas/datePattern'
208-
- description: "Hearing date"
209216
defendants:
210217
type: array
211218
items:
@@ -214,7 +221,6 @@ paths:
214221
- transactionRef
215222
- caseId
216223
- prosecutedBy
217-
- courtHouse
218224
- defendants
219225
example:
220226
transactionRef: 'd9fe4c51-1783-4fe4-a2b4-7c0e25905483'

0 commit comments

Comments
 (0)