mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +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
24 lines
459 B
TypeScript
24 lines
459 B
TypeScript
import { z } from 'zod/v4';
|
|
import { Ini } from '../../../util/schema-utils/index.ts';
|
|
|
|
export const QuadletFile = Ini.pipe(
|
|
z.object({
|
|
Container: z
|
|
.object({
|
|
Image: z.string(),
|
|
})
|
|
.optional(),
|
|
Image: z
|
|
.object({
|
|
Image: z.string(),
|
|
})
|
|
.optional(),
|
|
Volume: z
|
|
.object({
|
|
Image: z.string(),
|
|
})
|
|
.optional(),
|
|
}),
|
|
);
|
|
export type QuadletFile = z.infer<typeof QuadletFile>;
|