https://typespec.io/docs/standard-library/discriminated-types/#inject-discriminator-inline It appears like discriminated unions don't work with the newer form with generating the js http client. Possibly related to https://github.com/microsoft/typespec/pull/6286/files? <img width="498" alt="Image" src="https://github.com/user-attachments/assets/0b8cc1e8-43fd-4ab2-960a-a8134ccc2029" /> <img width="1047" alt="Image" src="https://github.com/user-attachments/assets/507b8c06-5ec2-4813-b09b-43c0aa8dcf1a" /> [Playground Link](https://typespec.io/playground/?options=%7B%7D&sample=Discriminated+unions) This also causes issues. ``` @discriminated(#{envelope: "none"}) union Widget { heavy: WidgetBase, light: WidgetBase, } ``` <img width="729" alt="Image" src="https://github.com/user-attachments/assets/190f2d22-5b4e-4ff3-a80a-7f503d899019" />