openapi-modifier
Version:
This package allows you to automate the process of modifying OpenAPI specifications by applying a set of predefined rules
28 lines (27 loc) • 2.77 kB
TypeScript
/****************************************
* WARNING! This file is autogenerated. *
****************************************/
import { z } from 'zod';
import { configSchema as configSchema_1 } from "./change-content-type";
import { configSchema as configSchema_2 } from "./change-endpoints-basepath";
import { configSchema as configSchema_4 } from "./filter-by-content-type";
import { configSchema as configSchema_5 } from "./filter-endpoints";
import { configSchema as configSchema_7 } from "./merge-openapi-spec";
import { configSchema as configSchema_8 } from "./patch-component-schema";
import { configSchema as configSchema_9 } from "./patch-endpoint-parameter-schema";
import { configSchema as configSchema_10 } from "./patch-endpoint-request-body-schema";
import { configSchema as configSchema_11 } from "./patch-endpoint-response-schema";
import { configSchema as configSchema_12 } from "./patch-endpoint-schema";
import { configSchema as configSchema_13 } from "./remove-deprecated";
import { configSchema as configSchema_14 } from "./remove-max-items";
import { configSchema as configSchema_15 } from "./remove-min-items";
import { configSchema as configSchema_16 } from "./remove-operation-id";
import { configSchema as configSchema_17 } from "./remove-parameter";
import { configSchema as configSchema_18 } from "./remove-unused-components";
type BasePipelineRule<Rule extends string, RuleConfig extends object> = {
rule: Rule;
disabled?: boolean;
config?: RuleConfig;
};
export type AnyPipelineRule = BasePipelineRule<'change-content-type', z.infer<typeof configSchema_1>> | BasePipelineRule<'change-endpoints-basepath', z.infer<typeof configSchema_2>> | BasePipelineRule<'filter-by-content-type', z.infer<typeof configSchema_4>> | BasePipelineRule<'filter-endpoints', z.infer<typeof configSchema_5>> | BasePipelineRule<'merge-openapi-spec', z.infer<typeof configSchema_7>> | BasePipelineRule<'patch-component-schema', z.infer<typeof configSchema_8>> | BasePipelineRule<'patch-endpoint-parameter-schema', z.infer<typeof configSchema_9>> | BasePipelineRule<'patch-endpoint-request-body-schema', z.infer<typeof configSchema_10>> | BasePipelineRule<'patch-endpoint-response-schema', z.infer<typeof configSchema_11>> | BasePipelineRule<'patch-endpoint-schema', z.infer<typeof configSchema_12>> | BasePipelineRule<'remove-deprecated', z.infer<typeof configSchema_13>> | BasePipelineRule<'remove-max-items', z.infer<typeof configSchema_14>> | BasePipelineRule<'remove-min-items', z.infer<typeof configSchema_15>> | BasePipelineRule<'remove-operation-id', z.infer<typeof configSchema_16>> | BasePipelineRule<'remove-parameter', z.infer<typeof configSchema_17>> | BasePipelineRule<'remove-unused-components', z.infer<typeof configSchema_18>>;
export {};