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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The Ada client generator generates incorrect code:
when a FreeFormObject is used,
when several path parameters are used
openapi-generator version
5.0.0-SNAPSHOT.
OpenAPI declaration file content or url
A partial example of URL with two path parameters:
paths:
'/converter/{format}/{target}':
post:
tags:
- convertersummary: Convert a text from one format to anotherdescription: ''operationId: convertparameters:
- name: formatin: pathdescription: The source Wiki formatrequired: trueschema:
type: stringenum:
- html
- markdown
- dotclear
- creole
- mediawiki
- name: targetin: pathdescription: The target Wiki formatrequired: trueschema:
type: string
Generation Details
The code generator generates the same index number for both path parameters (we can access only the first path parameter!!!)
The FreeFormObject generates code that does not compile.
Steps to reproduce
I'm using the following command:
openapi-generator generate --generator-name ada -i file.yaml --additional-properties projectName=todos --model-package Todos -o .
Related issues/PRs
Suggest a fix
I'll submit a pull to fix the above :-)
The text was updated successfully, but these errors were encountered:
* Fix#7594: [BUG][Ada] Incorrect client Ada code generated
- Fix the identification of path parameters
- Fix the model and client to support FreeFormObject
* update doc
* fix errors, update samples
Co-authored-by: Stephane Carrez <Stephane.Carrez@gmail.com>
Bug Report Checklist
Description
The Ada client generator generates incorrect code:
FreeFormObject
is used,openapi-generator version
5.0.0-SNAPSHOT.
OpenAPI declaration file content or url
A partial example of URL with two path parameters:
Generation Details
FreeFormObject
generates code that does not compile.Steps to reproduce
I'm using the following command:
Related issues/PRs
Suggest a fix
I'll submit a pull to fix the above :-)
The text was updated successfully, but these errors were encountered: