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
My interpretation using this was that I only needed to use the oatpp::protobuf::Object instead of the oatpp::Object template as in
ENDPOINT_INFO(hasPointToPointLOS) {
info->summary = "Given two instances of a location and height on a map determine if the two points have a LOS vector between them withing the fidelity of the number_of_steps to examine the LOS vector.";
{
"status": "ERROR",
"code": 500,
"message": "[oatpp::parser::json::mapping::Deserializer::deserialize()]: Error. No deserialize method for type 'oatpp::protobuf::AbstractObject'"
}
So, I must be missing something, and am ready to move onto a different C++ Rest framework.
There is some plumbing concerning getting the oatpp::protobuf::Object to get all that toInterpretation fromInterpretation working, but I don't see it yet.
FYI, I have this built against 1.2.5 oatpp on Windows 10 using VS 2017 Pro.
The text was updated successfully, but these errors were encountered:
My interpretation using this was that I only needed to use the oatpp::protobuf::Object instead of the oatpp::Object template as in
ENDPOINT_INFO(hasPointToPointLOS) {
info->summary = "Given two instances of a location and height on a map determine if the two points have a LOS vector between them withing the fidelity of the number_of_steps to examine the LOS vector.";
}
ENDPOINT("POST", "hasPointToPointLOS", hasPointToPointLOS,
BODY_DTO(oatpp::protobuf::Object, requestDto))
{
return createDtoResponse(Status::CODE_200, m_terrainService.hasPointToPointLineOfSight(requestDto));
}
however the swagger shows
"Unknown Type: oatpp::protobuf::AbstractObject"
as my payload json, and if push through and type in a valid json object for my request object, say such as
{
"locationFrom": {
"latitude": 0.0,
"longitude": 0.0
},
"locationTo": {
"latitude": 0.0,
"longitude": 0.0
},
"numberOfSteps": 10
}
That leads to deserialization error
{
"status": "ERROR",
"code": 500,
"message": "[oatpp::parser::json::mapping::Deserializer::deserialize()]: Error. No deserialize method for type 'oatpp::protobuf::AbstractObject'"
}
So, I must be missing something, and am ready to move onto a different C++ Rest framework.
There is some plumbing concerning getting the oatpp::protobuf::Object to get all that toInterpretation fromInterpretation working, but I don't see it yet.
FYI, I have this built against 1.2.5 oatpp on Windows 10 using VS 2017 Pro.
The text was updated successfully, but these errors were encountered: