Skip to content

Commit bc5f6ed

Browse files
committed
fix configs, gen schema
1 parent 1aff0f9 commit bc5f6ed

15 files changed

+94
-6
lines changed

internal/events/schemas/domain/letter.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
2+
"title": "Letter",
3+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.",
24
"type": "object",
35
"properties": {
46
"domainId": {
7+
"title": "Letter ID",
8+
"description": "Unique identifier for the Letter",
9+
"examples": [
10+
"1y3q9v1zzzz"
11+
],
512
"type": "string"
613
},
714
"origin": {

internal/events/schemas/events/letter.ACCEPTED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.ACCEPTED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `ACCEPTED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.CANCELLED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.CANCELLED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `CANCELLED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.DELIVERED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.DELIVERED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `DELIVERED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.DISPATCHED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.DISPATCHED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `DISPATCHED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.ENCLOSED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.ENCLOSED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `ENCLOSED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.FAILED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.FAILED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `FAILED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.FORWARDED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.FORWARDED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `FORWARDED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.PENDING.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.PENDING.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `PENDING`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

internal/events/schemas/events/letter.PRINTED.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@
8282
"pattern": "^https:\\/\\/notify\\.nhs\\.uk\\/cloudevents\\/schemas\\/supplier-api\\/letter.PRINTED.1\\.\\d+\\.\\d+\\.schema.json$"
8383
},
8484
"data": {
85+
"title": "Letter",
86+
"description": "The status of a letter in the supplier-api domain.\n\nThis will include the current production status, any reason provided for the status, if applicable, and identifiers used for grouping in reports.\n\nFor this event the status is always `PRINTED`",
8587
"type": "object",
8688
"properties": {
8789
"domainId": {
90+
"title": "Letter ID",
91+
"description": "Unique identifier for the Letter",
92+
"examples": [
93+
"1y3q9v1zzzz"
94+
],
8895
"type": "string"
8996
},
9097
"origin": {

0 commit comments

Comments
 (0)