Skip to content

NO-ISSUE: Fix form param keys for openapi-generator 7.21.0#823

Draft
mokuzon wants to merge 3 commits intorenovate/openapi-generator-versionfrom
users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params
Draft

NO-ISSUE: Fix form param keys for openapi-generator 7.21.0#823
mokuzon wants to merge 3 commits intorenovate/openapi-generator-versionfrom
users/mokuson/NO-ISSUE/fix-openapi-7.21-form-params

Conversation

@mokuzon
Copy link
Copy Markdown

@mokuzon mokuzon commented Apr 21, 2026

resolve #810

Summary

  • openapi-generator 7.21.0 changed the PHP api.mustache template to use {{paramName}} (camelCase) as form data keys in FormDataProcessor::prepare(), instead of {{baseName}} (snake_case)
  • This causes incorrect request bodies (e.g. grantType=client_credentials instead of grant_type=client_credentials), breaking all form-based endpoints
  • Add a custom api.mustache override with a single-line fix: '{{baseName}}' instead of '{{paramName}}'

Test plan

  • Ran python generate-code.py with 7.21.0 locally and check diff of auto generated codes
  • All 23 tests pass (674 assertions), including the previously failing issueStatelessChannelToken tests

renovate Bot and others added 3 commits April 20, 2026 16:34
openapi-generator 7.21.0 changed the PHP template to use
paramName (camelCase) as form data keys instead of baseName
(snake_case). This causes incorrect request bodies like
"grantType=client_credentials" instead of the expected
"grant_type=client_credentials".

Override the default api.mustache with a single fix: use
{{baseName}} instead of {{paramName}} in FormDataProcessor
prepare() calls.
@mokuzon mokuzon marked this pull request as draft April 21, 2026 06:28
@renovate renovate Bot force-pushed the renovate/openapi-generator-version branch from 6d2ab46 to 610fd0b Compare April 27, 2026 05:23
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.

1 participant