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
This bug issue is almost the same than the one I identified for Pistache server, see #638
For convenience, I decided to create a dedicated cpp-restsdk bug issue.
The compilation error looks like :
./client-ms2/gen-cpp/model/Body.cpp: In member function ‘virtual web::json::value com::bcom::amf::microservice::client::ms2::model::Body::toJson() const’:
./client-ms2/gen-cpp/model/Body.cpp:44:120: error: no matching function for call to ‘com::bcom::amf::microservice::client::ms2::model::Body::toJson(const com::bcom::amf::microservice::client::ms2::model::HttpContent&) const’
ty::conversions::to_string_t("binaryDataN2Information")] = ModelBase::toJson(m_BinaryDataN2Information);
^
openapi-generator version
Current master 3.2.3-SNAPSHOT
OpenAPI declaration file content or url
openapi: "3.0.0"info:
version: 1.0.0title: Check wrong generation of a body containing string/binary typedescription: Internal ref filename is check_binary_property.yamlservers:
- url: http://localhost:8080paths:
/check:
post:
summary: see titletags:
- Non UE N2 Message TransferoperationId: NonUeN2MessageTransferrequestBody:
content:
application/json:
schema:
type: objectproperties: # Request partsbinaryDataN2Information:
type: stringformat: binaryrequired: trueresponses:
'200':
description: Non UE N2 Message Transfer successfully initiated.content:
application/json:
schema:
$ref: '#/components/schemas/content'default:
description: Unexpected errorcomponents:
schemas:
Bytes:
format: bytetype: stringContent:
type: objectproperties:
type:
$ref: '#/components/schemas/Bytes'
type: string and format: binary is mapped to files in other languages. However, it seems this is not common; aspdotnetcore server and csharp client generation create code that compiles but does not work. Issue #1327 fixes this for aspdotnetcore, among other things. See issue #1381 just submitted for the same problem in the csharp client generation code.
Description
This bug issue is almost the same than the one I identified for Pistache server, see #638
For convenience, I decided to create a dedicated cpp-restsdk bug issue.
The compilation error looks like :
openapi-generator version
Current master 3.2.3-SNAPSHOT
OpenAPI declaration file content or url
Command line used for generation
Generate :
Compile :
Steps to reproduce
Generate & Compile
Related issues/PRs
#638
Suggest a fix/enhancement
Maybe a similar code than suggested (for the same method) in #638
The text was updated successfully, but these errors were encountered: