@@ -8,12 +8,15 @@ describe("EventEnvelope schema validation", () => {
88 const baseValidEnvelope : Envelope = {
99 dataschema :
1010 "https://notify.nhs.uk/cloudevents/schemas/supplier-api/order.READ.1.0.0.schema.json" ,
11+ dataschemaversion : "1.0.0" ,
1112 specversion : "1.0" ,
1213 id : "6f1c2a53-3d54-4a0a-9a0b-0e9ae2d4c111" ,
1314 source : "/data-plane/supplier-api/ordering" ,
1415 subject : "order/769acdd4" ,
1516 type : "uk.nhs.notify.supplier-api.order.READ.v1" ,
17+ plane : "data" ,
1618 time : "2025-10-01T10:15:30.000Z" ,
19+ datacontenttype : "application/json" ,
1720 data : {
1821 "notify-payload" : {
1922 "notify-data" : { nhsNumber : "9434765919" } ,
@@ -241,10 +244,13 @@ describe("EventEnvelope schema validation", () => {
241244 specversion : "1.0" as const ,
242245 id : "6f1c2a53-3d54-4a0a-9a0b-0e02b2c3d479" ,
243246 type : "uk.nhs.notify.supplier-api.letter.CREATED.v1" as const ,
247+ plane : "data" ,
244248 dataschema :
245249 "https://notify.nhs.uk/cloudevents/schemas/supplier-api/letter.CREATED.1.0.0.schema.json" ,
250+ dataschemaversion : "1.0.0" ,
246251 source : "/data-plane/supplier-api/letters" ,
247252 time : "2025-10-01T10:15:30.000Z" ,
253+ datacontenttype : "application/json" ,
248254 data : { status : "CREATED" } ,
249255 traceparent : "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01" ,
250256 recordedtime : "2025-10-01T10:15:30.250Z" ,
@@ -294,11 +300,14 @@ describe("EventEnvelope schema validation", () => {
294300 specversion : "1.0" as const ,
295301 id : "6f1c2a53-3d54-4a0a-9a0b-0e9ae2d4c111" ,
296302 type : "uk.nhs.notify.supplier-api.order.READ.v1" as const ,
303+ plane : "data" ,
297304 dataschema :
298305 "https://notify.nhs.uk/cloudevents/schemas/supplier-api/order.READ.1.0.0.schema.json" ,
306+ dataschemaversion : "1.0.0" ,
299307 source : "/data-plane/supplier-api/ordering" ,
300308 subject : "order/769acdd4" ,
301309 time : "2025-10-01T10:15:30.000Z" ,
310+ datacontenttype : "application/json" ,
302311 data : { status : "READ" } ,
303312 traceparent : "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01" ,
304313 recordedtime : "2025-10-01T10:15:30.250Z" ,
@@ -341,6 +350,7 @@ describe("EventEnvelope schema validation", () => {
341350 type : "uk.nhs.notify.supplier-api.order.read.v1" as const ,
342351 dataschema :
343352 "https://notify.nhs.uk/cloudevents/schemas/supplier-api/order.read.1.0.0.schema.json" ,
353+ dataschemaversion : "1.0.0" ,
344354 source : "/data-plane/supplier-api/ordering" ,
345355 subject : "prefix/letter-rendering/order/769acdd4" ,
346356 time : "2025-10-01T10:15:30.000Z" ,
0 commit comments