loopbackio / loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.
https://loopback.io
Other
4.97k stars 1.07k forks source link

fix: build method parameters while generating controller #10579

Open aaqilniz opened 5 months ago

aaqilniz commented 5 months ago

With my PR here, I enabled the openapi generator to create the controller. That implementation has a bug that ultimately generates buggy controller code in case there is a method parameter with a hyphen (e.g. access-token).

This PR fixes that by properly building the parameter.

Checklist

👉 Check out how to submit a PR 👈

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9597053115

Details


Totals Coverage Status
Change from base Build 9587353604: 0.0%
Covered Lines: 9566
Relevant Lines: 12465

💛 - Coveralls