Skip to content

prevent tcgc versioning projection#745

Merged
tadelesh merged 13 commits intomainfrom
autorest_update
May 6, 2024
Merged

prevent tcgc versioning projection#745
tadelesh merged 13 commits intomainfrom
autorest_update

Conversation

@tadelesh
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

Copy link
Copy Markdown
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

Comment thread packages/typespec-autorest/src/openapi.ts Outdated
Comment thread packages/typespec-client-generator-core/src/decorators.ts Outdated
Comment thread packages/typespec-client-generator-core/src/decorators.ts Outdated
@iscai-msft iscai-msft enabled auto-merge April 30, 2024 15:59
@iscai-msft iscai-msft disabled auto-merge April 30, 2024 16:00
@iscai-msft iscai-msft enabled auto-merge April 30, 2024 20:22
@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
@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