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

Java, adds map builders [breaking] #347

Merged
merged 62 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
8d5a8ea
Adds two general interfaces that will be used by map builder
spacether Dec 31, 2023
bdf40f4
Fixes containerJsonPathPiece reference + creates MapBuilder instance
spacether Dec 31, 2023
c99cf72
Adds map builder with build method
spacether Dec 31, 2023
c5d25df
Wires in input type of mapValueSchem in builder, sets interfaceClassN…
spacether Dec 31, 2023
ff1f842
Adds interfaces for required properties setters
spacether Dec 31, 2023
193003b
Fixes variable name collision
spacether Dec 31, 2023
54cf519
Adds setter methods in setter interfaces for different types
spacether Dec 31, 2023
e253e7b
Fixes key put
spacether Dec 31, 2023
7c93ff2
Generates all of the builders
spacether Dec 31, 2023
e4e8771
Makes first map builder accept no arguments
spacether Dec 31, 2023
bc2a6db
Removes unused interface
spacether Dec 31, 2023
d7c1096
Removes ReqProps txt in builder names
spacether Dec 31, 2023
e490c3e
Adds missing BaseBuilder import, changes camelCase->pascalCase, ancho…
spacether Jan 3, 2024
3a0b636
Updates method case names to be accurate
spacether Jan 3, 2024
12f2b81
Adds camelCase and uses it in java setter
spacether Jan 3, 2024
07a1e84
Adds missing BaseBuilder import
spacether Jan 3, 2024
a36c235
Fixes ListBuilderTest
spacether Jan 3, 2024
aae3392
Adds interfaces for optional properties
spacether Jan 3, 2024
7d2cd2a
Adjusts map builders to always begin with a no-args constructor
spacether Jan 3, 2024
b8c947b
Adds optional properties to first builder, which is the last invoked …
spacether Jan 3, 2024
a506c52
Adds setter interface for non null non addProps false additional prop…
spacether Jan 3, 2024
c56fb48
Adds next builder method for additional property
spacether Jan 3, 2024
b7e8c78
Adds setter interface requirement for schemas with custom addprops
spacether Jan 3, 2024
2b02069
Moves throwIfKeyKnown into MapMaker class
spacether Jan 3, 2024
d864344
Adds requiredKeys + optionalKeys to last invoked builder
spacether Jan 3, 2024
7e14b0f
Adds throwing of exceptions when setting additional property with inv…
spacether Jan 3, 2024
aeabbcf
Stores knownKeys in map input class last builder
spacether Jan 4, 2024
5a30a8b
Adds throws signature to addprops setters
spacether Jan 4, 2024
204529a
Adds UnsetAddPropsSetter
spacether Jan 4, 2024
9560cb6
Has final invocation builder extends UnsetAddPropsSetter
spacether Jan 4, 2024
6b833ee
MapMaker changed to MapUtils and moved
spacether Jan 4, 2024
6368bf8
Adds Map in builder names
spacether Jan 4, 2024
4544ce4
Updates first invoked builder name to not contain bitStr
spacether Jan 4, 2024
a7e9b97
Removes duplicate map input classes
spacether Jan 4, 2024
0e7160d
Adds all map builder class names to docs
spacether Jan 4, 2024
57efbca
Adds builder constructor and build method to docs
spacether Jan 4, 2024
d9ff094
Produces documentation info for all map builder required property met…
spacether Jan 4, 2024
9babae0
Adds linkes from one builder to the next in schema docs, all required…
spacether Jan 4, 2024
9310438
Petstore regen
spacether Jan 4, 2024
775d51d
Fixes greater than and less than signs in schema docs for maps
spacether Jan 4, 2024
371d02a
Removes lingering >
spacether Jan 4, 2024
74a9eaf
Adds ref handling in req and optional prop builder setters
spacether Jan 4, 2024
7a8bc6a
Handles self ref
spacether Jan 4, 2024
1b1f9cf
FIxes handling of self references in map builder
spacether Jan 4, 2024
839a650
Fixes addProps type in schema docs
spacether Jan 4, 2024
26a0cbd
Petstore regen
spacether Jan 4, 2024
208bc86
Adds unset addProp setters to map schema docs
spacether Jan 4, 2024
97bfb68
Adds additional property to map example when addProp is set
spacether Jan 4, 2024
2762ebb
Ensures that typeToExample is ordered
spacether Jan 4, 2024
ef9d09f
Ensures that getMapFromSchema is ordered
spacether Jan 4, 2024
c8105f9
Uses the key named additionalProperty so sample code can detect addit…
spacether Jan 4, 2024
9520b5b
Stores CodegenKey in schema example keys, isAdditionalProperty added …
spacether Jan 4, 2024
e6f1533
Updates payload rendered to use list constructor add method
spacether Jan 4, 2024
41b731a
Uses map builder in schema docs
spacether Jan 4, 2024
d26d235
Updates the key for the additional property in the code samples
spacether Jan 4, 2024
7594ebe
Samples regen
spacether Jan 4, 2024
2e427f9
Ensures additional properties setter is only on the first (last invok…
spacether Jan 5, 2024
053fd25
Checker framework updated
spacether Jan 5, 2024
79b621f
Moves getMapBuilders implementation into the java generator
spacether Jan 5, 2024
bf937b9
Removes isAdditionalProperty from CodegenKey
spacether Jan 5, 2024
f132ca6
petstore regen
spacether Jan 5, 2024
bdc998b
Samples regen
spacether Jan 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion samples/client/3_0_3_unit_test/java/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ src/main/java/org/openapijsonschematools/client/exceptions/InvalidTypeException.
src/main/java/org/openapijsonschematools/client/exceptions/UnsetPropertyException.java
src/main/java/org/openapijsonschematools/client/exceptions/ValidationException.java
src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/BaseBuilder.java
src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java
Expand All @@ -193,12 +194,12 @@ src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/MapMaker.java
src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/SetMaker.java
src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/UnsetAddPropsSetter.java
src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidator.java
src/main/java/org/openapijsonschematools/client/schemas/validation/AllOfValidator.java
Expand Down Expand Up @@ -232,6 +233,7 @@ src/main/java/org/openapijsonschematools/client/schemas/validation/ListSchemaVal
src/main/java/org/openapijsonschematools/client/schemas/validation/LongEnumValidator.java
src/main/java/org/openapijsonschematools/client/schemas/validation/LongValueMethod.java
src/main/java/org/openapijsonschematools/client/schemas/validation/MapSchemaValidator.java
src/main/java/org/openapijsonschematools/client/schemas/validation/MapUtils.java
src/main/java/org/openapijsonschematools/client/schemas/validation/MaxItemsValidator.java
src/main/java/org/openapijsonschematools/client/schemas/validation/MaxLengthValidator.java
src/main/java/org/openapijsonschematools/client/schemas/validation/MaxPropertiesValidator.java
Expand Down
2 changes: 1 addition & 1 deletion samples/client/3_0_3_unit_test/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Here is the mapping from json schema types to Java types:
| integer | int, long, float, double (with values equal to integers) |
| boolean | boolean |
| null | Void (null) |
| AnyType (unset) | Object |
| AnyType (unset) | @Nullable Object |

### Storage of Json Schema Definition in Java JsonSchema Classes
In openapi v3.0.3 there are ~ 28 json schema keywords. Almost all of them can apply if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.MapMaker;
import org.openapijsonschematools.client.schemas.validation.MapUtils;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;

Expand All @@ -41,8 +41,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch
// Map validation
AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMap validatedPayload =
AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1.validate(
MapMaker.makeMap(
),
new AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder()
.additionalProperty("someAdditionalProperty", true)

.build(),
configuration
);
```
Expand All @@ -57,20 +59,42 @@ AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsA
### Method Summary
| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map<?, ?>](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map&lt;?, ?&gt;](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder
public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder<br>
builder for `Map<String, ? extends @Nullable Object>`
builder for `Map<String, @Nullable Object>`

A class that builds the Map input type

## Input Map Keys
| Key | Type | Description | Notes |
| --- | ---- | ------------ | ----- |
| **foo** | ? extends @Nullable Object | | [optional] |
| **bar** | ? extends @Nullable Object | | [optional] |
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder()<br>Creates a builder that contains an empty map |

### Method Summary
| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
| Map<String, @Nullable Object> | build()<br>Returns map input that should be used with Schema.validate |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(Void value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(boolean value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(String value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(int value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(float value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(long value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(double value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(List<?> value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | foo(Map<String, ?> value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(Void value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(boolean value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(String value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(int value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(float value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(long value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(double value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(List<?> value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | bar(Map<String, ?> value) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) | additionalProperty(String key, boolean value) |

## AdditionalpropertiesAllowsASchemaWhichShouldValidateMap
public static class AdditionalpropertiesAllowsASchemaWhichShouldValidateMap<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,51 @@ A schema class that validates payloads
| float | validate(float arg, SchemaConfiguration configuration) |
| double | validate(double arg, SchemaConfiguration configuration) |
| boolean | validate(boolean arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map<?, ?>](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map&lt;?, ?&gt;](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) |
| FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
## AdditionalpropertiesAreAllowedByDefaultMapBuilder
public class AdditionalpropertiesAreAllowedByDefaultMapBuilder<br>
builder for `Map<String, ? extends @Nullable Object>`
builder for `Map<String, @Nullable Object>`

A class that builds the Map input type

## Input Map Keys
| Key | Type | Description | Notes |
| --- | ---- | ------------ | ----- |
| **foo** | ? extends @Nullable Object | | [optional] |
| **bar** | ? extends @Nullable Object | | [optional] |
| **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] |
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefaultMapBuilder()<br>Creates a builder that contains an empty map |

### Method Summary
| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
| Map<String, @Nullable Object> | build()<br>Returns map input that should be used with Schema.validate |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(Void value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(boolean value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(String value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(int value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(float value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(long value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(double value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(List<?> value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | foo(Map<String, ?> value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(Void value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(boolean value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(String value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(int value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(float value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(long value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(double value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(List<?> value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | bar(Map<String, ?> value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, Void value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, boolean value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, String value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, int value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, float value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, long value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, double value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, List<?> value) |
| [AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) | additionalProperty(String key, Map<String, ?> value) |

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

## Bar
public static class Bar<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ A schema class that validates payloads
import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags;
import org.openapijsonschematools.client.configurations.SchemaConfiguration;
import org.openapijsonschematools.client.exceptions.ValidationException;
import org.openapijsonschematools.client.schemas.MapMaker;
import org.openapijsonschematools.client.schemas.validation.MapUtils;
import org.openapijsonschematools.client.schemas.validation.FrozenList;
import org.openapijsonschematools.client.schemas.validation.FrozenMap;

Expand All @@ -39,8 +39,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch
// Map validation
AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap validatedPayload =
AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1.validate(
MapMaker.makeMap(
),
new AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMapBuilder()
.additionalProperty("someAdditionalProperty", true)

.build(),
configuration
);
```
Expand All @@ -54,18 +56,24 @@ AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap val
### Method Summary
| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map<?, ?>](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map&lt;?, ?&gt;](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
## AdditionalpropertiesCanExistByItselfMapBuilder
public class AdditionalpropertiesCanExistByItselfMapBuilder<br>
builder for `Map<String, Boolean>`

A class that builds the Map input type

## Input Map Keys
| Key | Type | Description | Notes |
| --- | ---- | ------------ | ----- |
| **anyStringName** | boolean | any string name can be used but the value must be the correct type | [optional] |
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesCanExistByItselfMapBuilder()<br>Creates a builder that contains an empty map |

### Method Summary
| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
| Map<String, Boolean> | build()<br>Returns map input that should be used with Schema.validate |
| [AdditionalpropertiesCanExistByItselfMapBuilder](#additionalpropertiescanexistbyitselfmapbuilder) | additionalProperty(String key, boolean value) |

## AdditionalpropertiesCanExistByItselfMap
public static class AdditionalpropertiesCanExistByItselfMap<br>
Expand Down
Loading