Skip to content

Refactor OpenAPI to accept API variable#1391

Merged
lydiaralphgov merged 21 commits intomasterfrom
S28-4828/open-api-workflows
Apr 16, 2026
Merged

Refactor OpenAPI to accept API variable#1391
lydiaralphgov merged 21 commits intomasterfrom
S28-4828/open-api-workflows

Conversation

@lydiaralphgov
Copy link
Copy Markdown
Contributor

@lydiaralphgov lydiaralphgov commented Apr 15, 2026

JIRA ticket(s)

Change description

This change is necessary to allow OpenAPI docs to be published.

  • Refactored OpenAPIPublisher to take apiName as variable, so that it can be reused for B2C API
  • Brought hmcts/workflow-publish-openapi-spec/.github/workflows/publish-openapi.yml@main into local repo as ./.github/workflows/shared-openapi-publish-steps.yaml
  • Fixed some existing security hotspots highlighted by SonarQube

Merge instructions

I tested as far as possible on PR branch, but this will need monitoring when merged to master. I don't think we should alter the API to fully test it though.

Comment thread .github/workflows/publish-openapi.yaml
Comment thread .github/workflows/publish-swagger-v2-and-bump-apim-revision.yaml
Comment thread .github/workflows/publish-swagger-v2-and-bump-apim-revision.yaml
Comment thread .github/workflows/shared-openapi-publish-steps.yaml
oliver-scott
oliver-scott previously approved these changes Apr 16, 2026
@lydiaralphgov lydiaralphgov changed the base branch from master to release April 16, 2026 13:55
@lydiaralphgov lydiaralphgov dismissed oliver-scott’s stale review April 16, 2026 13:55

The base branch was changed.

@lydiaralphgov lydiaralphgov changed the base branch from release to master April 16, 2026 16:02
@lydiaralphgov lydiaralphgov merged commit a7f04de into master Apr 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants