File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,6 @@ import type {
8
8
RuntimeZodType ,
9
9
} from './types.js' ;
10
10
11
- /**
12
- * Type guard to check if the schema is a Zod schema
13
- *
14
- * @param schema - The schema to check
15
- */
16
- const isZodSchema = ( schema : StandardSchemaV1 ) =>
17
- schema [ '~standard' ] . vendor === SchemaVendor . Zod ;
18
-
19
11
/**
20
12
* Extend the schema according to the event type passed.
21
13
*
@@ -142,7 +134,7 @@ const parser = async (
142
134
}
143
135
if ( innerSchema ) {
144
136
// Only proceed with schema extension if it's a Zod schema
145
- if ( ! isZodSchema ( innerSchema ) ) {
137
+ if ( innerSchema [ '~standard' ] . vendor !== SchemaVendor . Zod ) {
146
138
logger . error (
147
139
'The schema provided is not supported. Only Zod schemas are supported for extension.'
148
140
) ;
You can’t perform that action at this time.
0 commit comments