mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-11 00:21:18 +00:00
[CppRest] Overload toJson for bool in Modelbase (#5448)
* Add operationId in exception message * add number data type mapping * fix_issue5434
This commit is contained in:
@@ -43,6 +43,9 @@ web::json::value ModelBase::toJson( int64_t value )
|
||||
web::json::value ModelBase::toJson( double value )
|
||||
{
|
||||
return web::json::value::number(value);
|
||||
}
|
||||
web::json::value ModelBase::toJson(bool value) {
|
||||
return web::json::value::boolean(value);
|
||||
}
|
||||
|
||||
web::json::value ModelBase::toJson( std::shared_ptr<HttpContent> content )
|
||||
|
||||
Reference in New Issue
Block a user