0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-12 22:29:06 +00:00
renovatebot_renovate/lib/modules/manager/buildpacks/schema.ts
Pavel Busko bbedb2d737
feat(manager): Cloud Native Buildpacks project descriptor manager (#30799)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: loewenstein-sap <jan.von.loewenstein@sap.com>
2024-11-21 12:11:58 +00:00

25 lines
590 B
TypeScript

import { z } from 'zod';
import { Toml } from '../../../util/schema-utils';
const BuildpackGroup = z.object({
uri: z.string().optional(),
});
const IoBuildpacks = z.object({
builder: z.string().optional(),
group: z.array(BuildpackGroup).optional(),
});
export const ProjectDescriptor = z.object({
_: z.object({
'schema-version': z.string(),
}),
io: z
.object({
buildpacks: IoBuildpacks.optional(),
})
.optional(),
});
export type ProjectDescriptor = z.infer<typeof ProjectDescriptor>;
export const ProjectDescriptorToml = Toml.pipe(ProjectDescriptor);