Bug Report Checklist
Description
I wanted to generate a dart lib for flutter with the provided swagger yaml config. The problem is, that some of the generated class names contain spaces which are not valid. After writing a fix for it (PR #5693), I used swagger to edit the yaml. Swagger suggests to use %20 instead of normal spaces inside $ref definition links because it's an URI (see docs). Now I got the problem, that some class names contain %20.
openapi-generator version
4.2.3
OpenAPI declaration file content or url
https://raw.githubusercontent.com/wbt-solutions/openproject_dart_sdk/master/openProject_swagger.yaml
Command line used for generation
I used the command java -jar .\openapi-generator-cli-4.2.3.jar generate -g dart -i openProject_swagger.yaml -o openproject_dart_sdk/ inside the Windows Powershell.
Steps to reproduce
Execute the command with the provided config and look for example in the model\work_package.dart.
Related issues/PRs
Haven't found any.
Suggest a fix
Properly decode the $ref attribute as URI.
Bug Report Checklist
Description
I wanted to generate a dart lib for flutter with the provided swagger yaml config. The problem is, that some of the generated class names contain spaces which are not valid. After writing a fix for it (PR #5693), I used swagger to edit the yaml. Swagger suggests to use
%20instead of normal spaces inside$refdefinition links because it's an URI (see docs). Now I got the problem, that some class names contain%20.openapi-generator version
4.2.3
OpenAPI declaration file content or url
https://raw.githubusercontent.com/wbt-solutions/openproject_dart_sdk/master/openProject_swagger.yaml
Command line used for generation
I used the command
java -jar .\openapi-generator-cli-4.2.3.jar generate -g dart -i openProject_swagger.yaml -o openproject_dart_sdk/inside the Windows Powershell.Steps to reproduce
Execute the command with the provided config and look for example in the model\work_package.dart.
Related issues/PRs
Haven't found any.
Suggest a fix
Properly decode the $ref attribute as URI.