Skip to content

Commit

Permalink
Removed unused Cas1SpaceSearchResult.spacesAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
davidatkinsuk committed Jan 3, 2025
1 parent d4bc81a commit 0a96876
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class Cas1SpaceSearchResultsTransformer {
},
),
distanceInMiles = candidatePremises.distanceInMiles.toBigDecimal(),
spacesAvailable = listOf(),
)
},
)
Expand Down
20 changes: 3 additions & 17 deletions src/main/resources/static/cas1-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,23 +318,9 @@ components:
distanceInMiles:
type: number
example: 2.1
spacesAvailable:
type: array
deprecated: true
description: "This is not populated and will be removed in the future"
items:
$ref: '#/components/schemas/Cas1SpaceAvailability'
Cas1SpaceAvailability:
type: object
deprecated: true
properties:
spaceCharacteristics:
type: array
items:
$ref: '#/components/schemas/Cas1SpaceCharacteristic'
durationInDays:
type: integer
example: 77
required:
- premises
- distanceInMiles
Cas1SpaceCategory:
type: string
example: arson
Expand Down
20 changes: 3 additions & 17 deletions src/main/resources/static/codegen/built-cas1-api-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6365,23 +6365,9 @@ components:
distanceInMiles:
type: number
example: 2.1
spacesAvailable:
type: array
deprecated: true
description: "This is not populated and will be removed in the future"
items:
$ref: '#/components/schemas/Cas1SpaceAvailability'
Cas1SpaceAvailability:
type: object
deprecated: true
properties:
spaceCharacteristics:
type: array
items:
$ref: '#/components/schemas/Cas1SpaceCharacteristic'
durationInDays:
type: integer
example: 77
required:
- premises
- distanceInMiles
Cas1SpaceCategory:
type: string
example: arson
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class Cas1SpaceSearchResultsTransformerTest {
assertThat(premises1.premisesCharacteristics).isEmpty()
assertThat(premises1.characteristics).isEmpty()
assertThat(actual.results[0].distanceInMiles).isEqualTo(BigDecimal.valueOf(1.0))
assertThat(actual.results[0].spacesAvailable).isEmpty()

val premises2 = actual.results[1].premises
assertThat(premises2).isNotNull
Expand All @@ -107,6 +106,5 @@ class Cas1SpaceSearchResultsTransformerTest {
assertThat(premises2.premisesCharacteristics).isEmpty()
assertThat(premises2.characteristics).isEmpty()
assertThat(actual.results[1].distanceInMiles).isEqualTo(BigDecimal.valueOf(2.0))
assertThat(actual.results[1].spacesAvailable).isEmpty()
}
}

0 comments on commit 0a96876

Please sign in to comment.