|
1 | | ---- src/main/java/com/godiddy/api/client/openapi/model/DidDocumentController.java 2026-01-19 13:55:05.276890450 +0100 |
2 | | -+++ src/main/java/com/godiddy/api/client/openapi/model/DidDocumentController.java.changed 2026-01-19 13:53:22.947007764 +0100 |
3 | | -@@ -94,17 +94,17 @@ |
| 1 | +--- src/main/java/com/godiddy/api/client/openapi/model/DidDocumentController.java 2026-01-19 14:00:12.159445907 +0100 |
| 2 | ++++ src/main/java/com/godiddy/api/client/openapi/model/DidDocumentController.java.changed 2026-01-19 14:04:24.063072670 +0100 |
| 3 | +@@ -94,18 +94,18 @@ |
4 | 4 | try { |
5 | 5 | boolean attemptParsing = true; |
6 | 6 | // ensure that we respect type coercion as set on the client ObjectMapper |
|
16 | 16 | + attemptParsing |= ((List.class.equals(Float.class) || List.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); |
17 | 17 | + attemptParsing |= (List.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); |
18 | 18 | + attemptParsing |= (List.class.equals(String.class) && token == JsonToken.VALUE_STRING); |
| 19 | + attemptParsing |= (token == JsonToken.VALUE_NULL); |
19 | 20 | } |
20 | 21 | } |
21 | 22 | if (attemptParsing) { |
|
24 | 25 | // TODO: there is no validation against JSON schema constraints |
25 | 26 | // (min, max, enum, pattern...), this does not perform a strict JSON |
26 | 27 | // validation, which means the 'match' count may be higher than it should be. |
27 | | -@@ -232,7 +232,7 @@ |
| 28 | +@@ -234,7 +234,7 @@ |
28 | 29 | } |
29 | 30 |
|
30 | 31 | static { |
|
33 | 34 | schemas.put("String", String.class); |
34 | 35 | JSON.registerDescendants(DidDocumentController.class, Collections.unmodifiableMap(schemas)); |
35 | 36 | } |
36 | | -@@ -252,7 +252,7 @@ |
37 | | - */ |
38 | | - @Override |
39 | | - public void setActualInstance(Object instance) { |
| 37 | +@@ -259,7 +259,7 @@ |
| 38 | + return; |
| 39 | + } |
| 40 | + |
40 | 41 | - if (JSON.isInstanceOf(List<String>.class, instance, new HashSet<Class<?>>())) { |
41 | 42 | + if (JSON.isInstanceOf(List.class, instance, new HashSet<Class<?>>())) { |
42 | 43 | super.setActualInstance(instance); |
43 | 44 | return; |
44 | 45 | } |
45 | | -@@ -283,7 +283,7 @@ |
| 46 | +@@ -290,7 +290,7 @@ |
46 | 47 | * @return The actual instance of `List<String>` |
47 | 48 | * @throws ClassCastException if the instance is not `List<String>` |
48 | 49 | */ |
|
51 | 52 | return (List<String>)super.getActualInstance(); |
52 | 53 | } |
53 | 54 |
|
54 | | -@@ -338,12 +338,12 @@ |
| 55 | +@@ -345,12 +345,12 @@ |
55 | 56 | } |
56 | 57 | return joiner.toString(); |
57 | 58 | } |
|
0 commit comments