UNPKG

openapi-modifier

Version:

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

46 lines (45 loc) 1.41 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]>>; parameterDescriptor: z.ZodOptional<z.ZodObject<{ name: z.ZodString; in: z.ZodUnion<[z.ZodLiteral<"query">, z.ZodLiteral<"header">, z.ZodLiteral<"path">, z.ZodLiteral<"cookie">]>; }, "strict", z.ZodTypeAny, { name: string; in: "path" | "query" | "header" | "cookie"; }, { name: string; in: "path" | "query" | "header" | "cookie"; }>>; }, "strict", z.ZodTypeAny, { endpointDescriptor?: string | { path: string; method: string; } | undefined; parameterDescriptor?: { name: string; in: "path" | "query" | "header" | "cookie"; } | undefined; }, { endpointDescriptor?: string | { path: string; method: string; } | undefined; parameterDescriptor?: { name: string; in: "path" | "query" | "header" | "cookie"; } | undefined; }>; declare const processor: RuleProcessorT<typeof configSchema>; export default processor; export { configSchema };