Discriminator not working as expected in TypeScript client #4326
Labels
duplicate
This issue or pull request already exists
enhancement
New feature or request
TypeScript
Pull requests that update Javascript code
I'm not sure if this is a bug or limitation of Kiota, or if there is something I have defined incorrectly in my OpenAPI specification, so apologies if this turns out to be the latter.
I have generated a TypeScript client with the following command from the OpenAPI specification included below
The resulting client is not behaving as expected
Instead, all of these calls are deemed valid. I think this is because the code output from Kiota does not include the
answerType
in the generatedSubmitTextAnswerRequest
andSubmitBooleanAnswerRequest
I would expect these types to include
answerType
to narrow the value to only the relevant answer type, but it's possible that I am simply misunderstanding how Kiota is intended to work in these scenarios.Any guidance would be appreciated
The text was updated successfully, but these errors were encountered: