forked from loafle/openapi-generator-original
[cpp-pistache]Add support for map (#1359)
* Add support for map * Add support for nested maps * Simplify Array and Map Helper * Use const reference wherever possible
This commit is contained in:
@@ -89,7 +89,7 @@ nlohmann::json User::toJson() const
|
||||
return val;
|
||||
}
|
||||
|
||||
void User::fromJson(nlohmann::json& val)
|
||||
void User::fromJson(const nlohmann::json& val)
|
||||
{
|
||||
if(val.find("id") != val.end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user