mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 15:01:49 +00:00
15f4bd8eff
* chore: migrate from zod/v3 to zod/v4 This commit contains the logic changes * chore: migrate imports from zod/v3 to zod/v4 This contains import updates and adds explicit record keys as zod/v4 requires these now * ci: enforce usage of zod/v4
16 lines
381 B
TypeScript
16 lines
381 B
TypeScript
import { z } from 'zod/v4';
|
|
import { Jsonc, LooseRecord } from '../../../util/schema-utils/index.ts';
|
|
|
|
export const DevContainerFile = Jsonc.pipe(
|
|
z.object({
|
|
image: z.string().optional(),
|
|
features: LooseRecord(
|
|
z.object({
|
|
version: z.string().optional(),
|
|
}),
|
|
).optional(),
|
|
}),
|
|
);
|
|
|
|
export type DevContainerFile = z.infer<typeof DevContainerFile>;
|