@povio/openapi-codegen-cli
Version:
**NOTE:** This CLI tool is primarily designed for use within our organization. The generated code output aligns with our internal template. If you are using this tool without our internal template, make sure to use it in **standalone** mode.
16 lines (15 loc) • 1.06 kB
TypeScript
export declare const getZodSchemaName: (name: string, schemaSuffix: string) => string;
export declare const getEnumZodSchemaName: (name: string, enumSuffix: string, schemaSuffix: string) => string;
export declare const isNamedZodSchema: (schema: string) => boolean;
export declare const isEnumZodSchema: (schema: string) => boolean;
export declare const getZodSchemaOperationName: (operationName: string, isUniqueOperationName: boolean, tag: string) => string;
export declare const getBodyZodSchemaName: (operationName: string) => string;
export declare const getParamZodSchemaName: (operationName: string, paramName: string) => string;
export declare const getMainResponseZodSchemaName: (operationName: string) => string;
export declare const getErrorResponseZodSchemaName: (operationName: string, statusCode: string) => string;
export declare function getResponseZodSchemaName({ statusCode, operationName, isUniqueOperationName, tag, }: {
statusCode: string;
operationName: string;
isUniqueOperationName: boolean;
tag: string;
}): string;