Skip to content
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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Mar 11, 2024

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

@timotheeguerin timotheeguerin changed the title Fix trait not applied correctly Fix operation trait not applied correctly in Foundations.Operation Mar 11, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 11, 2024

All changed packages have been documented.

TraitLocation.ApiVersionParameter
>,
...TraitProperties<VersionParameterTrait<ApiVersionParameter>, TraitLocation.ApiVersionParameter>,
...TraitProperties<Traits, TraitLocation.Parameters>,
Copy link
Member Author

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.

@azure-sdk
Copy link
Collaborator

@timotheeguerin timotheeguerin marked this pull request as draft March 11, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug][http] getHttpOperation can't find right contentTypes
2 participants