renovate/lib/modules/manager/crossplane/schema.ts

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>;