mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-04 03:24:00 +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
27 lines
630 B
TypeScript
27 lines
630 B
TypeScript
import { z } from 'zod/v4';
|
|
|
|
export const AzurePipelinesTaskVersion = z.object({
|
|
major: z.number(),
|
|
minor: z.number(),
|
|
patch: z.number(),
|
|
});
|
|
|
|
export const AzurePipelinesTask = z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
deprecated: z.boolean().optional(),
|
|
releaseNotes: z.string().optional(),
|
|
serverOwned: z.boolean().optional(),
|
|
version: AzurePipelinesTaskVersion.nullable(),
|
|
contributionIdentifier: z.string().optional(),
|
|
});
|
|
|
|
export const AzurePipelinesJSON = z.object({
|
|
value: AzurePipelinesTask.array(),
|
|
});
|
|
|
|
export const AzurePipelinesFallbackTasks = z.record(
|
|
z.string(),
|
|
z.string().array(),
|
|
);
|