0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/modules/datasource/glasskube-packages/schema.ts
Jakob Steiner bbde8073e8
feat(datasource): add glasskube packages datasource (#29430)
Signed-off-by: Jakob Steiner <jakob.steiner@glasskube.eu>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-06-26 13:33:40 +00:00

23 lines
634 B
TypeScript

import { z } from 'zod';
import { Yaml } from '../../../util/schema-utils';
const GlasskubePackageVersions = z.object({
latestVersion: z.string(),
versions: z.array(z.object({ version: z.string() })),
});
const GlasskubePackageManifest = z.object({
references: z.optional(
z.array(
z.object({
label: z.string(),
url: z.string(),
}),
),
),
});
export const GlasskubePackageVersionsYaml = Yaml.pipe(GlasskubePackageVersions);
export const GlasskubePackageManifestYaml = Yaml.pipe(GlasskubePackageManifest);
export type GlasskubePackageVersions = z.infer<typeof GlasskubePackageVersions>;