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

Support get common models for specific api version #700

Merged
merged 5 commits into from
Apr 19, 2024
Merged

Conversation

tadelesh
Copy link
Member

Config

  1. A new option api-version will be added to the TCGC context and should be configed in languages' tspconfig.yaml file.
  2. If the api-version is not set or set to latest, then all returns of TCGC APIs will be the information of latest API version.
  3. If the api-version is set to a specific version, then all returns of TCGC APIs will be the information of that API version. If the version is not existed, then a diagnostic warning will be passed to emitter and will fallback to latest version.
  4. If the api-version is set to all, then the returns of TCGC APIs will be the information of all API versions. Next part will describe how the versioning infomation is included in TCGC common models.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 19, 2024

All changed packages have been documented.

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

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

support get common models for specific api version, default to latest api version which may include breaking changes

@azure-sdk
Copy link
Collaborator

@iscai-msft iscai-msft added this pull request to the merge queue Apr 19, 2024
Merged via the queue into main with commit d61015f Apr 19, 2024
21 checks passed
@iscai-msft iscai-msft deleted the tcgc_api_version branch April 19, 2024 21:27
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.

3 participants