Skip to content

Commit bb6a909

Browse files
committed
refactor: simplify Xray config response schemas
- Removed `.passthrough()` from Xray config response schemas - Simplified config object definition in get and update config commands
1 parent 7d4b021 commit bb6a909

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/contract/commands/xray/get-config.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export namespace GetXrayConfigCommand {
77

88
export const ResponseSchema = z.object({
99
response: z.object({
10-
config: z.object({}).passthrough(),
10+
config: z.object({}),
1111
}),
1212
});
1313

libs/contract/commands/xray/update-config.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export namespace UpdateXrayConfigCommand {
1212

1313
export const ResponseSchema = z.object({
1414
response: z.object({
15-
config: z.object({}).passthrough(),
15+
config: z.object({}),
1616
}),
1717
});
1818

0 commit comments

Comments
 (0)