mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
a199363153
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
12 lines
282 B
TypeScript
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>;
|