-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug][http] getHttpOperation
can't find right contentTypes
#2938
Comments
I don't think that would be an issue with the http library, i think this is most likely the trait is not applying correctly |
If you look at this playground you can see that adding other header doesn't apply I think this is a long standing issue with trait not working correctly on And if you check the type graph the operation parameters doesn't have those properties |
So it seems bug of typespec-azure-core? If that, I feel OK to transfer the issue to typespec-azure repo. |
This problem is too deep into the traits making it I think impossible to fix without the complete rethinking of how traits work |
@markcowl linkt to trait redesign issues |
For the following tsp,
getHttpOperation
can't return type with right contentTypes:But for some template it can:
I guess there may be bug for specific template.
The text was updated successfully, but these errors were encountered: