Repository navigation
Fix/handle initial digit of operation - #735
Merged
5 commits merged intoOct 27, 2022
Merged
5 commits merged into
5 commits merged into
Conversation
masu-mi
force-pushed
the
fix/handle-initial-digit-of-operationId
branch
from
September 2, 2022 05:17
072d4e4 to
62817e6
Compare
ghost
reviewed
Oct 7, 2022
| } | ||
| op.OperationID = op.OperationID | ||
| } else { | ||
| op.OperationID = ToCamelCase(op.OperationID) |
There was a problem hiding this comment.
Please see the typeNamePrefix function in utils.go - it can do something like this automatically, combined with SanitizeGoIdentity.
Contributor
Author
There was a problem hiding this comment.
Sorry for delay in my response, I've replaced it.
* stop direct writing for less confusion. * cd ./internal/test; go generate ./...
masu-mi
force-pushed
the
fix/handle-initial-digit-of-operationId
branch
3 times, most recently
from
October 27, 2022 08:38
6e4f3d8 to
5f1661b
Compare
adrianpk
pushed a commit
to foorester/oapi-codegen
that referenced
this pull request
Jan 16, 2024
* test: internal/test/issues/issue-head-digit-of-operation-id * fix: escape digit from head of operationId * chore: add issue.gen.go(head-digit-of-operation-id) * fix: use typeNamePrefix() to remove head digit * stop direct writing for less confusion. * cd ./internal/test; go generate ./... * chore: make generate with go 1.16.9
adrianpk
added a commit
to foorester/oapi-codegen
that referenced
this pull request
May 31, 2024
* test: internal/test/issues/issue-head-digit-of-operation-id * fix: escape digit from head of operationId * chore: add issue.gen.go(head-digit-of-operation-id) * fix: use typeNamePrefix() to remove head digit * stop direct writing for less confusion. * cd ./internal/test; go generate ./... * chore: make generate with go 1.16.9
This pull request was closed.
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.
Overview
resolve #734
changes
internal/test/issues/issue-head-digit-of-operation-iddirectory.codegen.GenerateResponseDefinitions()internal/test/issues/issue-head-digit-of-operation-id; go generate