@povio/openapi-codegen-cli 0.11.1 → 0.12.0
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/README.md +1 -0
- package/dist/commands/generate.d.ts +1 -1
- package/dist/index.js +36 -36
- package/dist/sh.js +51 -51
- package/package.json +1 -1
- package/src/generators/templates/endpoints.hbs +1 -1
- package/src/generators/templates/partials/endpoint-config.hbs +2 -2
- package/src/generators/templates/partials/endpoint-param-parse.hbs +1 -0
- package/src/generators/templates/zod.hbs +0 -1
- package/src/generators/templates/partials/endpoint-param-sorting.hbs +0 -1
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ yarn openapi-codegen generate --input http://localhost:3001/docs-json --standalo
|
|
|
50
50
|
--axiosRequestConfig Include Axios request config parameters in query hooks (default: false)
|
|
51
51
|
--infiniteQueries Generate infinite queries for paginated API endpoints (default: false)
|
|
52
52
|
--mutationEffects Add mutation effects options to mutation hooks (default: true)
|
|
53
|
+
--parseRequestParams Add Zod parsing to API endpoints (default: false)
|
|
53
54
|
|
|
54
55
|
--standalone Generate any missing supporting classes/types, e.g., REST client class, React Query type extensions, etc. (default: false)
|
|
55
56
|
--baseUrl (Requires `--standalone`) Base URL for the REST client; falls back to the OpenAPI spec if not provided
|
|
@@ -4,5 +4,5 @@ export type GenerateParams = {
|
|
|
4
4
|
monorepo: boolean;
|
|
5
5
|
prettier: boolean;
|
|
6
6
|
verbose: boolean;
|
|
7
|
-
} & Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "mutationEffects">;
|
|
7
|
+
} & Pick<GenerateOptions, "input" | "output" | "tsNamespaces" | "splitByTags" | "defaultTag" | "removeOperationPrefixEndingWith" | "importPath" | "extractEnums" | "standalone" | "baseUrl" | "replaceOptionalWithNullish" | "infiniteQueries" | "axiosRequestConfig" | "mutationEffects" | "parseRequestParams">;
|
|
8
8
|
export declare function generate({ input, excludeTags, monorepo, prettier, verbose, ...params }: GenerateParams): Promise<void>;
|