Skip to content

Commit 88d0dc5

Browse files
For non api objects, wrapped is false by default.
1 parent 4b28c3e commit 88d0dc5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public virtual Task MethodUrlExecute(object key)
333333
_procWorker.cleanup();
334334
int originalParameterCount = outputParameters.Count;
335335
RestProcess(_procWorker, outputParameters);
336-
bool wrapped = true;
336+
bool wrapped = false;
337337
wrapped = GetWrappedStatus(_procWorker, wrapped, outputParameters, parCount, originalParameterCount);
338338
return Serialize(outputParameters, formatParameters, wrapped);
339339
}
@@ -372,6 +372,10 @@ bool GetWrappedStatus(GXBaseObject worker, bool defaultWrapped, Dictionary<strin
372372
}
373373
}
374374
}
375+
if (originalParCount > 1 && Preferences.FlattenSingleApiOutput)
376+
{
377+
wrapped = true; //Ignore defaultWrapped parameter.
378+
}
375379
}
376380
}
377381
return wrapped;

0 commit comments

Comments
 (0)