Skip to content

fix: parameters starting with number#402

Merged
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
neglect-yp:fix-params-starting-with-number
Jul 23, 2021
Merged

fix: parameters starting with number#402
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
neglect-yp:fix-params-starting-with-number

Conversation

@neglect-yp
Copy link
Contributor

This PR fixes that generating server and client codes don't work if a parameter's name is starting with number.

The existing implementation seems to append a prefix "N" in the types generation, so I followed it.

@neglect-yp neglect-yp marked this pull request as draft July 10, 2021 17:52
@neglect-yp neglect-yp force-pushed the fix-params-starting-with-number branch from 8c4682d to 1e8867b Compare July 10, 2021 18:25
@neglect-yp neglect-yp marked this pull request as ready for review July 10, 2021 18:28
@deepmap-marcinr deepmap-marcinr merged commit 5f43277 into oapi-codegen:master Jul 23, 2021
vlastahajek pushed a commit to bonitoo-io/oapi-codegen that referenced this pull request Aug 9, 2021
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
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.

2 participants