0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/modules/manager/ocb/schema.ts

22 lines
558 B
TypeScript

import { z } from 'zod';
const Entry = z.object({
gomod: z.string(),
});
const ModuleSchema = z.array(Entry).optional();
export type Module = z.infer<typeof ModuleSchema>;
export const OCBConfigSchema = z.object({
dist: z.object({
otelcol_version: z.string().optional(),
module: z.string().optional(),
version: z.string().optional(),
}),
extensions: ModuleSchema,
exporters: ModuleSchema,
receivers: ModuleSchema,
processors: ModuleSchema,
connectors: ModuleSchema,
});
export type OCBConfig = z.infer<typeof OCBConfigSchema>;