Skip to content

Conversation

Kludgy4
Copy link

@Kludgy4 Kludgy4 commented Aug 1, 2025

Beforehand the discriminator was not added to deserialised models which created errors in the generated code which expects the discriminator value.

Also when discriminated unions are serialised they should have the discriminator value in the transport layer.

@Kludgy4
Copy link
Author

Kludgy4 commented Aug 1, 2025

@microsoft-github-policy-service agree

@microsoft-github-policy-service microsoft-github-policy-service bot added the stale Mark a PR that hasn't been recently updated and will be closed. label Aug 31, 2025
Copy link
Contributor

Hi @@Kludgy4. Your PR has had no update for 30 days and it is marked as a stale PR. If it is not updated within 30 days, the PR will automatically be closed. If you want to refresh the PR, please remove the stale label.

@joheredi
Copy link
Member

Hi @Kludgy4, thanks for the PR! To get a clearer picture of the issue and proposed fix, would you mind providing the spec or an equivalent example that demonstrates the discriminated union scenario you’re fixing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:js Issue for the JS client emitter: @typespec/http-client-js stale Mark a PR that hasn't been recently updated and will be closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants