@povio/openapi-codegen-cli 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generators/core/endpoints/getEndpointBody.d.ts +2 -1
- package/dist/generators/core/endpoints/getEndpointParameter.d.ts +2 -1
- package/dist/generators/utils/js.utils.d.ts +1 -0
- package/dist/generators/utils/openapi.utils.d.ts +1 -0
- package/dist/generators/utils/zod-schema.utils.d.ts +1 -0
- package/dist/index.js +37 -37
- package/dist/sh.js +57 -57
- package/package.json +1 -1
|
@@ -2,10 +2,11 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
2
2
|
import { EndpointParameter } from "src/generators/types/endpoint";
|
|
3
3
|
import { GenerateOptions } from "src/generators/types/options";
|
|
4
4
|
import { SchemaResolver } from "../SchemaResolver.class";
|
|
5
|
-
export declare function getEndpointBody({ resolver, operation, operationName, tag, options, }: {
|
|
5
|
+
export declare function getEndpointBody({ resolver, operation, operationName, isUniqueOperationName, tag, options, }: {
|
|
6
6
|
resolver: SchemaResolver;
|
|
7
7
|
operation: OpenAPIV3.OperationObject;
|
|
8
8
|
operationName: string;
|
|
9
|
+
isUniqueOperationName: boolean;
|
|
9
10
|
tag: string;
|
|
10
11
|
options: GenerateOptions;
|
|
11
12
|
}): {
|
|
@@ -2,10 +2,11 @@ import { OpenAPIV3 } from "openapi-types";
|
|
|
2
2
|
import { EndpointParameter } from "src/generators/types/endpoint";
|
|
3
3
|
import { GenerateOptions } from "src/generators/types/options";
|
|
4
4
|
import { SchemaResolver } from "../SchemaResolver.class";
|
|
5
|
-
export declare function getEndpointParameter({ resolver, param, operationName, tag, options, }: {
|
|
5
|
+
export declare function getEndpointParameter({ resolver, param, operationName, isUniqueOperationName, tag, options, }: {
|
|
6
6
|
resolver: SchemaResolver;
|
|
7
7
|
param: OpenAPIV3.ReferenceObject | OpenAPIV3.ParameterObject;
|
|
8
8
|
operationName: string;
|
|
9
|
+
isUniqueOperationName: boolean;
|
|
9
10
|
tag: string;
|
|
10
11
|
options: GenerateOptions;
|
|
11
12
|
}): EndpointParameter | undefined;
|
|
@@ -31,6 +31,7 @@ export declare function getUniqueOperationName({ path, method, operation, openAp
|
|
|
31
31
|
openApiDoc: OpenAPIV3.Document;
|
|
32
32
|
options: GenerateOptions;
|
|
33
33
|
}): string;
|
|
34
|
+
export declare function isUniqueOperationNameWithoutSplitByTags(operationName: string, openApiDoc: OpenAPIV3.Document, options: GenerateOptions): boolean;
|
|
34
35
|
export declare function formatTag(tag: string): string;
|
|
35
36
|
export declare function getOperationTag(operation: OpenAPIV3.OperationObject, options: GenerateOptions): string;
|
|
36
37
|
/** @example turns `/media-objects/{id}` into `MediaObjectsById` */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const getZodSchemaName: (name: string, schemaSuffix: string) => string;
|
|
2
2
|
export declare const isNamedZodSchema: (schema: string) => boolean;
|
|
3
|
+
export declare const getZodSchemaOperationName: (operationName: string, isUniqueOperationName: boolean, tag: string) => string;
|
|
3
4
|
export declare const getBodyZodSchemaName: (operationName: string) => string;
|
|
4
5
|
export declare const getParamZodSchemaName: (operationName: string, paramName: string) => string;
|
|
5
6
|
export declare const getMainResponseZodSchemaName: (operationName: string) => string;
|