Files
Sebastian Poxhofer 15f4bd8eff chore: migrate from zod/v3 to zod/v4 (#43691)
* 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
2026-05-30 16:01:58 +00:00

13 lines
328 B
TypeScript

import { z } from 'zod/v4';
import { regEx } from '../../../util/regex.ts';
export const XPKG = z.object({
apiVersion: z.string().regex(regEx(/^pkg\.crossplane\.io\//)),
kind: z.enum(['Provider', 'Configuration', 'Function']),
spec: z.object({
package: z.string(),
}),
});
export type XPKG = z.infer<typeof XPKG>;