Skip to content

Commit

Permalink
Merge pull request #2780 from ministryofjustice/chore/temporarily-re-…
Browse files Browse the repository at this point in the history
…add-cas1-bed-search-result

Re-add ApprovedPremisesBedSearchParameters
  • Loading branch information
davidatkinsuk authored Jan 9, 2025
2 parents 363a262 + c4e5ad6 commit b20b6d0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
23 changes: 22 additions & 1 deletion src/main/resources/static/cas1-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1034,4 +1034,25 @@ components:
- updatedEndDate
- updatedReferenceNumber
- updatedReason
- updatedNotes
- updatedNotes
ApprovedPremisesBedSearchParameters:
deprecated: true
description: This is no longer returned by any APIs so should be removed once removed from UI Code
allOf:
- $ref: '_shared.yml#/components/schemas/BedSearchParameters'
- type: object
properties:
postcodeDistrict:
type: string
description: The postcode district to search outwards from
maxDistanceMiles:
type: integer
description: Maximum number of miles from the postcode district to search, only required if more than 50 miles which is the default
requiredCharacteristics:
type: array
items:
$ref: '_shared.yml#/components/schemas/PlacementCriteria'
required:
- postcodeDistrict
- maxDistanceMiles
- requiredCharacteristics
23 changes: 22 additions & 1 deletion src/main/resources/static/codegen/built-cas1-api-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7051,4 +7051,25 @@ components:
- updatedEndDate
- updatedReferenceNumber
- updatedReason
- updatedNotes
- updatedNotes
ApprovedPremisesBedSearchParameters:
deprecated: true
description: This is no longer returned by any APIs so should be removed once removed from UI Code
allOf:
- $ref: '#/components/schemas/BedSearchParameters'
- type: object
properties:
postcodeDistrict:
type: string
description: The postcode district to search outwards from
maxDistanceMiles:
type: integer
description: Maximum number of miles from the postcode district to search, only required if more than 50 miles which is the default
requiredCharacteristics:
type: array
items:
$ref: '#/components/schemas/PlacementCriteria'
required:
- postcodeDistrict
- maxDistanceMiles
- requiredCharacteristics

0 comments on commit b20b6d0

Please sign in to comment.