mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +00:00
da4cbf6d80
fix(datasource/gitlab-releases): replace getJsonUnchecked with validated getJson Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
426 B
TypeScript
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);
|