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

give a nonredundant name for templated instance model #393

Merged
merged 6 commits into from
Mar 13, 2024
Merged

Conversation

tadelesh
Copy link
Member

@tadelesh tadelesh commented Mar 11, 2024

resolve: #334

@azure-sdk
Copy link
Collaborator

All changed packages have been documented.

@azure-sdk
Copy link
Collaborator

"OperationState",
"Error",
"InnerError",
"ExportedUser",
"ErrorResponse",
"OperationStatus",
"OperationStatusExportedUserError",
Copy link
Contributor

Choose a reason for hiding this comment

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

i believe these are both core models, correct?
nit: I don't think we should modify the names of core models based off of templating. Not the biggest issue though, bc ideally no one should be generating with core models. If it makes the code much harder, no need to change your existing code

Copy link
Member Author

@tadelesh tadelesh Mar 12, 2024

Choose a reason for hiding this comment

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

AFAIK, OperationStatus is exported in Java and .NET. I don't think this will only happen for core model. This will happen when implicitly using templated model without @friendlyName in templated operation. And it is a possible usage for customer. Since .NET and Java need this nonredundant naming insurance, I prefer to add it in TCGC.

cc: @pshao25 @weidongxu-microsoft

@iscai-msft iscai-msft enabled auto-merge (squash) March 13, 2024 15:51
@iscai-msft iscai-msft merged commit 306390d into main Mar 13, 2024
14 checks passed
@iscai-msft iscai-msft deleted the template-name branch March 13, 2024 19:49
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.

Give a good name for templated model without @friendlyName
3 participants