0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/modules/manager/crossplane/schema.ts
Philippe Scorsolini a199363153
feat(manager/crossplane): add Crossplane xpkgs support (#25896)
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-11-22 09:18:44 +00:00

12 lines
282 B
TypeScript

import { z } from 'zod';
export const XPKGSchema = z.object({
apiVersion: z.string().regex(/^pkg\.crossplane\.io\//),
kind: z.enum(['Provider', 'Configuration', 'Function']),
spec: z.object({
package: z.string(),
}),
});
export type XPKG = z.infer<typeof XPKGSchema>;