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(
117
117
useEnumType = false ,
118
118
mergeReadWriteOnly = false ,
119
119
httpResolverOptions,
120
+ useUnknown = false ,
120
121
} : GenerationOptions
121
122
) {
122
123
const v3Doc = ( v3DocCache [ spec ] ??= await getV3Doc ( spec , httpResolverOptions ) ) ;
@@ -125,6 +126,7 @@ export async function generateApi(
125
126
unionUndefined,
126
127
useEnumType,
127
128
mergeReadWriteOnly,
129
+ useUnknown,
128
130
} ) ;
129
131
130
132
// 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 {
111
111
* resolution mechanism will be used.
112
112
*/
113
113
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 ;
114
119
}
115
120
116
121
export type TextMatcher = string | RegExp | ( string | RegExp ) [ ] ;
You can’t perform that action at this time.
0 commit comments