feat(rust): allow more granular Rust integer types and cleaned up clippy warnings#12479
Merged
wing328 merged 5 commits intoOpenAPITools:masterfrom Jul 9, 2022
Merged
feat(rust): allow more granular Rust integer types and cleaned up clippy warnings#12479wing328 merged 5 commits intoOpenAPITools:masterfrom
wing328 merged 5 commits intoOpenAPITools:masterfrom
Conversation
Member
|
LGTM. Thanks for the enhancement. |
Contributor
|
Sample up to date test failed in CI for this PR |
Contributor
|
I am fixing it in: |
wing328
reviewed
Jul 10, 2022
| public String toParamName(String name) { | ||
| return toVarName(name); | ||
| // $ref appears to be all uppercase which is contrary to rustfmt practice so lowercase parameters | ||
| return toVarName(name.toLowerCase(Locale.ROOT)); |
Member
There was a problem hiding this comment.
This result in change of variable name (e.g. pet_id => petid): https://github.com/OpenAPITools/openapi-generator/pull/12817/files
I'll file a PR to fix it by remove https://github.com/OpenAPITools/openapi-generator/pull/12479/files#diff-8daa2cc862ff0a63dd72dac551951b1bb07675e3cc0609a6dea55d2e85492520R440 instead.
5 tasks
Member
|
Thanks @spacether |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
minimumandmaximumare both setfalseminimumis defined and non-negativefalse$refwas being upper cased@frol
@farcaller
@richardwhiuk
@paladinzh
PR checklist
master(6.0.1) (patch release),6.1.x(breaking changes with fallbacks),7.0.x(breaking changes without fallbacks)