Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API model updates #2267

Merged
merged 2 commits into from
Jan 6, 2025
Merged

API model updates #2267

merged 2 commits into from
Jan 6, 2025

Conversation

communityaccommodationtypegen[bot]
Copy link
Contributor

Updating hmpps-approved-premises-api models from OpenAPI specification. This PR was created automatically from the generate-types.yml Workflow

@communityaccommodationtypegen communityaccommodationtypegen bot force-pushed the update-api-types branch 2 times, most recently from 96fb516 to 1f75689 Compare January 2, 2025 15:58
This updates the factory for a Space Search Premises Summary, which is
renamed to match the new namespace and prevent confusion.
@@ -41,7 +41,7 @@ describe('BookingsController', () => {
placementRequestService.getPlacementRequest.mockResolvedValue(placementRequestDetail)

const query = {
bedSearchResult: encodeSpaceSearchResult(bedSearchResult),
bedSearchResult: encodeSpaceSearchResult(bedSearchResult as unknown as SpaceSearchResult),
Copy link
Contributor

@bobmeredith bobmeredith Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a bit odd to me - wouldn't the bedSearchResult be for the old search and SpaceSearchResult be the new one?

Ah, you mentioned in Slack - ignore me.

Copy link
Contributor

@bobmeredith bobmeredith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@froddd froddd merged commit 669c2fe into main Jan 6, 2025
7 checks passed
@froddd froddd deleted the update-api-types branch January 6, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants