UNPKG

openapi-modifier

Version:

This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules

34 lines (33 loc) 1.16 kB
import { RuleProcessorT } from '../../core/rules/processor-models'; import { z } from 'zod'; declare const configSchema: z.ZodObject<{ descriptor: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{ componentName: z.ZodString; correction: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { componentName: string; correction?: string | undefined; }, { componentName: string; correction?: string | undefined; }>]>>; patchMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"deepmerge">, z.ZodLiteral<"merge">]>>; schemaDiff: z.ZodOptional<z.ZodAny>; }, "strict", z.ZodTypeAny, { descriptor?: string | { componentName: string; correction?: string | undefined; } | undefined; patchMethod?: "deepmerge" | "merge" | undefined; schemaDiff?: any; }, { descriptor?: string | { componentName: string; correction?: string | undefined; } | undefined; patchMethod?: "deepmerge" | "merge" | undefined; schemaDiff?: any; }>; declare const processor: RuleProcessorT<typeof configSchema>; export default processor; export { configSchema };