openapi-modifier
Version:
This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules
37 lines (36 loc) • 1.18 kB
TypeScript
import { RuleProcessorT } from '../../core/rules/processor-models';
import { z } from 'zod';
declare const configSchema: z.ZodObject<{
endpointDescriptor: z.ZodOptional<z.ZodObject<{
path: z.ZodString;
method: z.ZodString;
}, "strict", z.ZodTypeAny, {
path: string;
method: string;
}, {
path: string;
method: string;
}>>;
endpointDescriptorCorrection: z.ZodOptional<z.ZodString>;
patchMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"deepmerge">, z.ZodLiteral<"merge">]>>;
schemaDiff: z.ZodOptional<z.ZodAny>;
}, "strict", z.ZodTypeAny, {
endpointDescriptor?: {
path: string;
method: string;
} | undefined;
endpointDescriptorCorrection?: string | undefined;
patchMethod?: "deepmerge" | "merge" | undefined;
schemaDiff?: any;
}, {
endpointDescriptor?: {
path: string;
method: string;
} | undefined;
endpointDescriptorCorrection?: string | undefined;
patchMethod?: "deepmerge" | "merge" | undefined;
schemaDiff?: any;
}>;
declare const processor: RuleProcessorT<typeof configSchema>;
export default processor;
export { configSchema };