Commit 790f359
authored
Serialize Annotation object with all required fields even empty (#110)
* Serialize Annotation object with all required fields even empty
Having JsonInclude:NON_EMPTY removes empty fields (e.g., "")
When the required fields are removed, API calls fail due to missing
fields in the request.
Let's use less restrictive JsonInclude:NON_ABSENT annotation, which
removes only null fields. Required fields are anyway non-nullable.1 parent d0c05a4 commit 790f359
File tree
2 files changed
+17
-4
lines changed- src
- main/java/com/spotify/github/v3/checks
- test/java/com/spotify/github/v3/checks
2 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
| |||
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
69 | 82 | | |
0 commit comments