mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 22:29:06 +00:00
bbedb2d737
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>
25 lines
590 B
TypeScript
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);
|