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
JSON element with {"type": "string", "format": "byte"} is being translated to unknown type 'ByteArray'. The ByteArray.h file being included as a result fails compilation. It appears like similar problems were fixed for Java, C#, and potentially other libraries.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
"key": {
"description": "key is the key in bytes. An empty key is not allowed.",
"type": "string",
"format": "byte"
},
The swagger JSON snippet above results in the following generated C++ snippet:
...
#include"ByteArray.h"
...
/// key is the key in bytes. An empty key is not allowed.
ByteArray getKey() const;
boolkeyIsSet() const;
voidunsetKey();
voidsetKey(ByteArray value);
This should probably be just string
Related issues/PRs
Similar issue for Java: #4824
Similar issue for C#: #3554
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered:
Description
JSON element with {"type": "string", "format": "byte"} is being translated to unknown type 'ByteArray'. The ByteArray.h file being included as a result fails compilation. It appears like similar problems were fixed for Java, C#, and potentially other libraries.
Swagger-codegen version
2.3.1
Swagger declaration file content or url
Command line used for generation
java -jar swagger-codegen-cli.jar generate -l cpprest -i example.yaml -o example/src/
Steps to reproduce
The swagger JSON snippet above results in the following generated C++ snippet:
This should probably be just string
Related issues/PRs
Similar issue for Java: #4824
Similar issue for C#: #3554
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: