Open turkenh opened 6 years ago
Yaml element responsible for this error:
type: string
format: byte
Is there any known workaround?
I opened a PR to fix this but a work-around is to include --type-mappings ByteArray=str
in the command line arguments when using the CLI.
Description
Getting the following error while trying to run generated server stub for kubernetes apiserver with python flask:
Swagger-codegen version
2.3.0
Swagger declaration file content or url
https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
What I understand is there should be a file named byte_array.py under swagger_server/models/ defining ByteArray type. But there is no such a file.