mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 17:51: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
452 B
TypeScript
16 lines
452 B
TypeScript
import { z } from 'zod/v4';
|
|
import { regEx } from '../../../util/regex.ts';
|
|
import { Yaml } from '../../../util/schema-utils/index.ts';
|
|
|
|
const GitSshUrl = z.string().regex(regEx(/^[^@]+@[^:]*:.+$/), {
|
|
message: 'Invalid Git SSH URL format',
|
|
});
|
|
export const CopierAnswersFile = Yaml.pipe(
|
|
z.object({
|
|
_commit: z.string(),
|
|
_src_path: z.string().url().or(GitSshUrl),
|
|
}),
|
|
);
|
|
|
|
export type CopierAnswersFile = z.infer<typeof CopierAnswersFile>;
|