Commit 60302f3
huo
fix: add omitempty support for list types with pointer_omitempty
When using use_struct_references: true with optional: pointer_omitempty,
list types like [String!] were not getting the omitempty tag because
the convertType function returned early for slice types, skipping the
pointer_omitempty handling logic.
This fix ensures that list types also respect the pointer_omitempty
configuration when the list itself is nullable.1 parent 5b0aabc commit 60302f3
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
243 | 256 | | |
244 | 257 | | |
245 | 258 | | |
| |||
0 commit comments