-
Notifications
You must be signed in to change notification settings - Fork 3
CCM-13080: Event data schemas for queue, viewer, core and reporting #113
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
Merged
tdroza-nhs
merged 3 commits into
main
from
feature/CCM-13080-queue-core-print-event-data
Nov 18, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
...s/digital-letters/2025-10-draft/data/digital-letters-digital-letter-read-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: DigitalLetterRead Data | ||
| description: Data payload of the DigitalLetterRead event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| required: | ||
| - messageReference | ||
| - senderId |
10 changes: 3 additions & 7 deletions
10
...l-letters/2025-10-draft/data/digital-letters-mesh-inbox-message-received-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,10 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: Placeholder Data | ||
| description: Base data for digital letters - a placeholder until all data schemas are defined | ||
| title: MESHInboxMessageReceived Data | ||
| description: Data payload of the MESHInboxMessageReceived event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| meshMessageId: | ||
| type: string | ||
| minLength: 1 | ||
| description: Id of the message in the MESH inbox | ||
| examples: | ||
| - "20200601122152994285_D59900" | ||
| $ref: ../defs/mesh.schema.yaml#/properties/meshMessageId | ||
| required: | ||
| - meshMessageId |
19 changes: 19 additions & 0 deletions
19
...igital-letters/2025-10-draft/data/digital-letters-message-request-failed-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: MessageRequestSendingFailed Data | ||
| description: Data payload of the MessageRequestSendingFailed event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| messageUri: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageUri | ||
| failureCode: | ||
| $ref: ../defs/core.schema.yaml#/properties/failureCode | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - messageUri | ||
| - failureCode |
19 changes: 19 additions & 0 deletions
19
...tal-letters/2025-10-draft/data/digital-letters-message-request-submitted-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: NotifyMessageRequestSubmitted Data | ||
| description: Data payload of the NotifyMessageRequestSubmitted event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| messageUri: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageUri | ||
| notifyId: | ||
| $ref: ../defs/core.schema.yaml#/properties/notifyId | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - messageUri | ||
| - notifyId |
16 changes: 16 additions & 0 deletions
16
...s/digital-letters/2025-10-draft/data/digital-letters-queue-item-dequeued-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: ItemDequeued Data | ||
| description: Data payload of the ItemDequeued event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| messageUri: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageUri | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - messageUri |
16 changes: 16 additions & 0 deletions
16
...s/digital-letters/2025-10-draft/data/digital-letters-queue-item-enqueued-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: ItemEnqueued Data | ||
| description: Data payload of the ItemEnqueued event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| messageUri: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageUri | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - messageUri |
16 changes: 16 additions & 0 deletions
16
...ns/digital-letters/2025-10-draft/data/digital-letters-queue-item-removed-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: ItemRemoved Data | ||
| description: Data payload of the ItemRemoved event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| messageReference: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageReference | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| messageUri: | ||
| $ref: ../defs/requests.schema.yaml#/properties/messageUri | ||
| required: | ||
| - messageReference | ||
| - senderId | ||
| - messageUri |
10 changes: 10 additions & 0 deletions
10
...tal-letters/2025-10-draft/data/digital-letters-reporting-generate-report-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: GenerateReport Data | ||
| description: Data payload of the GenerateReport event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| required: | ||
| - senderId |
13 changes: 13 additions & 0 deletions
13
...al-letters/2025-10-draft/data/digital-letters-reporting-report-generated-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: ReportGenerated Data | ||
| description: Data payload of the ReportGenerated event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| reportUri: | ||
| $ref: ../defs/reporting.schema.yaml#/properties/reportUri | ||
| required: | ||
| - senderId | ||
| - reportUri |
13 changes: 13 additions & 0 deletions
13
...digital-letters/2025-10-draft/data/digital-letters-reporting-report-sent-data.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: ReportSent Data | ||
| description: Data payload of the ReportSent event | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| senderId: | ||
| $ref: ../defs/requests.schema.yaml#/properties/senderId | ||
| meshMailboxId: | ||
| $ref: ../defs/mesh.schema.yaml#/properties/meshMailboxId | ||
| required: | ||
| - senderId | ||
| - meshMailboxId |
13 changes: 0 additions & 13 deletions
13
...ts/domains/digital-letters/2025-10-draft/data/messages.status.updated-data.v1.schema.yaml
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/cloudevents/domains/digital-letters/2025-10-draft/defs/core.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: Request data | ||
| description: Reusable types for NHS Notify payload schemas. | ||
| type: object | ||
| properties: | ||
| notifyId: | ||
| type: string | ||
| description: "KSUID assigned by Notify to uniquely identify the message request" | ||
| minLength: 27 | ||
| maxLength: 27 | ||
| pattern: "^[0-9a-zA-Z]{27}$" | ||
| examples: | ||
| - "35bVTLgU9sVCukH6Cgri39g5xPF" | ||
| failureCode: | ||
| type: string | ||
| description: "A code representing the reason for failure" | ||
| examples: | ||
| - "CM_NOT_ALLOWED" | ||
| - "CM_NO_SUCH_ROUTING_PLAN" | ||
| - "CM_DUPLICATE_REQUEST" |
17 changes: 17 additions & 0 deletions
17
src/cloudevents/domains/digital-letters/2025-10-draft/defs/mesh.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: Request data | ||
| description: Reusable types for NHS Notify payload schemas. | ||
| type: object | ||
| properties: | ||
| meshMessageId: | ||
| type: string | ||
| minLength: 1 | ||
| description: Id of the message in the MESH inbox | ||
| examples: | ||
| - "20200601122152994285_D59900" | ||
| meshMailboxId: | ||
| type: string | ||
| minLength: 1 | ||
| description: Id of the mailbox | ||
| examples: | ||
| - "MAILBOX01" |
11 changes: 11 additions & 0 deletions
11
src/cloudevents/domains/digital-letters/2025-10-draft/defs/reporting.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: Request data | ||
| description: Reusable types for NHS Notify payload schemas. | ||
| type: object | ||
| properties: | ||
| reportUri: | ||
| type: string | ||
| format: uri | ||
| description: Uri to the storage location of the generated status report | ||
| examples: | ||
| - "s3://my-bucket/path/to/my-report" |
15 changes: 7 additions & 8 deletions
15
...s/2025-10-draft/events/uk.nhs.notify.digital.letters.messages.request.sent.v1.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,23 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: NotifyMessageRequestSentToCitizen | ||
| title: MessageRequestFailed | ||
| type: object | ||
| allOf: | ||
| - $ref: ../digital-letters-messages-profile.schema.yaml | ||
| properties: | ||
| type: | ||
| type: string | ||
| const: uk.nhs.notify.digital.letters.messages.request.sent.v1 | ||
| description: Concrete versioned event type string for this example event (.vN suffix). | ||
| description: Concrete versioned event type string for this event (.vN suffix). | ||
| source: | ||
| type: string | ||
| pattern: ^/nhs/england/notify/(production|staging|development|uat)/(primary|secondary|dev-[0-9]+)/data-plane/digitalletters/messages | ||
| description: Event source for digital letters examples. | ||
| description: Event source for digital letters. | ||
|
|
||
| dataschema: | ||
| type: string | ||
| const: ../data/messages.status.updated-data.v1.schema.yaml | ||
| description: Canonical URI of the example event's data schema. | ||
| const: ../data/digital-letters-message-request-failed-data.schema.yaml | ||
| description: Canonical URI of the event's data schema. | ||
| examples: | ||
| - messages.status.updated-data.v1.schema.yaml | ||
| - digital-letters-message-request-failed-data.schema.yaml | ||
| data: | ||
| $ref: ../data/messages.status.updated-data.v1.schema.yaml | ||
| description: Example payload wrapper containing notify-payload. | ||
| $ref: ../data/digital-letters-message-request-failed-data.schema.yaml | ||
15 changes: 7 additions & 8 deletions
15
...5-10-draft/events/uk.nhs.notify.digital.letters.messages.request.submitted.v1.schema.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,23 @@ | ||
| $schema: https://json-schema.org/draft/2020-12/schema | ||
| title: NotifyMessageRequestSubmitted | ||
| title: MessageRequestSubmitted | ||
| type: object | ||
| allOf: | ||
| - $ref: ../digital-letters-messages-profile.schema.yaml | ||
| properties: | ||
| type: | ||
| type: string | ||
| const: uk.nhs.notify.digital.letters.messages.request.submitted.v1 | ||
| description: Concrete versioned event type string for this example event (.vN suffix). | ||
| description: Concrete versioned event type string for this event (.vN suffix). | ||
| source: | ||
| type: string | ||
| pattern: ^/nhs/england/notify/(production|staging|development|uat)/(primary|secondary|dev-[0-9]+)/data-plane/digitalletters/messages | ||
| description: Event source for digital letters examples. | ||
| description: Event source for digital letters. | ||
|
|
||
| dataschema: | ||
| type: string | ||
| const: ../data/messages.status.updated-data.v1.schema.yaml | ||
| description: Canonical URI of the example event's data schema. | ||
| const: ../data/digital-letters-message-request-submitted-data.schema.yaml | ||
| description: Canonical URI of the event's data schema. | ||
| examples: | ||
| - messages.status.updated-data.v1.schema.yaml | ||
| - digital-letters-message-request-submitted-data.schema.yaml | ||
| data: | ||
| $ref: ../data/messages.status.updated-data.v1.schema.yaml | ||
| description: Example payload wrapper containing notify-payload. | ||
| $ref: ../data/digital-letters-message-request-submitted-data.schema.yaml |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.