forked from loafle/openapi-generator-original
update c++ samples
This commit is contained in:
parent
87ea870f03
commit
0d1f562d13
@ -244,7 +244,7 @@ bool ModelBase::fromJson( const web::json::value& val, std::vector<T> &outVal )
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
if (val.is_array())
|
if (val.is_array())
|
||||||
{
|
{
|
||||||
for (const auto jitem : val.as_array())
|
for (const web::json::value & jitem : val.as_array())
|
||||||
{
|
{
|
||||||
T item;
|
T item;
|
||||||
ok &= fromJson(jitem, item);
|
ok &= fromJson(jitem, item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user