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

[tcgc] default .access to "public" #925

Merged
merged 5 commits into from
May 31, 2024
Merged

[tcgc] default .access to "public" #925

merged 5 commits into from
May 31, 2024

Conversation

iscai-msft
Copy link
Contributor

@iscai-msft iscai-msft commented May 28, 2024

fixes #926

@azure-sdk
Copy link
Collaborator

azure-sdk commented May 28, 2024

All changed packages have been documented.

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

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

change default of .access on a model or enum to "public" instead of undefined

@azure-sdk
Copy link
Collaborator

@haolingdong-msft
Copy link
Member

Could we consider the anonymous model used in spread parameter in operation case? In this case, the model should be internal as users cannot see it. e.g.

  @post
  sendLong(
    ...LongRequest
  ): OkResponse;

Here SendLongRequest will be anonymous model and the access should be internal as it is not visible to user.

@iscai-msft
Copy link
Contributor Author

@haolingdong-msft @tadelesh is handling that in this PR

@iscai-msft iscai-msft requested a review from m-nash May 29, 2024 15:41
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.

[tcgc] default .access to "public" instead of undefined
8 participants