-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix operation trait not applied correctly in Foundations.Operation #399
base: main
Are you sure you want to change the base?
Fix operation trait not applied correctly in Foundations.Operation #399
Conversation
All changed packages have been documented. |
TraitLocation.ApiVersionParameter | ||
>, | ||
...TraitProperties<VersionParameterTrait<ApiVersionParameter>, TraitLocation.ApiVersionParameter>, | ||
...TraitProperties<Traits, TraitLocation.Parameters>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so this was done on purpose because the addition of the trait parameters is done earlier in most cases.
You can try these changes at https://cadlplayground.z22.web.core.windows.net/typespec-azure/prs/399/ Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/typespec-azure/prs/399/ |
fix microsoft/typespec#2938
Problem seems to be that we tried to applied the request trait using the ApiVersion location so it wouldn't include trait that are meant to be included as request parameters