Skip to content

Commit 645fc2d

Browse files
Changing open api
1 parent 81360f7 commit 645fc2d

File tree

1 file changed

+3
-45
lines changed

1 file changed

+3
-45
lines changed

openapi.yml

+3-45
Original file line numberDiff line numberDiff line change
@@ -1722,10 +1722,8 @@ components:
17221722
data:
17231723
type: object
17241724
properties:
1725-
prisonerOffenderSearch:
1726-
$ref: "#/components/schemas/PrisonerOffenderSearch"
1727-
probationOffenderSearch:
1728-
$ref: "#/components/schemas/ProbationOffenderSearch"
1725+
offenderSearch:
1726+
$ref: "#/components/schemas/OffenderSearch"
17291727
PersonResponsibleOfficerName:
17301728
type: object
17311729
properties:
@@ -1865,47 +1863,7 @@ components:
18651863
nullable: true
18661864
prison:
18671865
$ref: "#/components/schemas/Prison"
1868-
PrisonerOffenderSearch:
1869-
type: object
1870-
properties:
1871-
firstName:
1872-
type: string
1873-
description: First name
1874-
lastName:
1875-
type: string
1876-
description: Last name
1877-
middleName:
1878-
type: string
1879-
nullable: true
1880-
description: Middle name
1881-
dateOfBirth:
1882-
type: string
1883-
format: date
1884-
example: 1975-04-02
1885-
description: Date of birth
1886-
gender:
1887-
type: string
1888-
description: Gender
1889-
ethnicity:
1890-
type: string
1891-
description: Ethnicity
1892-
aliases:
1893-
type: array
1894-
items:
1895-
$ref: "#/components/schemas/Alias"
1896-
description: List of aliases
1897-
identifiers:
1898-
$ref: "#/components/schemas/Identifiers"
1899-
pncId:
1900-
type: string
1901-
description: An identifier from the Police National Computer (PNC)
1902-
hmppsId:
1903-
type: string
1904-
nullable: true
1905-
description: Currently a hmppsId is a CRN identifier however this will change in the future to be a new unique Hmpps identifier
1906-
contactDetails:
1907-
$ref: "#/components/schemas/ContactDetails"
1908-
ProbationOffenderSearch:
1866+
OffenderSearch:
19091867
type: object
19101868
properties:
19111869
firstName:

0 commit comments

Comments
 (0)