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 f6ddda3 commit 9eba04aCopy full SHA for 9eba04a
src/helpers/ConstrainedTypes.ts
@@ -307,8 +307,7 @@ function addDiscriminatorTypeToUnionModel(
307
}
308
309
if (propertyTypes.size === 1) {
310
- constrainedModel.options.discriminator.type = propertyTypes
311
- .keys()
312
- .next().value as string | undefined;
+ constrainedModel.options.discriminator.type = propertyTypes.keys().next()
+ .value as string | undefined;
313
314
0 commit comments