Skip to content

Commit 5704ed3

Browse files
author
Bingjie Liu
committed
Update example value for condition and refactor to show schema for licence endpoint
1 parent 0752edf commit 5704ed3

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
@@ -493,10 +493,7 @@ paths:
493493
content:
494494
application/json:
495495
schema:
496-
type: object
497-
properties:
498-
data:
499-
$ref: "#/components/schemas/PersonLicences"
496+
$ref: "#/components/schemas/PersonLicencesData"
500497
"404":
501498
description: Failed to find licenses for a person with the provided HMPPS ID.
502499
content:
@@ -1036,7 +1033,7 @@ components:
10361033
description: The category to which the condition belongs
10371034
condition:
10381035
type: string
1039-
example: Residence at a specific place
1036+
example: You must not enter the location X
10401037
nullable: true
10411038
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
10421039
Name:
@@ -1196,6 +1193,11 @@ components:
11961193
type: string
11971194
example: 2008/0545166T
11981195
description: Currently a hmppsId is a PNC identifier however this will change in the near future to be a CRN identifier
1196+
PersonLicencesData:
1197+
type: object
1198+
properties:
1199+
data:
1200+
$ref: "#/components/schemas/PersonLicences"
11991201
PersonLicences:
12001202
type: object
12011203
properties:

0 commit comments

Comments
 (0)