You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceSubObject2extendsApi.IndependentObject{/** * Value for discriminator in Api.SubObject2 */thisProperty: false;}interfaceIndependentObject{otherProperty2?: string;}
As you can see, IndependentObject is now missing a declaration for thisProperty. It should look like:
Yields:
interfaceSubObject2extendsApi.IndependentObject{/** * Value for discriminator in Api.SubObject2 */thisProperty: false;}interfaceIndependentObject{thisProperty: boolean;otherProperty2?: string;}
Note: Generation appears to work in typescript-fetch-client-generator2.
The text was updated successfully, but these errors were encountered:
Sholto
changed the title
Typescript fetch node client generator error
Typescript fetch node client generator discriminator issue
Apr 5, 2024
When an object is extended and that objected has a discriminator, the field that acts as the discriminator is removed from the object.
To illustrate:
Yields:
As you can see, IndependentObject is now missing a declaration for
thisProperty
. It should look like:Yields:
Note: Generation appears to work in
typescript-fetch-client-generator2
.The text was updated successfully, but these errors were encountered: