mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-01 02:00:10 +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
20 lines
737 B
TypeScript
20 lines
737 B
TypeScript
import type { WrappedException as _WrappedException } from 'azure-devops-node-api/interfaces/common/VSSInterfaces.js';
|
|
import { z } from 'zod/v4';
|
|
import { Json } from '../../../util/schema-utils/index.ts';
|
|
|
|
const _WrappedException: z.ZodSchema<_WrappedException> = z.lazy(() =>
|
|
z.object({
|
|
customProperties: z.record(z.string(), z.any()).optional(),
|
|
errorCode: z.number().optional(),
|
|
eventId: z.number().optional(),
|
|
helpLink: z.string().optional(),
|
|
innerException: _WrappedException.optional(),
|
|
message: z.string().optional(),
|
|
stackTrace: z.string().optional(),
|
|
typeKey: z.string().optional(),
|
|
typeName: z.string().optional(),
|
|
}),
|
|
);
|
|
|
|
export const WrappedException = Json.pipe(_WrappedException);
|