You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating server controllers or services using the lb4 openapi generator from an OpenAPI specification containing query or path parameters with hyphens (kebab-case, like limit-number or status-code), the code generator incorrectly emits literal code containing hyphens (e.g., limit-number, status-code) directly inside the TypeScript method body call arguments instead of sanitizing/camelCasing them into valid TypeScript identifiers (limitNumber, statusCode).
This causes immediate compilation/syntax errors.
Steps to Reproduce
Create an OpenAPI 3.0 specification JSON file (openapi.json) with an endpoint having hyphenated query parameters:
The fix updates the OpenAPI generator logic to ensure parameter names are properly sanitized into camelCase identifiers (argName) before emitting method body invocation arguments, resolving the invalid TypeScript syntax when handling hyphenated parameters.
Activity
aaqilniz commentedon Nov 8, 2026
Here is a PR #10427 to address this issue.
The fix updates the OpenAPI generator logic to ensure parameter names are properly sanitized into
camelCaseidentifiers (argName) before emitting method body invocation arguments, resolving the invalid TypeScript syntax when handling hyphenated parameters.