NPA-7384: Update examples and spec to ensure provision.actor is depre… - #389
Merged
ellie-bound1-NHSD merged 7 commits intoSep 1, 2026
Merged
Conversation
…cated and not to be used
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the OpenAPI specification and example payloads to discourage use of the deprecated Consent.provision.actor field by explicitly marking it deprecated in the spec and removing it from published examples, steering consumers toward policyRule (legal basis) instead.
Changes:
- Mark
Provision.actorasdeprecated: truein the OpenAPI schema and update its description accordingly. - Remove
provision.actorblocks from many GET/POST example YAMLs. - Update the PATCH policy rule example’s description (and associated guidance via the example reference).
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| specification/validated-relationships-service-api.yaml | Deprecates Provision.actor in the schema (and updates description text). |
| specification/examples/responses/GET_Consent/single-mother-child-relationship.yaml | Removes provision.actor from a single-relationship response example. |
| specification/examples/responses/GET_Consent/single-mother-child-relationship-unknown-legal-basis.yaml | Removes provision.actor from an “unknown legal basis” response example. |
| specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer.yaml | Removes provision.actor from a response example that includes performer. |
| specification/examples/responses/GET_Consent/single-mother-child-relationship-include-performer-patient.yaml | Removes provision.actor from a response example that includes performer and patient. |
| specification/examples/responses/GET_Consent/single-mother-child-relationship-include-patient.yaml | Removes provision.actor from a response example that includes patient. |
| specification/examples/responses/GET_Consent/single-consenting-adult-relationship.yaml | Removes provision.actor from a single consenting-adult response example. |
| specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer.yaml | Removes provision.actor from a consenting-adult response example that includes performer. |
| specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-performer-patient.yaml | Removes provision.actor from a consenting-adult response example that includes performer and patient. |
| specification/examples/responses/GET_Consent/single-consenting-adult-relationship-include-patient.yaml | Removes provision.actor from a consenting-adult response example that includes patient. |
| specification/examples/responses/GET_Consent/multiple-relationships.yaml | Removes provision.actor from multiple-relationship response example entries. |
| specification/examples/responses/GET_Consent/multiple-relationships-single-patient.yaml | Removes provision.actor from multiple-relationship (single patient) response example entries. |
| specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer.yaml | Removes provision.actor from multiple-relationship (single patient) response example entries including performer. |
| specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-performer-patient.yaml | Removes provision.actor from multiple-relationship (single patient) response example entries including performer and patient. |
| specification/examples/responses/GET_Consent/multiple-relationships-single-patient-include-patient.yaml | Removes provision.actor from part of the multiple-relationship (single patient, include patient) response example. |
| specification/examples/responses/GET_Consent/multiple-relationships-include-performer.yaml | Removes provision.actor from multiple-relationship response example entries including performer. |
| specification/examples/responses/GET_Consent/multiple-relationships-include-performer-patient.yaml | Removes provision.actor from multiple-relationship response example entries including performer and patient. |
| specification/examples/responses/GET_Consent/multiple-relationships-include-patient.yaml | Removes provision.actor from multiple-relationship response example entries including patient. |
| specification/examples/responses/GET_Consent/filtered-relationships-status-proposed-active.yaml | Removes provision.actor from filtered-relationships response example entries. |
| specification/examples/responses/GET_Consent/filtered-relationships-status-inactive.yaml | Removes provision.actor from the first inactive-status response example entry. |
| specification/examples/responses/GET_Consent/filtered-relationships-status-active-include-details.yaml | Removes provision.actor blocks (including role/reference) from the include-details example. |
| specification/examples/requests/POST_Consent/parent_child_proxy_creation.yaml | Removes actor from a POST consent creation request example. |
| specification/examples/requests/POST_Consent/adult_to_adult_proxy_creation.yaml | Removes actor from a POST consent creation request example. |
| specification/examples/requests/PATCH_Consent/replace_policy_rule.yaml | Updates the patch example description for changing the legal basis (policyRule). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
2
to
6
| summary: Replace policy rule | ||
| description: payload used to add a new policy rule to the consent provision | ||
| description: payload used to add a new legal basis to the proxy role | ||
| value: | ||
| - op: add | ||
| path: /policyRule |
ellie-bound1-NHSD
force-pushed
the
bug/NPA-7384/make-provision-actor-not-mandatory
branch
from
August 28, 2026 15:04
e160c61 to
a131a4b
Compare
ellie-bound1-NHSD
force-pushed
the
bug/NPA-7384/make-provision-actor-not-mandatory
branch
from
September 1, 2026 07:57
a131a4b to
89efb9c
Compare
|
ellie-bound1-NHSD
deleted the
bug/NPA-7384/make-provision-actor-not-mandatory
branch
September 1, 2026 11:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



…cated and not to be used
Pull Request
🧾 Ticket Link
https://nhsd-jira.digital.nhs.uk/browse/NPA-7384
📄 Description/Summary of Changes
🧪 Developer Testing Carried Out
📋 PR Principles
🏷️ Naming Conventions Reminder
Please ensure the following naming conventions are followed:
NPA-XXXX: <short-description><type>/NPA-XXXX/<short-description>NPA-XXXX: <short-description>