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

prevent tcgc versioning projection #745

Merged
merged 13 commits into from
May 6, 2024
Merged

prevent tcgc versioning projection #745

merged 13 commits into from
May 6, 2024

Conversation

tadelesh
Copy link
Member

@tadelesh tadelesh commented Apr 26, 2024

since autorest emitter needs to generate multiple version swagger, need to pass all to tcgc to prevent tcgc do the versioning projection to latest version.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 26, 2024

All changed packages have been documented.

  • @azure-tools/typespec-autorest
  • @azure-tools/typespec-client-generator-core
Show changes

@azure-tools/typespec-autorest - fix ✏️

prevent tcgc versioning projection

@azure-tools/typespec-client-generator-core - fix ✏️

allow callers of createSdkContext to ignore default version projection

@azure-sdk
Copy link
Collaborator

Copy link
Contributor

@iscai-msft iscai-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, @timotheeguerin are you ok with this change? Are there any other places we should add this code?

Background is: we decided for tcgc we are going to by default project to the last version, you can override this with flag api-version

@tadelesh tadelesh disabled auto-merge May 6, 2024 07:16
@tadelesh tadelesh enabled auto-merge May 6, 2024 07:52
@tadelesh tadelesh added this pull request to the merge queue May 6, 2024
Merged via the queue into main with commit dfa7150 May 6, 2024
21 checks passed
@tadelesh tadelesh deleted the autorest_update branch May 6, 2024 08: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.

4 participants