0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/modules/datasource/gitea-releases/schema.ts
2025-01-22 20:15:25 +00:00

12 lines
306 B
TypeScript

import { z } from 'zod';
import { MaybeTimestamp } from '../../../util/timestamp';
export const ReleaseSchema = z.object({
name: z.string(),
tag_name: z.string(),
body: z.string(),
prerelease: z.boolean(),
published_at: MaybeTimestamp,
});
export const ReleasesSchema = z.array(ReleaseSchema);