Skip to content

Commit 125a454

Browse files
authored
fix: Hide missing zod schema warning for event and action_attempt (#220)
1 parent 1237d6f commit 125a454

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/samples/resource-sample.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ export const createResourceSample = async (
6161
)
6262
}
6363
} else {
64-
// eslint-disable-next-line no-console
65-
console.warn(`Missing Zod schema for resource ${resourceType}.`)
64+
// TODO: Skip event and action_attempt warning until support is added.
65+
if (!['event', 'action_attempt'].includes(resourceType)) {
66+
// eslint-disable-next-line no-console
67+
console.warn(`Missing Zod schema for resource ${resourceType}.`)
68+
}
6669
}
6770

6871
const resource: Resource = {

0 commit comments

Comments
 (0)