Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

Fixed unique method name regexp #82

Closed sandragg closed 4 years ago

sandragg commented 4 years ago

Hi! I found a bug in methods naming. Assume you have two methods getUsers and getUser. Result of

/getUser[0-9]?/.test("getUsers")

is true. Thus, the method is considered as nonunique and has name getUser1.

Manweill commented 4 years ago

Thank you for this PR.