@@ -20,9 +20,9 @@ A class that contains necessary nested
20
20
| sealed interface | [ ItemsSchema.SecondAdditionalPropertyBoxed] ( #secondadditionalpropertyboxed ) <br > sealed interface for validated payloads |
21
21
| record | [ ItemsSchema.SecondAdditionalPropertyBoxedString] ( #secondadditionalpropertyboxedstring ) <br > boxed class to store validated String payloads |
22
22
| static class | [ ItemsSchema.SecondAdditionalProperty] ( #secondadditionalproperty ) <br > schema class |
23
- | sealed interface | [ ItemsSchema.AdditionalPropertyBoxed ] ( #additionalpropertyboxed ) <br > sealed interface for validated payloads |
24
- | record | [ ItemsSchema.AdditionalPropertyBoxedString ] ( #additionalpropertyboxedstring ) <br > boxed class to store validated String payloads |
25
- | static class | [ ItemsSchema.AdditionalProperty ] ( #additionalproperty ) <br > schema class |
23
+ | sealed interface | [ ItemsSchema.SomePropertyBoxed ] ( #somepropertyboxed ) <br > sealed interface for validated payloads |
24
+ | record | [ ItemsSchema.SomePropertyBoxedString ] ( #somepropertyboxedstring ) <br > boxed class to store validated String payloads |
25
+ | static class | [ ItemsSchema.SomeProperty ] ( #someproperty ) <br > schema class |
26
26
| sealed interface | [ ItemsSchema.NameBoxed] ( #nameboxed ) <br > sealed interface for validated payloads |
27
27
| record | [ ItemsSchema.NameBoxedString] ( #nameboxedstring ) <br > boxed class to store validated String payloads |
28
28
| static class | [ ItemsSchema.Name] ( #name ) <br > schema class |
@@ -79,7 +79,7 @@ ItemsSchema.ItemsSchemaMap validatedPayload =
79
79
new ItemsSchema.ItemsSchemaMapBuilder()
80
80
.name("a")
81
81
82
- .additionalProperty ("a")
82
+ .someProperty ("a")
83
83
84
84
.secondAdditionalProperty("a")
85
85
@@ -92,7 +92,7 @@ ItemsSchema.ItemsSchemaMap validatedPayload =
92
92
| Modifier and Type | Field and Description |
93
93
| ----------------- | ---------------------- |
94
94
| Set<Class<?>> | type = Set.of(Map.class) |
95
- | Map<String, Class<? extends JsonSchema>> | properties = Map.ofEntries(<br >  ;  ;  ;  ; new PropertyEntry("name", [ Name.class] ( #name ) )),<br >  ;  ;  ;  ; new PropertyEntry("additionalProperty ", [ AdditionalProperty .class] ( #additionalproperty ) )),<br >  ;  ;  ;  ; new PropertyEntry("secondAdditionalProperty", [ SecondAdditionalProperty.class] ( #secondadditionalproperty ) ))<br >)<br > |
95
+ | Map<String, Class<? extends JsonSchema>> | properties = Map.ofEntries(<br >  ;  ;  ;  ; new PropertyEntry("name", [ Name.class] ( #name ) )),<br >  ;  ;  ;  ; new PropertyEntry("someProperty ", [ SomeProperty .class] ( #someproperty ) )),<br >  ;  ;  ;  ; new PropertyEntry("secondAdditionalProperty", [ SecondAdditionalProperty.class] ( #secondadditionalproperty ) ))<br >)<br > |
96
96
97
97
### Method Summary
98
98
| Modifier and Type | Method and Description |
@@ -118,7 +118,7 @@ A class that builds the Map input type
118
118
| ----------------- | ---------------------- |
119
119
| Map<String, @Nullable Object> | build()<br >Returns map input that should be used with Schema.validate |
120
120
| [ ItemsSchemaMapBuilder] ( #itemsschemamapbuilder ) | name(String value) |
121
- | [ ItemsSchemaMapBuilder] ( #itemsschemamapbuilder ) | additionalProperty (String value) |
121
+ | [ ItemsSchemaMapBuilder] ( #itemsschemamapbuilder ) | someProperty (String value) |
122
122
| [ ItemsSchemaMapBuilder] ( #itemsschemamapbuilder ) | secondAdditionalProperty(String value) |
123
123
| [ ItemsSchemaMapBuilder] ( #itemsschemamapbuilder ) | additionalProperty(String key, Void value) |
124
124
| [ ItemsSchemaMapBuilder] ( #itemsschemamapbuilder ) | additionalProperty(String key, boolean value) |
@@ -141,7 +141,7 @@ A class to store validated Map payloads
141
141
| ----------------- | ---------------------- |
142
142
| static [ ItemsSchemaMap] ( #itemsschemamap ) | of([ Map<String, ? extends @Nullable Object>] ( #itemsschemamapbuilder ) arg, SchemaConfiguration configuration) |
143
143
| String | name()<br >[ optional] |
144
- | String | additionalProperty ()<br >[ optional] |
144
+ | String | someProperty ()<br >[ optional] |
145
145
| String | secondAdditionalProperty()<br >[ optional] |
146
146
| @Nullable Object | getAdditionalProperty(String name)<br >provides type safety for additional properties |
147
147
@@ -180,32 +180,32 @@ A schema class that validates payloads
180
180
| validate |
181
181
| validateAndBox |
182
182
183
- ## AdditionalPropertyBoxed
184
- public sealed interface AdditionalPropertyBoxed <br >
183
+ ## SomePropertyBoxed
184
+ public sealed interface SomePropertyBoxed <br >
185
185
permits<br >
186
- [ AdditionalPropertyBoxedString ] ( #additionalpropertyboxedstring )
186
+ [ SomePropertyBoxedString ] ( #somepropertyboxedstring )
187
187
188
188
sealed interface that stores validated payloads using boxed classes
189
189
190
- ## AdditionalPropertyBoxedString
191
- public record AdditionalPropertyBoxedString <br >
192
- implements [ AdditionalPropertyBoxed ] ( #additionalpropertyboxed )
190
+ ## SomePropertyBoxedString
191
+ public record SomePropertyBoxedString <br >
192
+ implements [ SomePropertyBoxed ] ( #somepropertyboxed )
193
193
194
194
record that stores validated String payloads, sealed permits implementation
195
195
196
196
### Constructor Summary
197
197
| Constructor and Description |
198
198
| --------------------------- |
199
- | AdditionalPropertyBoxedString (String data)<br >Creates an instance, private visibility |
199
+ | SomePropertyBoxedString (String data)<br >Creates an instance, private visibility |
200
200
201
201
### Method Summary
202
202
| Modifier and Type | Method and Description |
203
203
| ----------------- | ---------------------- |
204
204
| String | data()<br >validated payload |
205
205
| @Nullable Object | getData()<br >validated payload |
206
206
207
- ## AdditionalProperty
208
- public static class AdditionalProperty <br >
207
+ ## SomeProperty
208
+ public static class SomeProperty <br >
209
209
extends StringJsonSchema.StringJsonSchema1
210
210
211
211
A schema class that validates payloads
0 commit comments