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

Rename the inner method name with _methodName #2983

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MaryGao
Copy link
Member

@MaryGao MaryGao commented Jan 9, 2025

fixes #2985
When building operation interfaces the method get{Namespace} is only for inner usage and we should not export this method and it's better to add the underscore prefix to resolve pontential conflicts.

@@ -177,4 +177,8 @@ interface Budgets {
// the same name as Widgets.createOrReplace
@route("/widgets/createOrReplace")
op createOrReplace is ResourceOperations.LongRunningResourceCreateOrReplace<User>;

@get getBudgets(
Copy link
Member Author

Choose a reason for hiding this comment

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

@jiaodi could you add this case into our UT?

@MaryGao MaryGao marked this pull request as ready for review January 10, 2025 06:26
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.

Do not export the inner method to public
2 participants