Skip to content

Commit 2406adb

Browse files
authored
Fix: Properly handle schema option in parseArgs function (#10)
1 parent 6e3ff6f commit 2406adb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ function parseArgs(): Config {
5959

6060
try {
6161
return ConfigSchema.parse({
62+
name: argv.name,
6263
endpoint: argv.endpoint,
64+
allowMutations: argv["enable-mutations"],
6365
headers: typeof argv.headers === "string" ? JSON.parse(argv.headers) : {},
66+
schema: argv.schema
6467
});
6568
} catch (error) {
6669
if (error instanceof z.ZodError) {

0 commit comments

Comments
 (0)