We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f544d51 commit 30a4645Copy full SHA for 30a4645
src/parser.ts
@@ -262,6 +262,16 @@ function stripeTypeScriptInternalTypesSchema (type: any): any {
262
263
const schema: any = {}
264
Object.keys(type.schema).forEach((sch) => {
265
+ if (sch === 'schema' && type.schema[sch]) {
266
+ schema[sch] = schema[sch] || {}
267
+ Object.keys(type.schema[sch]).forEach((sch2) => {
268
+ const res = stripeTypeScriptInternalTypesSchema(type.schema[sch][sch2]);
269
+ if (res !== false) {
270
+ schema[sch][sch2] = res;
271
+ }
272
+ })
273
+ return
274
275
const res = stripeTypeScriptInternalTypesSchema(type.schema[sch])
276
277
if (res !== false) {
0 commit comments