UNPKG

openapi-modifier

Version:

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

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