mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 06:51:11 +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
22 lines
523 B
TypeScript
22 lines
523 B
TypeScript
import { z } from 'zod/v4';
|
|
import { LooseArray, LooseRecord } from '../../../util/schema-utils/index.ts';
|
|
|
|
const Translation = z.object({
|
|
changelog: z.string(),
|
|
});
|
|
|
|
export const ApplicationRelease = z.object({
|
|
created: z.string(),
|
|
isNightly: z.boolean(),
|
|
translations: LooseRecord(z.string(), Translation),
|
|
version: z.string(),
|
|
});
|
|
|
|
export const Application = z.object({
|
|
id: z.string(),
|
|
releases: LooseArray(ApplicationRelease),
|
|
website: z.string(),
|
|
});
|
|
|
|
export const Applications = z.array(Application);
|