Skip to content

Commit 6ba43d9

Browse files
committed
Update default config
1 parent 5a21e68 commit 6ba43d9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ yarn openapi-codegen generate --input http://localhost:3001/docs-json --standalo
5151
--axiosRequestConfig Include Axios request config parameters in query hooks (default: false)
5252
--infiniteQueries Generate infinite queries for paginated API endpoints (default: false)
5353
--mutationEffects Add mutation effects options to mutation hooks (default: true)
54-
--parseRequestParams Add Zod parsing to API endpoints (default: false)
54+
--parseRequestParams Add Zod parsing to API endpoints (default: true)
5555
5656
--acl Generate ACL related files (default: true)
57-
--checkAcl Add ACL check to queries (default: false)
57+
--checkAcl Add ACL check to queries (default: true)
5858
5959
--standalone Generate any missing supporting classes/types, e.g., REST client class, React Query type extensions, etc. (default: false)
6060
--baseUrl (Requires `--standalone`) Base URL for the REST client; falls back to the OpenAPI spec if not provided

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@povio/openapi-codegen-cli",
3-
"version": "0.13.3",
3+
"version": "0.13.4",
44
"main": "./dist/index.js",
55
"bin": {
66
"openapi-codegen": "./dist/sh.js"

src/generators/const/options.const.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const DEFAULT_GENERATE_OPTIONS: GenerateOptions = {
3333
},
3434
},
3535
acl: true,
36-
checkAcl: false,
36+
checkAcl: true,
3737
standalone: false,
3838
baseUrl: "",
3939
abilityContextImportPath: TEMPLATE_IMPORTS.abilityContext.template,
@@ -48,7 +48,7 @@ export const DEFAULT_GENERATE_OPTIONS: GenerateOptions = {
4848
restClientImportPath: TEMPLATE_IMPORTS.appRestClient.template,
4949
errorHandlingImportPath: TEMPLATE_IMPORTS.errorHandling.template,
5050
removeOperationPrefixEndingWith: "Controller_",
51-
parseRequestParams: false,
51+
parseRequestParams: true,
5252
// Queries options
5353
queryTypesImportPath: TEMPLATE_IMPORTS.queryTypes.template,
5454
axiosRequestConfig: false,

0 commit comments

Comments
 (0)