Skip to content

Commit 2511a7d

Browse files
Compute Server API: Server configuration field now passes through extra keys in the configuration field during schema validation.
1 parent 1f99952 commit 2511a7d

File tree

1 file changed

+2
-2
lines changed
  • src/packages/next/lib/api/schema/compute

1 file changed

+2
-2
lines changed

src/packages/next/lib/api/schema/compute/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export const ComputeServerImageProxySchema = z.object({
4141
name: z.string().optional(),
4242
});
4343

44-
export const GoogleCloudServerConfigurationSchema = z.object({});
44+
export const GoogleCloudServerConfigurationSchema = z.object({}).passthrough();
4545

46-
export const HyperstackServerConfigurationSchema = z.object({});
46+
export const HyperstackServerConfigurationSchema = z.object({}).passthrough();
4747

4848
export const ServerConfigurationSchema = z.union([
4949
GoogleCloudServerConfigurationSchema,

0 commit comments

Comments
 (0)