UNPKG

openapi-modifier

Version:

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

8 lines (7 loc) 442 B
import { z } from 'zod'; import { LoggerI } from '../../../logger/interface'; import { patchMethodConfigSchema, openAPISchemaConfigSchema } from '../config'; type PatchMethod = z.infer<typeof patchMethodConfigSchema>; type OpenAPISchema = z.infer<typeof openAPISchemaConfigSchema>; export declare const patchSchema: (logger: LoggerI, sourceSchema: OpenAPISchema, method: PatchMethod, ...otherSchemas: Array<OpenAPISchema>) => any; export {};