0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/platform/gitea/schema.ts
Michael Kriese d3da0bcef0
feat(changelog): support gitea changelogs (#24144)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-08-31 09:41:39 +00:00

13 lines
357 B
TypeScript

import { z } from 'zod';
export const ContentsResponseSchema = z.object({
name: z.string(),
path: z.string(),
type: z.union([z.literal('file'), z.literal('dir')]),
content: z.string().nullable(),
});
export type ContentsResponse = z.infer<typeof ContentsResponseSchema>;
export const ContentsListResponseSchema = z.array(ContentsResponseSchema);