Commit f8e987d
committed
🐛 Fix jsonl format ignoring -@ and -e flags
The jsonl format was always outputting `acl` and `xattr` fields as
empty arrays regardless of whether -e (acl) or -@ (xattr) flags were
specified. This was inconsistent with the `fflags` field behavior.
Now these fields use `skip_serializing_if` to omit them entirely when
not requested, matching the expected behavior.
Also added tests to verify that:
- `-e` flag includes acl field in jsonl output
- `-@` flag includes xattr field in jsonl output1 parent 0368929 commit f8e987d
3 files changed
Lines changed: 141 additions & 63 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
1127 | | - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1128 | 1130 | | |
1129 | 1131 | | |
1130 | 1132 | | |
| |||
1145 | 1147 | | |
1146 | 1148 | | |
1147 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
1148 | 1152 | | |
1149 | 1153 | | |
1150 | 1154 | | |
| |||
1180 | 1184 | | |
1181 | 1185 | | |
1182 | 1186 | | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1204 | 1206 | | |
1205 | 1207 | | |
1206 | 1208 | | |
| |||
0 commit comments