File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/rtk-query-codegen-openapi/src Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export async function generateApi(
117117 useEnumType = false ,
118118 mergeReadWriteOnly = false ,
119119 httpResolverOptions,
120+ useUnknown = false ,
120121 } : GenerationOptions
121122) {
122123 const v3Doc = ( v3DocCache [ spec ] ??= await getV3Doc ( spec , httpResolverOptions ) ) ;
@@ -125,6 +126,7 @@ export async function generateApi(
125126 unionUndefined,
126127 useEnumType,
127128 mergeReadWriteOnly,
129+ useUnknown,
128130 } ) ;
129131
130132 // temporary workaround for https://github.com/oazapfts/oazapfts/issues/491
Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ export interface CommonOptions {
111111 * resolution mechanism will be used.
112112 */
113113 prettierConfigFile ?: string ;
114+ /**
115+ * default to false
116+ * If set to `true`, `unknown` will be used instead of `any` for empty schemas.
117+ */
118+ useUnknown ?: boolean ;
114119}
115120
116121export type TextMatcher = string | RegExp | ( string | RegExp ) [ ] ;
You can’t perform that action at this time.
0 commit comments