Skip to content

Commit 8518ef6

Browse files
author
Bingjie Liu
authored
Merge pull request #364 from ministryofjustice/CVL-golden-record
Update example value for condition and refactor to show schema for li…
2 parents 26fa42d + 5704ed3 commit 8518ef6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

openapi.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,7 @@ paths:
505505
content:
506506
application/json:
507507
schema:
508-
type: object
509-
properties:
510-
data:
511-
$ref: "#/components/schemas/PersonLicences"
508+
$ref: "#/components/schemas/PersonLicencesData"
512509
"404":
513510
description: Failed to find licenses for a person with the provided HMPPS ID.
514511
content:
@@ -1048,7 +1045,7 @@ components:
10481045
description: The category to which the condition belongs
10491046
condition:
10501047
type: string
1051-
example: Residence at a specific place
1048+
example: You must not enter the location X
10521049
nullable: true
10531050
description: The condition of a licence, this can be a standard condition, a combination of inputted text and template text including any user input or the input for the bespoke condition
10541051
Name:
@@ -1208,6 +1205,11 @@ components:
12081205
type: string
12091206
example: 2008/0545166T
12101207
description: Currently a hmppsId is a PNC identifier however this will change in the near future to be a CRN identifier
1208+
PersonLicencesData:
1209+
type: object
1210+
properties:
1211+
data:
1212+
$ref: "#/components/schemas/PersonLicences"
12111213
PersonLicences:
12121214
type: object
12131215
properties:

0 commit comments

Comments
 (0)