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

Commit ad77012

Browse files
authored
Java, adds map builders (#347)
* Adds two general interfaces that will be used by map builder * Fixes containerJsonPathPiece reference + creates MapBuilder instance * Adds map builder with build method * Wires in input type of mapValueSchem in builder, sets interfaceClassName in COdegenSchema * Adds interfaces for required properties setters * Fixes variable name collision * Adds setter methods in setter interfaces for different types * Fixes key put * Generates all of the builders * Makes first map builder accept no arguments * Removes unused interface * Removes ReqProps txt in builder names * Adds missing BaseBuilder import, changes camelCase->pascalCase, anchorPiece->kebabCase, adds camelCase * Updates method case names to be accurate * Adds camelCase and uses it in java setter * Adds missing BaseBuilder import * Fixes ListBuilderTest * Adds interfaces for optional properties * Adjusts map builders to always begin with a no-args constructor * Adds optional properties to first builder, which is the last invoked builder * Adds setter interface for non null non addProps false additional properties * Adds next builder method for additional property * Adds setter interface requirement for schemas with custom addprops * Moves throwIfKeyKnown into MapMaker class * Adds requiredKeys + optionalKeys to last invoked builder * Adds throwing of exceptions when setting additional property with invalid key * Stores knownKeys in map input class last builder * Adds throws signature to addprops setters * Adds UnsetAddPropsSetter * Has final invocation builder extends UnsetAddPropsSetter * MapMaker changed to MapUtils and moved * Adds Map in builder names * Updates first invoked builder name to not contain bitStr * Removes duplicate map input classes * Adds all map builder class names to docs * Adds builder constructor and build method to docs * Produces documentation info for all map builder required property methods * Adds linkes from one builder to the next in schema docs, all required setters now documented * Petstore regen * Fixes greater than and less than signs in schema docs for maps * Removes lingering > * Adds ref handling in req and optional prop builder setters * Handles self ref * FIxes handling of self references in map builder * Fixes addProps type in schema docs * Petstore regen * Adds unset addProp setters to map schema docs * Adds additional property to map example when addProp is set * Ensures that typeToExample is ordered * Ensures that getMapFromSchema is ordered * Uses the key named additionalProperty so sample code can detect additional properties * Stores CodegenKey in schema example keys, isAdditionalProperty added to CodegenKey * Updates payload rendered to use list constructor add method * Uses map builder in schema docs * Updates the key for the additional property in the code samples * Samples regen * Ensures additional properties setter is only on the first (last invoked) builder * Checker framework updated * Moves getMapBuilders implementation into the java generator * Removes isAdditionalProperty from CodegenKey * petstore regen * Samples regen
1 parent 82cb963 commit ad77012

File tree

797 files changed

+34770
-7826
lines changed

Some content is hidden

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

797 files changed

+34770
-7826
lines changed

samples/client/3_0_3_unit_test/java/.openapi-generator/FILES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ src/main/java/org/openapijsonschematools/client/exceptions/InvalidTypeException.
182182
src/main/java/org/openapijsonschematools/client/exceptions/UnsetPropertyException.java
183183
src/main/java/org/openapijsonschematools/client/exceptions/ValidationException.java
184184
src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java
185+
src/main/java/org/openapijsonschematools/client/schemas/BaseBuilder.java
185186
src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java
186187
src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java
187188
src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java
@@ -193,12 +194,12 @@ src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java
193194
src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java
194195
src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java
195196
src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java
196-
src/main/java/org/openapijsonschematools/client/schemas/MapMaker.java
197197
src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java
198198
src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java
199199
src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java
200200
src/main/java/org/openapijsonschematools/client/schemas/SetMaker.java
201201
src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java
202+
src/main/java/org/openapijsonschematools/client/schemas/UnsetAddPropsSetter.java
202203
src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java
203204
src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java
204205
src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java
@@ -232,6 +233,7 @@ src/main/java/org/openapijsonschematools/client/schemas/validation/ListSchemaVal
232233
src/main/java/org/openapijsonschematools/client/schemas/validation/LongEnumValidator.java
233234
src/main/java/org/openapijsonschematools/client/schemas/validation/LongValueMethod.java
234235
src/main/java/org/openapijsonschematools/client/schemas/validation/MapSchemaValidator.java
236+
src/main/java/org/openapijsonschematools/client/schemas/validation/MapUtils.java
235237
src/main/java/org/openapijsonschematools/client/schemas/validation/MaxItemsValidator.java
236238
src/main/java/org/openapijsonschematools/client/schemas/validation/MaxLengthValidator.java
237239
src/main/java/org/openapijsonschematools/client/schemas/validation/MaxPropertiesValidator.java

samples/client/3_0_3_unit_test/java/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Here is the mapping from json schema types to Java types:
7676
| integer | int, long, float, double (with values equal to integers) |
7777
| boolean | boolean |
7878
| null | Void (null) |
79-
| AnyType (unset) | Object |
79+
| AnyType (unset) | @Nullable Object |
8080

8181
### Storage of Json Schema Definition in Java JsonSchema Classes
8282
In openapi v3.0.3 there are ~ 28 json schema keywords. Almost all of them can apply if

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

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A schema class that validates payloads
2828
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
2929
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
3030
import org.openapijsonschematools.client.exceptions.ValidationException;
31-
import org.openapijsonschematools.client.schemas.MapMaker;
31+
import org.openapijsonschematools.client.schemas.validation.MapUtils;
3232
import org.openapijsonschematools.client.schemas.validation.FrozenList;
3333
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
3434
@@ -41,8 +41,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch
4141
// Map validation
4242
AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMap validatedPayload =
4343
AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1.validate(
44-
MapMaker.makeMap(
45-
),
44+
new AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder()
45+
.additionalProperty("someAdditionalProperty", true)
46+
47+
.build(),
4648
configuration
4749
);
4850
```
@@ -57,20 +59,42 @@ AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsA
5759
### Method Summary
5860
| Modifier and Type | Method and Description |
5961
| ----------------- | ---------------------- |
60-
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map<?, ?>](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) |
62+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map&lt;?, ?&gt;](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) |
6163
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
6264
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder
6365
public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder<br>
64-
builder for `Map<String, ? extends @Nullable Object>`
66+
builder for `Map<String, @Nullable Object>`
6567

6668
A class that builds the Map input type
6769

68-
## Input Map Keys
69-
| Key | Type | Description | Notes |
70-
| --- | ---- | ------------ | ----- |
71-
| **foo** | ? extends @Nullable Object | | [optional] |
72-
| **bar** | ? extends @Nullable Object | | [optional] |
73-
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
70+
### Constructor Summary
71+
| Constructor and Description |
72+
| --------------------------- |
73+
| AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder()<br>Creates a builder that contains an empty map |
74+
75+
### Method Summary
76+
| Modifier and Type | Method and Description |
77+
| ----------------- | ---------------------- |
78+
| Map<String, @Nullable Object> | build()<br>Returns map input that should be used with Schema.validate |
79+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(Void value) |
80+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(boolean value) |
81+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(String value) |
82+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(int value) |
83+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(float value) |
84+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(long value) |
85+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(double value) |
86+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(List<?> value) |
87+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(Map<String, ?> value) |
88+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(Void value) |
89+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(boolean value) |
90+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(String value) |
91+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(int value) |
92+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(float value) |
93+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(long value) |
94+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(double value) |
95+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(List<?> value) |
96+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(Map<String, ?> value) |
97+
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | additionalProperty(String key, boolean value) |
7498

7599
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMap
76100
public static class AdditionalpropertiesAllowsASchemaWhichShouldValidateMap<br>

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

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,51 @@ A schema class that validates payloads
3737
| float | validate(float arg, SchemaConfiguration configuration) |
3838
| double | validate(double arg, SchemaConfiguration configuration) |
3939
| boolean | validate(boolean arg, SchemaConfiguration configuration) |
40-
| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map<?, ?>](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) |
40+
| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map&lt;?, ?&gt;](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) |
4141
| FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
4242
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
4343
## AdditionalpropertiesAreAllowedByDefaultMapBuilder
4444
public class AdditionalpropertiesAreAllowedByDefaultMapBuilder<br>
45-
builder for `Map<String, ? extends @Nullable Object>`
45+
builder for `Map<String, @Nullable Object>`
4646

4747
A class that builds the Map input type
4848

49-
## Input Map Keys
50-
| Key | Type | Description | Notes |
51-
| --- | ---- | ------------ | ----- |
52-
| **foo** | ? extends @Nullable Object | | [optional] |
53-
| **bar** | ? extends @Nullable Object | | [optional] |
54-
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
49+
### Constructor Summary
50+
| Constructor and Description |
51+
| --------------------------- |
52+
| AdditionalpropertiesAreAllowedByDefaultMapBuilder()<br>Creates a builder that contains an empty map |
53+
54+
### Method Summary
55+
| Modifier and Type | Method and Description |
56+
| ----------------- | ---------------------- |
57+
| Map<String, @Nullable Object> | build()<br>Returns map input that should be used with Schema.validate |
58+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(Void value) |
59+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(boolean value) |
60+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(String value) |
61+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(int value) |
62+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(float value) |
63+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(long value) |
64+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(double value) |
65+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(List<?> value) |
66+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(Map<String, ?> value) |
67+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(Void value) |
68+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(boolean value) |
69+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(String value) |
70+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(int value) |
71+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(float value) |
72+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(long value) |
73+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(double value) |
74+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(List<?> value) |
75+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(Map<String, ?> value) |
76+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, Void value) |
77+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, boolean value) |
78+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, String value) |
79+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, int value) |
80+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, float value) |
81+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, long value) |
82+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, double value) |
83+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, List<?> value) |
84+
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, Map<String, ?> value) |
5585

5686
## AdditionalpropertiesAreAllowedByDefaultMap
5787
public static class AdditionalpropertiesAreAllowedByDefaultMap<br>
@@ -65,7 +95,7 @@ A class to store validated Map payloads
6595
| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of([Map<String, ? extends @Nullable Object>](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) |
6696
| @Nullable Object | foo()<br>[optional] |
6797
| @Nullable Object | bar()<br>[optional] |
68-
| Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
98+
| @Nullable Object | getAdditionalProperty(String name)<br>provides type safety for additional properties |
6999

70100
## Bar
71101
public static class Bar<br>

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A schema class that validates payloads
2626
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
2727
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
2828
import org.openapijsonschematools.client.exceptions.ValidationException;
29-
import org.openapijsonschematools.client.schemas.MapMaker;
29+
import org.openapijsonschematools.client.schemas.validation.MapUtils;
3030
import org.openapijsonschematools.client.schemas.validation.FrozenList;
3131
import org.openapijsonschematools.client.schemas.validation.FrozenMap;
3232
@@ -39,8 +39,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch
3939
// Map validation
4040
AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap validatedPayload =
4141
AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1.validate(
42-
MapMaker.makeMap(
43-
),
42+
new AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMapBuilder()
43+
.additionalProperty("someAdditionalProperty", true)
44+
45+
.build(),
4446
configuration
4547
);
4648
```
@@ -54,18 +56,24 @@ AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap val
5456
### Method Summary
5557
| Modifier and Type | Method and Description |
5658
| ----------------- | ---------------------- |
57-
| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map<?, ?>](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) |
59+
| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map&lt;?, ?&gt;](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) |
5860
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
5961
## AdditionalpropertiesCanExistByItselfMapBuilder
6062
public class AdditionalpropertiesCanExistByItselfMapBuilder<br>
6163
builder for `Map<String, Boolean>`
6264

6365
A class that builds the Map input type
6466

65-
## Input Map Keys
66-
| Key | Type | Description | Notes |
67-
| --- | ---- | ------------ | ----- |
68-
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
67+
### Constructor Summary
68+
| Constructor and Description |
69+
| --------------------------- |
70+
| AdditionalpropertiesCanExistByItselfMapBuilder()<br>Creates a builder that contains an empty map |
71+
72+
### Method Summary
73+
| Modifier and Type | Method and Description |
74+
| ----------------- | ---------------------- |
75+
| Map<String, Boolean> | build()<br>Returns map input that should be used with Schema.validate |
76+
| [AdditionalpropertiesCanExistByItselfMapBuilder](#additionalpropertiescanexistbyitselfmapbuilder) | additionalProperty(String key, boolean value) |
6977

7078
## AdditionalpropertiesCanExistByItselfMap
7179
public static class AdditionalpropertiesCanExistByItselfMap<br>

0 commit comments

Comments
 (0)