Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit c52cb81

Browse files
authored
Java, adds checker framework (#342)
* Checker framework added * Adds missing compilerArgs for the checker framework * Adds some needed annotations * Adds nullable annotation to getNewInstance object input * Adds and uses getClass method to protect against getting the class of the value null * Adds Nullable to arg input of KeywordValidator * Fixes type issues in JsonSchema.java * Adds Nullable return for KeywordValidator validate * Adds supression of seaierliazable class warnings * Adds @nullable as the return type of shcema getNewInstance with object input * Adds more nullable annotations * Updates FrozenMap to fix type issues * Fixes type issues in ListJsonschema * Fixes MapJsonSchema * Fixes type errors in AnyType/UnsetAnyType/NotAnyType schemas * Fixes type issue in RequiredValidator * Fixes type issues in RequiredValidator * Removes getConstraint from validators * Updates EnumValidator * Updates UniqueItemsValidator * Fixes EnumValidator by supressing the nullness check on set.contains * Fixes AdditionalPropertiesValidator * Fixes JsonSchemaFactory * Fixes getNewInstance for custom list schemas * Improves map schema getNewInstance * Improves outputtypes * Adds throws exceptions to property getters * Adds missing exception imports * Adds type checking protection for required and optional property getters * Adds NonNull annotation for single outptu types * Fixes throws signatures for getAdditionalProperty * Removes annotations from instanceof checks * Removes else condition from if when checking key type * Fixes type errors around property instantiation * Fixes list item instantiation type errors * Changes RuntimeExceptions to InvalidTypeExceptions, fixes NullSchemaTest error * Fixes ListSchemaTest * Fixes NumberSchemaTest * Fixes MapSchemaTest * Fixes TypeValidatorTest * Fixes JsonSchemaTest * Fixes RequiredValidatorTest * Fixes AnyTypeSchemaTest * FIxes ItemsValidatorTest * Fixes FormatValidatorTest * Fixes AdditionalPropertiesValidatorTest * Fixes ArrayTypeSchemaTest * Fixes PropertiesValidatorTest * Removes NonNull * Adds back one needed NonNull * Adds ObjectTypeSchemaTest * Adds Nullable to input types * Removes validate methods from list + map nterface and updates two tests * All type checks passing except for SimpleEntry issue * Removes test that has problem * Adds singletons to refed (extended) classes * Removes redundant casts * Stores EnumValue schema that includes calculated item types * Adds code to caluclate mapValuSchema for schema payload examples * Fixes AbstractMap.SimpleEntry types * Stops writing SimpleEntry type if there is only one entry * Adds CodegenSchema isNullableObject, improves new instance handling in custom list and map schemas * Better handling of nullable object in getNewInstance for map and list if schema exists * Updates enum validator to allow long to int value checking * Adds null checking in getNewInstance for map schemas * Regenerates java petstore * Fixes null detection for custom list schemas in getNewInstance * Adds FrozenListOfAnything.java + FrozenMapOfAnything.java * Fixes FrozenList/Map of anythint type, fixes getting of required/optional property where the type is the same as the map value * Fixes additional property fetching when the val type is the same as what's in the map * Removes raw types from Array/Map output type of input type * Adds null checking in property getter for optional + req props * Removes FrozenList/Map of anything classes * Adds null detection when getting additional property * Samples regen
1 parent ffc45df commit c52cb81

File tree

897 files changed

+19550
-10582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

897 files changed

+19550
-10582
lines changed

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,33 @@ AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsA
5959
### Method Summary
6060
| Modifier and Type | Method and Description |
6161
| ----------------- | ---------------------- |
62-
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map<String, Object>](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) |
62+
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map<String, ? extends @Nullable Object>](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) |
6363

6464
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput
6565
public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput<br>
66-
builder for `Map<String, Object>`
66+
builder for `Map<String, ? extends @Nullable Object>`
6767

6868
A class that builds the Map input type
6969

