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
Using any of the following configuration variables with python-flask generator results in the following error:
Exception in thread "main" java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
at org.openapitools.codegen.languages.AbstractPythonConnexionServerCodegen.processOpts(AbstractPythonConnexionServerCodegen.java:191)
at org.openapitools.codegen.DefaultGenerator.configureGeneratorProperties(DefaultGenerator.java:251)
at org.openapitools.codegen.DefaultGenerator.generate(DefaultGenerator.java:877)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:441)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Configuration Variables:
featureCORS
testsUsePythonSrcRoot
useNose
usePythonSrcRootInImports
According to config-help --generator-name python-flask output these all should be boolean.
openapi-generator version
Latest Docker image
openapi-generator-cli 6.0.0-SNAPSHOT
commit : 6f37409
built : 2022-03-10T08:57:57Z
OpenAPI declaration file content or url
openapi: "3.0.3"info:
title: Test python-flask generatorversion: "1.0.0"paths:
/test:
get:
responses:
"200":
description: OK
Bug Report Checklist
Description
Using any of the following configuration variables with
python-flask
generator results in the following error:Configuration Variables:
According to
config-help --generator-name python-flask
output these all should be boolean.openapi-generator version
Latest Docker image
OpenAPI declaration file content or url
Generation Details
Using this configuration file
And launching the Docker image:
Keeping any value in the configuration file still reproduces the problem.
Steps to reproduce
Just follow the steps above.
Related issues/PRs
Have not found any.
Suggest a fix
Nothing.
The text was updated successfully, but these errors were encountered: