Skip to content

Commit eaea017

Browse files
committed
Roll back formatting change to events package
1 parent 6096958 commit eaea017

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/events/src/events/event-envelope.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { z } from "zod";
22

3+
// eslint-disable-next-line import-x/prefer-default-export
34
export 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,

0 commit comments

Comments
 (0)