Files
Sebastian Poxhofer da4cbf6d80 feat(datasource/gitlab-releases): replace getJsonUnchecked with validated getJson (#44145)
fix(datasource/gitlab-releases): replace getJsonUnchecked with validated getJson

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-11 08:53:20 +00:00

15 lines
426 B
TypeScript

import { z } from 'zod/v4';
import { DeepNullish } from '../../../util/schema-utils/index.ts';
export const GitlabRelease = DeepNullish(
z.object({
description: z.string().optional().default(''),
name: z.string().optional().default(''),
tag_name: z.string(),
released_at: z.string(),
}),
);
export type GitlabRelease = z.infer<typeof GitlabRelease>;
export const GitlabReleases = z.array(GitlabRelease);