7070
## Input Map Keys
7171
| Key | Type | Description | Notes |
7272
| --- | ---- | ------------ | ----- |
73-
| **foo** | Object | | [optional] |
74-
| **bar** | Object | | [optional] |
73+
| **foo** | ? extends @Nullable Object | | [optional] |
74+
| **bar** | ? extends @Nullable Object | | [optional] |
7575
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
7676

7777
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMap
7878
public static class AdditionalpropertiesAllowsASchemaWhichShouldValidateMap<br>
79-
extends FrozenMap<String, Object>
79+
extends FrozenMap<String, @Nullable Object>
8080

8181
A class to store validated Map payloads
8282

8383
### Method Summary
8484
| Modifier and Type | Method and Description |
8585
| ----------------- | ---------------------- |
86-
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | of([Map<String, Object>](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) |
87-
| Object | foo()<br>[optional] |
88-
| Object | bar()<br>[optional] |
86+
| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | of([Map<String, ? extends @Nullable Object>](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) |
87+
| @Nullable Object | foo()<br>[optional] |
88+
| @Nullable Object | bar()<br>[optional] |
8989
| boolean | getAdditionalProperty(String name)<br>provides type safety for additional properties |
9090

9191
## Bar

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,34 @@ A schema class that validates payloads
3939
| static float | validate(float arg, SchemaConfiguration configuration) |
4040
| static double | validate(double arg, SchemaConfiguration configuration) |
4141
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
42-
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map<String, Object>](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) |
42+
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map<String, ? extends @Nullable Object>](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) |
4343
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
4444

4545
## AdditionalpropertiesAreAllowedByDefaultMapInput
4646
public class AdditionalpropertiesAreAllowedByDefaultMapInput<br>
47-
builder for `Map<String, Object>`
47+
builder for `Map<String, ? extends @Nullable Object>`
4848

4949
A class that builds the Map input type
5050

5151
## Input Map Keys
5252
| Key | Type | Description | Notes |
5353
| --- | ---- | ------------ | ----- |
54-
| **foo** | Object | | [optional] |
55-
| **bar** | Object | | [optional] |
54+
| **foo** | ? extends @Nullable Object | | [optional] |
55+
| **bar** | ? extends @Nullable Object | | [optional] |
5656
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
5757

5858
## AdditionalpropertiesAreAllowedByDefaultMap
5959
public static class AdditionalpropertiesAreAllowedByDefaultMap<br>
60-
extends FrozenMap<String, Object>
60+
extends FrozenMap<String, @Nullable Object>
6161

6262
A class to store validated Map payloads
6363

