You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tiny PR fixes the spelling of an identifier that was incorrectly cased in a mustache template. The fix only affects a comment in the output, so it will make no runtime difference when consuming a generated client.
In the Python generator, the package name is available as {{packageName}}, but in src/main/resources/python/__init__apis.mustache, it was being referenced as {{packagename}}.
This produced incorrect output such as:
# In order to avoid this, import only the API that you directly need like:## from .api.my_api import MyApi
(note the missing package name)
The corrected output:
# In order to avoid this, import only the API that you directly need like:## from my_package.api.my_api import MyApi
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
For Windows users, please run the script in Git BASH.
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
Hi, the CI is giving problems in the "samples up-to-date" step.
The details reveal a problem with a completely unrelated file, so I don't think this is a problem on my end. Can someone check the status of this for me? thanks.
wing328
changed the title
[Ruby] Fix incorrectly capitalized mustache identifier in apis template[Python] Fix incorrectly capitalized mustache identifier in apis templateApr 5, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This tiny PR fixes the spelling of an identifier that was incorrectly cased in a mustache template. The fix only affects a comment in the output, so it will make no runtime difference when consuming a generated client.
In the Python generator, the package name is available as
{{packageName}}, but insrc/main/resources/python/__init__apis.mustache, it was being referenced as{{packagename}}.This produced incorrect output such as:
(note the missing package name)
The corrected output:
cc @cliffano@zlx@autopp
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.