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
@@ -1393,6 +1435,12 @@ class BoxCommand extends Command {
1393
1435
return'json';
1394
1436
}
1395
1437
1438
+
// Raw API payloads are only intended for JSON output, so `--raw-json`
1439
+
// implicitly promotes the format to JSON without changing default behavior.
1440
+
if(this._wantsRawJsonOutput()){
1441
+
return'json';
1442
+
}
1443
+
1396
1444
if(this.flags.csv){
1397
1445
return'csv';
1398
1446
}
@@ -2214,6 +2262,14 @@ BoxCommand.flags = {
2214
2262
}),
2215
2263
};
2216
2264
2265
+
BoxCommand.rawJsonFlags=Object.freeze({
2266
+
'raw-json': Flags.boolean({
2267
+
description:
2268
+
'Output the raw API JSON response instead of the tsClient-normalized object fields. Added as a non-breaking compatibility flag for users who need JSON field names to match the API schema exactly. Implies --json.',
0 commit comments