6464
### Method Summary
6565
| Modifier and Type | Method and Description |
6666
| ----------------- | ---------------------- |
67-
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of([Map<String, Object>](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) |
68-
| Object | foo()<br>[optional] |
69-
| Object | bar()<br>[optional] |
67+
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of([Map<String, ? extends @Nullable Object>](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) |
68+
| @Nullable Object | foo()<br>[optional] |
69+
| @Nullable Object | bar()<br>[optional] |
7070
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
7171

7272
## Bar

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -90,32 +90,32 @@ A schema class that validates payloads
9090
| static float | validate(float arg, SchemaConfiguration configuration) |
9191
| static double | validate(double arg, SchemaConfiguration configuration) |
9292
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
93-
| static [Schema0Map](#schema0map) | validate([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
93+
| static [Schema0Map](#schema0map) | validate([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
9494
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
9595

9696
## Schema0MapInput
9797
public class Schema0MapInput<br>
98-
builder for `Map<String, Object>`
98+
builder for `Map<String, ? extends @Nullable Object>`
9999

100100
A class that builds the Map input type
101101

102102
## Input Map Keys
103103
| Key | Type | Description | Notes |
104104
| --- | ---- | ------------ | ----- |
105-
| **foo** | Object | | [optional] |
105+
| **foo** | ? extends @Nullable Object | | [optional] |
106106
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
107107

108108
## Schema0Map
109109
public static class Schema0Map<br>
110-
extends FrozenMap<String, Object>
110+
extends FrozenMap<String, @Nullable Object>
111111

112112
A class to store validated Map payloads
113113

114114
### Method Summary
115115
| Modifier and Type | Method and Description |
116116
| ----------------- | ---------------------- |
117-
| static [Schema0Map](#schema0map) | of([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
118-
| Object | foo()<br>[optional] |
117+
| static [Schema0Map](#schema0map) | of([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
118+
| @Nullable Object | foo()<br>[optional] |
119119
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
120120

121121
## Foo

samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ A schema class that validates payloads
6868
| static float | validate(float arg, SchemaConfiguration configuration) |
6969
| static double | validate(double arg, SchemaConfiguration configuration) |
7070
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
71-
| static [Schema1Map](#schema1map) | validate([Map<String, Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
71+
| static [Schema1Map](#schema1map) | validate([Map<String, ? extends @Nullable Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
7272
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
7373

7474
## Schema1MapInput
7575
public class Schema1MapInput<br>
76-
builder for `Map<String, Object>`
76+
builder for `Map<String, ? extends @Nullable Object>`
7777

7878
A class that builds the Map input type
7979

@@ -85,14 +85,14 @@ A class that builds the Map input type
8585

8686
## Schema1Map
8787
public static class Schema1Map<br>
88-
extends FrozenMap<String, Object>
88+
extends FrozenMap<String, @Nullable Object>
8989

9090
A class to store validated Map payloads
9191

9292
### Method Summary
9393
| Modifier and Type | Method and Description |
9494
| ----------------- | ---------------------- |
95-
| static [Schema1Map](#schema1map) | of([Map<String, Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
95+
| static [Schema1Map](#schema1map) | of([Map<String, ? extends @Nullable Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
9696
| String | foo()<br> |
9797
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
9898

@@ -128,12 +128,12 @@ A schema class that validates payloads
128128
| static float | validate(float arg, SchemaConfiguration configuration) |
129129
| static double | validate(double arg, SchemaConfiguration configuration) |
130130
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
131-
| static [Schema0Map](#schema0map) | validate([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
131+
| static [Schema0Map](#schema0map) | validate([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
132132
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
133133

134134
## Schema0MapInput
135135
public class Schema0MapInput<br>
136-
builder for `Map<String, Object>`
136+
builder for `Map<String, ? extends @Nullable Object>`
137137

138138
A class that builds the Map input type
139139

@@ -145,14 +145,14 @@ A class that builds the Map input type
145145

146146
## Schema0Map
147147
public static class Schema0Map<br>
148-
extends FrozenMap<String, Object>
148+
extends FrozenMap<String, @Nullable Object>
149149

150150
A class to store validated Map payloads
151151

152152
### Method Summary
153153
| Modifier and Type | Method and Description |
154154
| ----------------- | ---------------------- |
155-
| static [Schema0Map](#schema0map) | of([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
155+
| static [Schema0Map](#schema0map) | of([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
156156
| long | bar()<br> |
157157
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
158158

samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ A schema class that validates payloads
4848
| static float | validate(float arg, SchemaConfiguration configuration) |
4949
| static double | validate(double arg, SchemaConfiguration configuration) |
5050
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
51-
| static [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | validate([Map<String, Object>](#allofwithbaseschemamapinput) arg, SchemaConfiguration configuration) |
51+
| static [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | validate([Map<String, ? extends @Nullable Object>](#allofwithbaseschemamapinput) arg, SchemaConfiguration configuration) |
5252
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
5353

5454
## AllofWithBaseSchemaMapInput
5555
public class AllofWithBaseSchemaMapInput<br>
56-
builder for `Map<String, Object>`
56+
builder for `Map<String, ? extends @Nullable Object>`
5757

5858
A class that builds the Map input type
5959

@@ -65,14 +65,14 @@ A class that builds the Map input type
6565

6666
## AllofWithBaseSchemaMap
6767
public static class AllofWithBaseSchemaMap<br>
68-
extends FrozenMap<String, Object>
68+
extends FrozenMap<String, @Nullable Object>
6969

7070
A class to store validated Map payloads
7171

7272
### Method Summary
7373
| Modifier and Type | Method and Description |
7474
| ----------------- | ---------------------- |
75-
| static [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | of([Map<String, Object>](#allofwithbaseschemamapinput) arg, SchemaConfiguration configuration) |
75+
| static [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | of([Map<String, ? extends @Nullable Object>](#allofwithbaseschemamapinput) arg, SchemaConfiguration configuration) |
7676
| long | bar()<br> |
7777
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
7878

@@ -108,12 +108,12 @@ A schema class that validates payloads
108108
| static float | validate(float arg, SchemaConfiguration configuration) |
109109
| static double | validate(double arg, SchemaConfiguration configuration) |
110110
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
111-
| static [Schema1Map](#schema1map) | validate([Map<String, Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
111+
| static [Schema1Map](#schema1map) | validate([Map<String, ? extends @Nullable Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
112112
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
113113

114114
## Schema1MapInput
115115
public class Schema1MapInput<br>
116-
builder for `Map<String, Object>`
116+
builder for `Map<String, ? extends @Nullable Object>`
117117

118118
A class that builds the Map input type
119119

@@ -125,14 +125,14 @@ A class that builds the Map input type
125125

126126
## Schema1Map
127127
public static class Schema1Map<br>
128-
extends FrozenMap<String, Object>
128+
extends FrozenMap<String, @Nullable Object>
129129

130130
A class to store validated Map payloads
131131

132132
### Method Summary
133133
| Modifier and Type | Method and Description |
134134
| ----------------- | ---------------------- |
135-
| static [Schema1Map](#schema1map) | of([Map<String, Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
135+
| static [Schema1Map](#schema1map) | of([Map<String, ? extends @Nullable Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
136136
| Void | baz()<br> |
137137
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
138138

@@ -168,12 +168,12 @@ A schema class that validates payloads
168168
| static float | validate(float arg, SchemaConfiguration configuration) |
169169
| static double | validate(double arg, SchemaConfiguration configuration) |
170170
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
171-
| static [Schema0Map](#schema0map) | validate([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
171+
| static [Schema0Map](#schema0map) | validate([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
172172
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
173173

174174
## Schema0MapInput
175175
public class Schema0MapInput<br>
176-
builder for `Map<String, Object>`
176+
builder for `Map<String, ? extends @Nullable Object>`
177177

178178
A class that builds the Map input type
179179

@@ -185,14 +185,14 @@ A class that builds the Map input type
185185

186186
## Schema0Map
187187
public static class Schema0Map<br>
188-
extends FrozenMap<String, Object>
188+
extends FrozenMap<String, @Nullable Object>
189189

190190
A class to store validated Map payloads
191191

192192
### Method Summary
193193
| Modifier and Type | Method and Description |
194194
| ----------------- | ---------------------- |
195-
| static [Schema0Map](#schema0map) | of([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
195+
| static [Schema0Map](#schema0map) | of([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
196196
| String | foo()<br> |
197197
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
198198

samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ A schema class that validates payloads
6868
| static float | validate(float arg, SchemaConfiguration configuration) |
6969
| static double | validate(double arg, SchemaConfiguration configuration) |
7070
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
71-
| static [Schema1Map](#schema1map) | validate([Map<String, Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
71+
| static [Schema1Map](#schema1map) | validate([Map<String, ? extends @Nullable Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
7272
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
7373

7474
## Schema1MapInput
7575
public class Schema1MapInput<br>
76-
builder for `Map<String, Object>`
76+
builder for `Map<String, ? extends @Nullable Object>`
7777

7878
A class that builds the Map input type
7979

@@ -85,14 +85,14 @@ A class that builds the Map input type
8585

8686
## Schema1Map
8787
public static class Schema1Map<br>
88-
extends FrozenMap<String, Object>
88+
extends FrozenMap<String, @Nullable Object>
8989

9090
A class to store validated Map payloads
9191

9292
### Method Summary
9393
| Modifier and Type | Method and Description |
9494
| ----------------- | ---------------------- |
95-
| static [Schema1Map](#schema1map) | of([Map<String, Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
95+
| static [Schema1Map](#schema1map) | of([Map<String, ? extends @Nullable Object>](#schema1mapinput) arg, SchemaConfiguration configuration) |
9696
| String | foo()<br> |
9797
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
9898

@@ -128,12 +128,12 @@ A schema class that validates payloads
128128
| static float | validate(float arg, SchemaConfiguration configuration) |
129129
| static double | validate(double arg, SchemaConfiguration configuration) |
130130
| static boolean | validate(boolean arg, SchemaConfiguration configuration) |
131-
| static [Schema0Map](#schema0map) | validate([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
131+
| static [Schema0Map](#schema0map) | validate([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
132132
| FrozenList<Object> | validate(List<Object> arg, SchemaConfiguration configuration) |
133133

134134
## Schema0MapInput
135135
public class Schema0MapInput<br>
136-
builder for `Map<String, Object>`
136+
builder for `Map<String, ? extends @Nullable Object>`
137137

138138
A class that builds the Map input type
139139

@@ -145,14 +145,14 @@ A class that builds the Map input type
145145

146146
## Schema0Map
147147
public static class Schema0Map<br>
148-
extends FrozenMap<String, Object>
148+
extends FrozenMap<String, @Nullable Object>
149149

150150
A class to store validated Map payloads
151151

152152
### Method Summary
153153
| Modifier and Type | Method and Description |
154154
| ----------------- | ---------------------- |
155-
| static [Schema0Map](#schema0map) | of([Map<String, Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
155+
| static [Schema0Map](#schema0map) | of([Map<String, ? extends @Nullable Object>](#schema0mapinput) arg, SchemaConfiguration configuration) |
156156
| long | bar()<br> |
157157
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
158158

samples/client/3_0_3_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,29 @@ ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList validatedPayload =
5656
### Method Summary
5757
| Modifier and Type | Method and Description |
5858
| ----------------- | ---------------------- |
59-
| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | validate([List<Object>](#arraytypematchesarrayslistinput) arg, SchemaConfiguration configuration) |
59+
| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | validate([List<? extends @Nullable Object>](#arraytypematchesarrayslistinput) arg, SchemaConfiguration configuration) |
6060

6161
## ArrayTypeMatchesArraysListInput
6262
public class ArrayTypeMatchesArraysListInput<br>
63-
builder for `List<Object>`
63+
builder for `List<? extends @Nullable Object>`
6464

6565
A class that builds the List input type
6666

6767
## Input List Items
6868
List Item Type | Description | Notes
6969
-------------------- | ------------- | -------------
70-
Object | |
70+
? extends @Nullable Object | |
7171

7272
## ArrayTypeMatchesArraysList
7373
public class ArrayTypeMatchesArraysList<br>
74-
extends `FrozenList<Object>`
74+
extends `FrozenList<@Nullable Object>`
7575

7676
A class to store validated List payloads
7777

7878
### Method Summary
7979
| Modifier and Type | Method and Description |
8080
| ----------------- | ---------------------- |
81-
| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | of([List<Object>](#arraytypematchesarrayslistinput) arg, SchemaConfiguration configuration) |
81+
| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | of([List<? extends @Nullable Object>](#arraytypematchesarrayslistinput) arg, SchemaConfiguration configuration) |
8282

8383
## Items
8484
public static class Items<br>

samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch
3737
3838
// int validation
3939
int validatedPayload = EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1.validate(
40-
0,
40+
0L,
4141
configuration
4242
);
4343
```

0 commit comments

Comments
 (0)