File tree Expand file tree Collapse file tree
packages/events/src/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { z } from "zod" ;
22
3+ // eslint-disable-next-line import-x/prefer-default-export
34export function EventEnvelope < TData extends z . ZodTypeAny > (
45 eventName : string ,
56 resourceName : string ,
@@ -53,7 +54,7 @@ export function EventEnvelope<TData extends z.ZodTypeAny>(
5354 . regex (
5455 // eslint-disable-next-line security/detect-non-literal-regexp
5556 new RegExp (
56- String . raw `^https://notify\.nhs\.uk/cloudevents/schemas/supplier-config/${ resourceName } \.(?<status>${ statusRegex } )\.1\.\ d+\.\d+ \.schema.json$` ,
57+ `^https://notify\\ .nhs\\ .uk/cloudevents/schemas/supplier-config/${ resourceName } \\ .(?<status>${ statusRegex } )\\ .1\\.\\ d+\\.\\d+\ \.schema.json$` ,
5758 ) ,
5859 )
5960 . meta ( {
@@ -88,7 +89,9 @@ export function EventEnvelope<TData extends z.ZodTypeAny>(
8889 title : "Event Subject" ,
8990 description :
9091 "Resource path (no leading slash) within the source made of segments separated by '/'." ,
91- examples : [ "pack-specification/f47ac10b-58cc-4372-a567-0e02b2c3d479" ] ,
92+ examples : [
93+ "pack-specification/f47ac10b-58cc-4372-a567-0e02b2c3d479" ,
94+ ] ,
9295 } ) ,
9396
9497 data,
You can’t perform that action at this time.
0 commit comments