diff --git a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES index 9fd90ce5565..b1b0a2946be 100644 --- a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES +++ b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES @@ -263,6 +263,7 @@ src/test/java/org/openapijsonschematools/client/configurations/JsonSchemaKeyword src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java +src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md index d6570843a8d..abd020e625d 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1](#additionalpropertiesallowsaschemawhichshouldvalidate1)
schema class | -| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput)
builder for Map payloads | +| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap)
output class for Map payloads | | static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.Bar](#bar)
schema class | | static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.Foo](#foo)
schema class | @@ -57,10 +57,10 @@ AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsA ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput -public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput
+## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder +public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | of([Map](#additionalpropertiesallowsaschemawhichshouldvalidatemapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | of([Map](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
[optional] | | @Nullable Object | bar()
[optional] | | boolean | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md index 35c061c6001..c33572f4aee 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1](#additionalpropertiesareallowedbydefault1)
schema class | -| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMapInput](#additionalpropertiesareallowedbydefaultmapinput)
builder for Map payloads | +| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap)
output class for Map payloads | | static class | [AdditionalpropertiesAreAllowedByDefault.Bar](#bar)
schema class | | static class | [AdditionalpropertiesAreAllowedByDefault.Foo](#foo)
schema class | @@ -37,11 +37,11 @@ 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](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | validate([Map](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalpropertiesAreAllowedByDefaultMapInput -public class AdditionalpropertiesAreAllowedByDefaultMapInput
+## AdditionalpropertiesAreAllowedByDefaultMapBuilder +public class AdditionalpropertiesAreAllowedByDefaultMapBuilder
builder for `Map` A class that builds the Map input type @@ -62,7 +62,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of([Map](#additionalpropertiesareallowedbydefaultmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | of([Map](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
[optional] | | @Nullable Object | bar()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md index 89ad0788c82..f7d06ddb1d2 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1](#additionalpropertiescanexistbyitself1)
schema class | -| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMapInput](#additionalpropertiescanexistbyitselfmapinput)
builder for Map payloads | +| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMapBuilder](#additionalpropertiescanexistbyitselfmapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap)
output class for Map payloads | | static class | [AdditionalpropertiesCanExistByItself.AdditionalProperties](#additionalproperties)
schema class | @@ -54,10 +54,10 @@ AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap val ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map](#additionalpropertiescanexistbyitselfmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalpropertiesCanExistByItselfMapInput -public class AdditionalpropertiesCanExistByItselfMapInput
+## AdditionalpropertiesCanExistByItselfMapBuilder +public class AdditionalpropertiesCanExistByItselfMapBuilder
builder for `Map` A class that builds the Map input type @@ -76,7 +76,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | of([Map](#additionalpropertiescanexistbyitselfmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | of([Map](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) | | boolean | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md index 7067eb8cb76..8c0dd6d3d6e 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md @@ -11,10 +11,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1](#additionalpropertiesshouldnotlookinapplicators1)
schema class | -| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMapInput](#additionalpropertiesshouldnotlookinapplicatorsmapinput)
builder for Map payloads | +| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder](#additionalpropertiesshouldnotlookinapplicatorsmapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap)
output class for Map payloads | | static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0](#schema0)
schema class | -| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0Map](#schema0map)
output class for Map payloads | | static class | [AdditionalpropertiesShouldNotLookInApplicators.Foo](#foo)
schema class | | static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalProperties](#additionalproperties)
schema class | @@ -41,11 +41,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | validate([Map](#additionalpropertiesshouldnotlookinapplicatorsmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | validate([Map](#additionalpropertiesshouldnotlookinapplicatorsmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalpropertiesShouldNotLookInApplicatorsMapInput -public class AdditionalpropertiesShouldNotLookInApplicatorsMapInput
+## AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder +public class AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder
builder for `Map` A class that builds the Map input type @@ -64,7 +64,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | of([Map](#additionalpropertiesshouldnotlookinapplicatorsmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | of([Map](#additionalpropertiesshouldnotlookinapplicatorsmapbuilder) arg, SchemaConfiguration configuration) | | boolean | getAdditionalProperty(String name)
provides type safety for additional properties | ## Schema0 @@ -88,11 +88,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -112,7 +112,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md index 6315f11cded..2987d9a5724 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md @@ -12,11 +12,11 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [Allof.Allof1](#allof1)
schema class | | static class | [Allof.Schema1](#schema1)
schema class | -| static class | [Allof.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [Allof.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Allof.Schema1Map](#schema1map)
output class for Map payloads | | static class | [Allof.Foo](#foo)
schema class | | static class | [Allof.Schema0](#schema0)
schema class | -| static class | [Allof.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [Allof.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [Allof.Schema0Map](#schema0map)
output class for Map payloads | | static class | [Allof.Bar](#bar)
schema class | @@ -66,11 +66,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -90,7 +90,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | foo()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -126,11 +126,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -138,7 +138,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **bar** | long | | | +| **bar** | Number | | | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## Schema0Map @@ -150,8 +150,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | -| long | bar()
| +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | +| Number | bar()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Bar diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md index f9e7e877a86..357daee6420 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md @@ -11,15 +11,15 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AllofWithBaseSchema.AllofWithBaseSchema1](#allofwithbaseschema1)
schema class | -| static class | [AllofWithBaseSchema.AllofWithBaseSchemaMapInput](#allofwithbaseschemamapinput)
builder for Map payloads | +| static class | [AllofWithBaseSchema.AllofWithBaseSchemaMapBuilder](#allofwithbaseschemamapbuilder)
builder for Map payloads | | static class | [AllofWithBaseSchema.AllofWithBaseSchemaMap](#allofwithbaseschemamap)
output class for Map payloads | | static class | [AllofWithBaseSchema.Bar](#bar)
schema class | | static class | [AllofWithBaseSchema.Schema1](#schema1)
schema class | -| static class | [AllofWithBaseSchema.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [AllofWithBaseSchema.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [AllofWithBaseSchema.Schema1Map](#schema1map)
output class for Map payloads | | static class | [AllofWithBaseSchema.Baz](#baz)
schema class | | static class | [AllofWithBaseSchema.Schema0](#schema0)
schema class | -| static class | [AllofWithBaseSchema.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [AllofWithBaseSchema.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AllofWithBaseSchema.Schema0Map](#schema0map)
output class for Map payloads | | static class | [AllofWithBaseSchema.Foo](#foo)
schema class | @@ -46,11 +46,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | validate([Map](#allofwithbaseschemamapinput) arg, SchemaConfiguration configuration) | +| [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | validate([Map](#allofwithbaseschemamapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AllofWithBaseSchemaMapInput -public class AllofWithBaseSchemaMapInput
+## AllofWithBaseSchemaMapBuilder +public class AllofWithBaseSchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -58,7 +58,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **bar** | long | | | +| **bar** | Number | | | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## AllofWithBaseSchemaMap @@ -70,8 +70,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | of([Map](#allofwithbaseschemamapinput) arg, SchemaConfiguration configuration) | -| long | bar()
| +| static [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | of([Map](#allofwithbaseschemamapbuilder) arg, SchemaConfiguration configuration) | +| Number | bar()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Bar @@ -106,11 +106,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -130,7 +130,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | Void | baz()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -166,11 +166,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -190,7 +190,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | String | foo()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md index d7035691809..85c6d90d1ba 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md @@ -12,11 +12,11 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [AnyofComplexTypes.AnyofComplexTypes1](#anyofcomplextypes1)
schema class | | static class | [AnyofComplexTypes.Schema1](#schema1)
schema class | -| static class | [AnyofComplexTypes.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [AnyofComplexTypes.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [AnyofComplexTypes.Schema1Map](#schema1map)
output class for Map payloads | | static class | [AnyofComplexTypes.Foo](#foo)
schema class | | static class | [AnyofComplexTypes.Schema0](#schema0)
schema class | -| static class | [AnyofComplexTypes.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [AnyofComplexTypes.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AnyofComplexTypes.Schema0Map](#schema0map)
output class for Map payloads | | static class | [AnyofComplexTypes.Bar](#bar)
schema class | @@ -66,11 +66,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -90,7 +90,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | foo()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -126,11 +126,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -138,7 +138,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **bar** | long | | | +| **bar** | Number | | | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## Schema0Map @@ -150,8 +150,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | -| long | bar()
| +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | +| Number | bar()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Bar diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md index a087da602aa..2fac2b1ae30 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ArrayTypeMatchesArrays.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1](#arraytypematchesarrays1)
schema class | -| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArraysListInput](#arraytypematchesarrayslistinput)
builder for List payloads | +| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArraysListBuilder](#arraytypematchesarrayslistbuilder)
builder for List payloads | | static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList](#arraytypematchesarrayslist)
output class for List payloads | | static class | [ArrayTypeMatchesArrays.Items](#items)
schema class | @@ -39,8 +39,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList validatedPayload = ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1.validate( - Arrays.asList( - ), + new ArrayTypeMatchesArrays.ArrayTypeMatchesArraysListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -54,18 +56,33 @@ ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | validate([List](#arraytypematchesarrayslistinput) arg, SchemaConfiguration configuration) | +| [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | validate([List](#arraytypematchesarrayslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayTypeMatchesArraysListInput -public class ArrayTypeMatchesArraysListInput
-builder for `List` +## ArrayTypeMatchesArraysListBuilder +public class ArrayTypeMatchesArraysListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayTypeMatchesArraysListBuilder()
Creates an empty list | +| ArrayTypeMatchesArraysListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayTypeMatchesArraysListBuilder | add(Void item) | +| ArrayTypeMatchesArraysListBuilder | add(boolean item) | +| ArrayTypeMatchesArraysListBuilder | add(String item) | +| ArrayTypeMatchesArraysListBuilder | add(int item) | +| ArrayTypeMatchesArraysListBuilder | add(float item) | +| ArrayTypeMatchesArraysListBuilder | add(long item) | +| ArrayTypeMatchesArraysListBuilder | add(double item) | +| ArrayTypeMatchesArraysListBuilder | add(List item) | +| ArrayTypeMatchesArraysListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## ArrayTypeMatchesArraysList public class ArrayTypeMatchesArraysList
@@ -76,7 +93,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | of([List](#arraytypematchesarrayslistinput) arg, SchemaConfiguration configuration) | +| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | of([List](#arraytypematchesarrayslistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumsInProperties.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumsInProperties.md index 87351f1244f..471f9fa01da 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumsInProperties.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumsInProperties.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [EnumsInProperties.EnumsInProperties1](#enumsinproperties1)
schema class | -| static class | [EnumsInProperties.EnumsInPropertiesMapInput](#enumsinpropertiesmapinput)
builder for Map payloads | +| static class | [EnumsInProperties.EnumsInPropertiesMapBuilder](#enumsinpropertiesmapbuilder)
builder for Map payloads | | static class | [EnumsInProperties.EnumsInPropertiesMap](#enumsinpropertiesmap)
output class for Map payloads | | static class | [EnumsInProperties.Bar](#bar)
schema class | | enum | [EnumsInProperties.StringBarEnums](#stringbarenums)
String enum | @@ -67,10 +67,10 @@ EnumsInProperties.EnumsInPropertiesMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EnumsInPropertiesMap](#enumsinpropertiesmap) | validate([Map](#enumsinpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [EnumsInPropertiesMap](#enumsinpropertiesmap) | validate([Map](#enumsinpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## EnumsInPropertiesMapInput -public class EnumsInPropertiesMapInput
+## EnumsInPropertiesMapBuilder +public class EnumsInPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -91,7 +91,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [EnumsInPropertiesMap](#enumsinpropertiesmap) | of([Map](#enumsinpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [EnumsInPropertiesMap](#enumsinpropertiesmap) | of([Map](#enumsinpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | String | bar()
must be one of ["bar"] | | String | foo()
[optional] must be one of ["foo"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md index 1d1e03f2e71..fe252d848d9 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ForbiddenProperty.ForbiddenProperty1](#forbiddenproperty1)
schema class | -| static class | [ForbiddenProperty.ForbiddenPropertyMapInput](#forbiddenpropertymapinput)
builder for Map payloads | +| static class | [ForbiddenProperty.ForbiddenPropertyMapBuilder](#forbiddenpropertymapbuilder)
builder for Map payloads | | static class | [ForbiddenProperty.ForbiddenPropertyMap](#forbiddenpropertymap)
output class for Map payloads | | static class | [ForbiddenProperty.Foo](#foo)
schema class | @@ -36,11 +36,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [ForbiddenPropertyMap](#forbiddenpropertymap) | validate([Map](#forbiddenpropertymapinput) arg, SchemaConfiguration configuration) | +| [ForbiddenPropertyMap](#forbiddenpropertymap) | validate([Map](#forbiddenpropertymapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ForbiddenPropertyMapInput -public class ForbiddenPropertyMapInput
+## ForbiddenPropertyMapBuilder +public class ForbiddenPropertyMapBuilder
builder for `Map` A class that builds the Map input type @@ -60,7 +60,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ForbiddenPropertyMap](#forbiddenpropertymap) | of([Map](#forbiddenpropertymapinput) arg, SchemaConfiguration configuration) | +| static [ForbiddenPropertyMap](#forbiddenpropertymap) | of([Map](#forbiddenpropertymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidStringValueForDefault.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidStringValueForDefault.md index c2af1bf313e..5f54831d44f 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidStringValueForDefault.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidStringValueForDefault.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1](#invalidstringvaluefordefault1)
schema class | -| static class | [InvalidStringValueForDefault.InvalidStringValueForDefaultMapInput](#invalidstringvaluefordefaultmapinput)
builder for Map payloads | +| static class | [InvalidStringValueForDefault.InvalidStringValueForDefaultMapBuilder](#invalidstringvaluefordefaultmapbuilder)
builder for Map payloads | | static class | [InvalidStringValueForDefault.InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap)
output class for Map payloads | | static class | [InvalidStringValueForDefault.Bar](#bar)
schema class | @@ -36,11 +36,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) | validate([Map](#invalidstringvaluefordefaultmapinput) arg, SchemaConfiguration configuration) | +| [InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) | validate([Map](#invalidstringvaluefordefaultmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## InvalidStringValueForDefaultMapInput -public class InvalidStringValueForDefaultMapInput
+## InvalidStringValueForDefaultMapBuilder +public class InvalidStringValueForDefaultMapBuilder
builder for `Map` A class that builds the Map input type @@ -60,7 +60,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) | of([Map](#invalidstringvaluefordefaultmapinput) arg, SchemaConfiguration configuration) | +| static [InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) | of([Map](#invalidstringvaluefordefaultmapbuilder) arg, SchemaConfiguration configuration) | | String | bar()
[optional] if omitted the server will use the default value of bad | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedItems.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedItems.md index 58e4e761064..6d66667ae10 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedItems.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedItems.md @@ -11,16 +11,16 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [NestedItems.NestedItems1](#nesteditems1)
schema class | -| static class | [NestedItems.NestedItemsListInput](#nesteditemslistinput)
builder for List payloads | +| static class | [NestedItems.NestedItemsListBuilder](#nesteditemslistbuilder)
builder for List payloads | | static class | [NestedItems.NestedItemsList](#nesteditemslist)
output class for List payloads | | static class | [NestedItems.Items](#items)
schema class | -| static class | [NestedItems.ItemsListInput2](#itemslistinput2)
builder for List payloads | +| static class | [NestedItems.ItemsListBuilder2](#itemslistbuilder2)
builder for List payloads | | static class | [NestedItems.ItemsList2](#itemslist2)
output class for List payloads | | static class | [NestedItems.Items1](#items1)
schema class | -| static class | [NestedItems.ItemsListInput1](#itemslistinput1)
builder for List payloads | +| static class | [NestedItems.ItemsListBuilder1](#itemslistbuilder1)
builder for List payloads | | static class | [NestedItems.ItemsList1](#itemslist1)
output class for List payloads | | static class | [NestedItems.Items2](#items2)
schema class | -| static class | [NestedItems.ItemsListInput](#itemslistinput)
builder for List payloads | +| static class | [NestedItems.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [NestedItems.ItemsList](#itemslist)
output class for List payloads | | static class | [NestedItems.Items3](#items3)
schema class | @@ -48,15 +48,17 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation NestedItems.NestedItemsList validatedPayload = NestedItems.NestedItems1.validate( - Arrays.asList( + new NestedItems.NestedItemsListBuilder( Arrays.asList( Arrays.asList( Arrays.asList( - 1 + Arrays.asList( + 1 + ) ) ) ) - ), + ).build(), configuration ); ``` @@ -70,18 +72,25 @@ NestedItems.NestedItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NestedItemsList](#nesteditemslist) | validate([List](#nesteditemslistinput) arg, SchemaConfiguration configuration) | +| [NestedItemsList](#nesteditemslist) | validate([List](#nesteditemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## NestedItemsListInput -public class NestedItemsListInput
+## NestedItemsListBuilder +public class NestedItemsListBuilder
builder for `List>>>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List>> | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| NestedItemsListBuilder()
Creates an empty list | +| NestedItemsListBuilder(List>>> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| NestedItemsListBuilder | add(List>> item) | +| List>>> | build()
Returns list input that should be used with Schema.validate | ## NestedItemsList public class NestedItemsList
@@ -92,7 +101,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [NestedItemsList](#nesteditemslist) | of([List>>>](#nesteditemslistinput) arg, SchemaConfiguration configuration) | +| static [NestedItemsList](#nesteditemslist) | of([List>>>](#nesteditemslistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
@@ -118,13 +127,15 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation NestedItems.ItemsList2 validatedPayload = NestedItems.Items.validate( - Arrays.asList( + new .ItemsListBuilder2( Arrays.asList( Arrays.asList( - 1 + Arrays.asList( + 1 + ) ) ) - ), + ).build(), configuration ); ``` @@ -138,18 +149,25 @@ NestedItems.ItemsList2 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList2](#itemslist2) | validate([List](#itemslistinput2) arg, SchemaConfiguration configuration) | +| [ItemsList2](#itemslist2) | validate([List](#itemslistbuilder2) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput2 -public class ItemsListInput2
+## ItemsListBuilder2 +public class ItemsListBuilder2
builder for `List>>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List> | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder2()
Creates an empty list | +| ItemsListBuilder2(List>> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder2 | add(List> item) | +| List>> | build()
Returns list input that should be used with Schema.validate | ## ItemsList2 public class ItemsList2
@@ -160,7 +178,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList2](#itemslist2) | of([List>>](#itemslistinput2) arg, SchemaConfiguration configuration) | +| static [ItemsList2](#itemslist2) | of([List>>](#itemslistbuilder2) arg, SchemaConfiguration configuration) | ## Items1 public static class Items1
@@ -186,11 +204,13 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation NestedItems.ItemsList1 validatedPayload = NestedItems.Items1.validate( - Arrays.asList( + new .ItemsListBuilder1( Arrays.asList( - 1 + Arrays.asList( + 1 + ) ) - ), + ).build(), configuration ); ``` @@ -204,18 +224,25 @@ NestedItems.ItemsList1 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList1](#itemslist1) | validate([List](#itemslistinput1) arg, SchemaConfiguration configuration) | +| [ItemsList1](#itemslist1) | validate([List](#itemslistbuilder1) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput1 -public class ItemsListInput1
+## ItemsListBuilder1 +public class ItemsListBuilder1
builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder1()
Creates an empty list | +| ItemsListBuilder1(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder1 | add(List item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ItemsList1 public class ItemsList1
@@ -226,7 +253,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList1](#itemslist1) | of([List>](#itemslistinput1) arg, SchemaConfiguration configuration) | +| static [ItemsList1](#itemslist1) | of([List>](#itemslistbuilder1) arg, SchemaConfiguration configuration) | ## Items2 public static class Items2
@@ -252,9 +279,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation NestedItems.ItemsList validatedPayload = NestedItems.Items2.validate( - Arrays.asList( - 1 - ), + new .ItemsListBuilder( + Arrays.asList( + 1 + ) + ).build(), configuration ); ``` @@ -268,18 +297,28 @@ NestedItems.ItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList](#itemslist) | validate([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput -public class ItemsListInput
+## ItemsListBuilder +public class ItemsListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Number | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder()
Creates an empty list | +| ItemsListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder | add(int item) | +| ItemsListBuilder | add(float item) | +| ItemsListBuilder | add(long item) | +| ItemsListBuilder | add(double item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ItemsList public class ItemsList
@@ -290,7 +329,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList](#itemslist) | of([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| static [ItemsList](#itemslist) | of([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items3 public static class Items3
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md index e9d09eec050..76c297f8c5c 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md @@ -12,7 +12,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [NotMoreComplexSchema.NotMoreComplexSchema1](#notmorecomplexschema1)
schema class | | static class | [NotMoreComplexSchema.Not](#not)
schema class | -| static class | [NotMoreComplexSchema.NotMapInput](#notmapinput)
builder for Map payloads | +| static class | [NotMoreComplexSchema.NotMapBuilder](#notmapbuilder)
builder for Map payloads | | static class | [NotMoreComplexSchema.NotMap](#notmap)
output class for Map payloads | | static class | [NotMoreComplexSchema.Foo](#foo)
schema class | @@ -83,10 +83,10 @@ NotMoreComplexSchema.NotMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NotMap](#notmap) | validate([Map](#notmapinput) arg, SchemaConfiguration configuration) | +| [NotMap](#notmap) | validate([Map](#notmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## NotMapInput -public class NotMapInput
+## NotMapBuilder +public class NotMapBuilder
builder for `Map` A class that builds the Map input type @@ -106,7 +106,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [NotMap](#notmap) | of([Map](#notmapinput) arg, SchemaConfiguration configuration) | +| static [NotMap](#notmap) | of([Map](#notmapbuilder) arg, SchemaConfiguration configuration) | | String | foo()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md index 368b45f8021..504f19d087a 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1](#objectpropertiesvalidation1)
schema class | -| static class | [ObjectPropertiesValidation.ObjectPropertiesValidationMapInput](#objectpropertiesvalidationmapinput)
builder for Map payloads | +| static class | [ObjectPropertiesValidation.ObjectPropertiesValidationMapBuilder](#objectpropertiesvalidationmapbuilder)
builder for Map payloads | | static class | [ObjectPropertiesValidation.ObjectPropertiesValidationMap](#objectpropertiesvalidationmap)
output class for Map payloads | | static class | [ObjectPropertiesValidation.Bar](#bar)
schema class | | static class | [ObjectPropertiesValidation.Foo](#foo)
schema class | @@ -37,11 +37,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) | validate([Map](#objectpropertiesvalidationmapinput) arg, SchemaConfiguration configuration) | +| [ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) | validate([Map](#objectpropertiesvalidationmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectPropertiesValidationMapInput -public class ObjectPropertiesValidationMapInput
+## ObjectPropertiesValidationMapBuilder +public class ObjectPropertiesValidationMapBuilder
builder for `Map` A class that builds the Map input type @@ -49,7 +49,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **foo** | long | | [optional] | +| **foo** | Number | | [optional] | | **bar** | String | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -62,8 +62,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) | of([Map](#objectpropertiesvalidationmapinput) arg, SchemaConfiguration configuration) | -| long | foo()
[optional] | +| static [ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) | of([Map](#objectpropertiesvalidationmapbuilder) arg, SchemaConfiguration configuration) | +| Number | foo()
[optional] | | String | bar()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md index 8139296dd9d..60448c8420b 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md @@ -12,11 +12,11 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [OneofComplexTypes.OneofComplexTypes1](#oneofcomplextypes1)
schema class | | static class | [OneofComplexTypes.Schema1](#schema1)
schema class | -| static class | [OneofComplexTypes.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [OneofComplexTypes.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [OneofComplexTypes.Schema1Map](#schema1map)
output class for Map payloads | | static class | [OneofComplexTypes.Foo](#foo)
schema class | | static class | [OneofComplexTypes.Schema0](#schema0)
schema class | -| static class | [OneofComplexTypes.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [OneofComplexTypes.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [OneofComplexTypes.Schema0Map](#schema0map)
output class for Map payloads | | static class | [OneofComplexTypes.Bar](#bar)
schema class | @@ -66,11 +66,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -90,7 +90,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | foo()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -126,11 +126,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -138,7 +138,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **bar** | long | | | +| **bar** | Number | | | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## Schema0Map @@ -150,8 +150,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | -| long | bar()
| +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | +| Number | bar()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Bar diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md index 18404f57c19..6ce8d43dc48 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md @@ -12,10 +12,10 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [OneofWithRequired.OneofWithRequired1](#oneofwithrequired1)
schema class | | static class | [OneofWithRequired.Schema1](#schema1)
schema class | -| static class | [OneofWithRequired.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [OneofWithRequired.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [OneofWithRequired.Schema1Map](#schema1map)
output class for Map payloads | | static class | [OneofWithRequired.Schema0](#schema0)
schema class | -| static class | [OneofWithRequired.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [OneofWithRequired.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [OneofWithRequired.Schema0Map](#schema0map)
output class for Map payloads | ## OneofWithRequired1 @@ -56,11 +56,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | baz()
| | @Nullable Object | foo()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -107,11 +107,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -132,7 +132,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | bar()
| | @Nullable Object | foo()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md index 6cceef26d40..0385143e458 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1](#propertieswithescapedcharacters1)
schema class | -| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharactersMapInput](#propertieswithescapedcharactersmapinput)
builder for Map payloads | +| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharactersMapBuilder](#propertieswithescapedcharactersmapbuilder)
builder for Map payloads | | static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap)
output class for Map payloads | | static class | [PropertiesWithEscapedCharacters.Foofbar](#foofbar)
schema class | | static class | [PropertiesWithEscapedCharacters.Footbar](#footbar)
schema class | @@ -41,11 +41,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) | validate([Map](#propertieswithescapedcharactersmapinput) arg, SchemaConfiguration configuration) | +| [PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) | validate([Map](#propertieswithescapedcharactersmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PropertiesWithEscapedCharactersMapInput -public class PropertiesWithEscapedCharactersMapInput
+## PropertiesWithEscapedCharactersMapBuilder +public class PropertiesWithEscapedCharactersMapBuilder
builder for `Map` A class that builds the Map input type @@ -70,7 +70,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) | of([Map](#propertieswithescapedcharactersmapinput) arg, SchemaConfiguration configuration) | +| static [PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) | of([Map](#propertieswithescapedcharactersmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["foo\nbar"], instance["foo\"bar"], instance["foo\\bar"], instance["foo\rbar"], instance["foo\tbar"], instance["foo\fbar"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md index e9450391e28..3bbd0ec2d82 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1](#propertynamedrefthatisnotareference1)
schema class | -| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReferenceMapInput](#propertynamedrefthatisnotareferencemapinput)
builder for Map payloads | +| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReferenceMapBuilder](#propertynamedrefthatisnotareferencemapbuilder)
builder for Map payloads | | static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap)
output class for Map payloads | | static class | [PropertyNamedRefThatIsNotAReference.Ref](#ref)
schema class | @@ -36,11 +36,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) | validate([Map](#propertynamedrefthatisnotareferencemapinput) arg, SchemaConfiguration configuration) | +| [PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) | validate([Map](#propertynamedrefthatisnotareferencemapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PropertyNamedRefThatIsNotAReferenceMapInput -public class PropertyNamedRefThatIsNotAReferenceMapInput
+## PropertyNamedRefThatIsNotAReferenceMapBuilder +public class PropertyNamedRefThatIsNotAReferenceMapBuilder
builder for `Map` A class that builds the Map input type @@ -60,7 +60,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) | of([Map](#propertynamedrefthatisnotareferencemapinput) arg, SchemaConfiguration configuration) | +| static [PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) | of([Map](#propertynamedrefthatisnotareferencemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["$ref"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAdditionalproperties.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAdditionalproperties.md index b797ac81f5c..0b72f234a70 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAdditionalproperties.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAdditionalproperties.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RefInAdditionalproperties.RefInAdditionalproperties1](#refinadditionalproperties1)
schema class | -| static class | [RefInAdditionalproperties.RefInAdditionalpropertiesMapInput](#refinadditionalpropertiesmapinput)
builder for Map payloads | +| static class | [RefInAdditionalproperties.RefInAdditionalpropertiesMapBuilder](#refinadditionalpropertiesmapbuilder)
builder for Map payloads | | static class | [RefInAdditionalproperties.RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap)
output class for Map payloads | ## RefInAdditionalproperties1 @@ -53,10 +53,10 @@ RefInAdditionalproperties.RefInAdditionalpropertiesMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | validate([Map](#refinadditionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | validate([Map](#refinadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RefInAdditionalpropertiesMapInput -public class RefInAdditionalpropertiesMapInput
+## RefInAdditionalpropertiesMapBuilder +public class RefInAdditionalpropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -75,7 +75,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | of([Map](#refinadditionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | of([Map](#refinadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInItems.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInItems.md index eddee203eec..7f40cc783aa 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInItems.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInItems.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RefInItems.RefInItems1](#refinitems1)
schema class | -| static class | [RefInItems.RefInItemsListInput](#refinitemslistinput)
builder for List payloads | +| static class | [RefInItems.RefInItemsListBuilder](#refinitemslistbuilder)
builder for List payloads | | static class | [RefInItems.RefInItemsList](#refinitemslist)
output class for List payloads | ## RefInItems1 @@ -38,8 +38,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation RefInItems.RefInItemsList validatedPayload = RefInItems.RefInItems1.validate( - Arrays.asList( - ), + new RefInItems.RefInItemsListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -53,18 +55,33 @@ RefInItems.RefInItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [RefInItemsList](#refinitemslist) | validate([List](#refinitemslistinput) arg, SchemaConfiguration configuration) | +| [RefInItemsList](#refinitemslist) | validate([List](#refinitemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RefInItemsListInput -public class RefInItemsListInput
-builder for `List` +## RefInItemsListBuilder +public class RefInItemsListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| RefInItemsListBuilder()
Creates an empty list | +| RefInItemsListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| RefInItemsListBuilder | add(Void item) | +| RefInItemsListBuilder | add(boolean item) | +| RefInItemsListBuilder | add(String item) | +| RefInItemsListBuilder | add(int item) | +| RefInItemsListBuilder | add(float item) | +| RefInItemsListBuilder | add(long item) | +| RefInItemsListBuilder | add(double item) | +| RefInItemsListBuilder | add(List item) | +| RefInItemsListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## RefInItemsList public class RefInItemsList
@@ -75,6 +92,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RefInItemsList](#refinitemslist) | of([List](#refinitemslistinput) arg, SchemaConfiguration configuration) | +| static [RefInItemsList](#refinitemslist) | of([List](#refinitemslistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md index c30157d77fa..31f0febad2d 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RefInProperty.RefInProperty1](#refinproperty1)
schema class | -| static class | [RefInProperty.RefInPropertyMapInput](#refinpropertymapinput)
builder for Map payloads | +| static class | [RefInProperty.RefInPropertyMapBuilder](#refinpropertymapbuilder)
builder for Map payloads | | static class | [RefInProperty.RefInPropertyMap](#refinpropertymap)
output class for Map payloads | ## RefInProperty1 @@ -35,11 +35,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [RefInPropertyMap](#refinpropertymap) | validate([Map](#refinpropertymapinput) arg, SchemaConfiguration configuration) | +| [RefInPropertyMap](#refinpropertymap) | validate([Map](#refinpropertymapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RefInPropertyMapInput -public class RefInPropertyMapInput
+## RefInPropertyMapBuilder +public class RefInPropertyMapBuilder
builder for `Map` A class that builds the Map input type @@ -59,7 +59,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RefInPropertyMap](#refinpropertymap) | of([Map](#refinpropertymapinput) arg, SchemaConfiguration configuration) | +| static [RefInPropertyMap](#refinpropertymap) | of([Map](#refinpropertymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | a()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md index f43f37a63e6..6b8337f11fd 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RequiredDefaultValidation.RequiredDefaultValidation1](#requireddefaultvalidation1)
schema class | -| static class | [RequiredDefaultValidation.RequiredDefaultValidationMapInput](#requireddefaultvalidationmapinput)
builder for Map payloads | +| static class | [RequiredDefaultValidation.RequiredDefaultValidationMapBuilder](#requireddefaultvalidationmapbuilder)
builder for Map payloads | | static class | [RequiredDefaultValidation.RequiredDefaultValidationMap](#requireddefaultvalidationmap)
output class for Map payloads | | static class | [RequiredDefaultValidation.Foo](#foo)
schema class | @@ -36,11 +36,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [RequiredDefaultValidationMap](#requireddefaultvalidationmap) | validate([Map](#requireddefaultvalidationmapinput) arg, SchemaConfiguration configuration) | +| [RequiredDefaultValidationMap](#requireddefaultvalidationmap) | validate([Map](#requireddefaultvalidationmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RequiredDefaultValidationMapInput -public class RequiredDefaultValidationMapInput
+## RequiredDefaultValidationMapBuilder +public class RequiredDefaultValidationMapBuilder
builder for `Map` A class that builds the Map input type @@ -60,7 +60,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RequiredDefaultValidationMap](#requireddefaultvalidationmap) | of([Map](#requireddefaultvalidationmapinput) arg, SchemaConfiguration configuration) | +| static [RequiredDefaultValidationMap](#requireddefaultvalidationmap) | of([Map](#requireddefaultvalidationmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md index c6689d62fbe..6c73df5c891 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RequiredValidation.RequiredValidation1](#requiredvalidation1)
schema class | -| static class | [RequiredValidation.RequiredValidationMapInput](#requiredvalidationmapinput)
builder for Map payloads | +| static class | [RequiredValidation.RequiredValidationMapBuilder](#requiredvalidationmapbuilder)
builder for Map payloads | | static class | [RequiredValidation.RequiredValidationMap](#requiredvalidationmap)
output class for Map payloads | | static class | [RequiredValidation.Bar](#bar)
schema class | | static class | [RequiredValidation.Foo](#foo)
schema class | @@ -38,11 +38,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [RequiredValidationMap](#requiredvalidationmap) | validate([Map](#requiredvalidationmapinput) arg, SchemaConfiguration configuration) | +| [RequiredValidationMap](#requiredvalidationmap) | validate([Map](#requiredvalidationmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RequiredValidationMapInput -public class RequiredValidationMapInput
+## RequiredValidationMapBuilder +public class RequiredValidationMapBuilder
builder for `Map` A class that builds the Map input type @@ -63,7 +63,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RequiredValidationMap](#requiredvalidationmap) | of([Map](#requiredvalidationmapinput) arg, SchemaConfiguration configuration) | +| static [RequiredValidationMap](#requiredvalidationmap) | of([Map](#requiredvalidationmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
| | @Nullable Object | bar()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md index 13d764a0034..ae441e85cc4 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1](#requiredwithemptyarray1)
schema class | -| static class | [RequiredWithEmptyArray.RequiredWithEmptyArrayMapInput](#requiredwithemptyarraymapinput)
builder for Map payloads | +| static class | [RequiredWithEmptyArray.RequiredWithEmptyArrayMapBuilder](#requiredwithemptyarraymapbuilder)
builder for Map payloads | | static class | [RequiredWithEmptyArray.RequiredWithEmptyArrayMap](#requiredwithemptyarraymap)
output class for Map payloads | | static class | [RequiredWithEmptyArray.Foo](#foo)
schema class | @@ -36,11 +36,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) | validate([Map](#requiredwithemptyarraymapinput) arg, SchemaConfiguration configuration) | +| [RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) | validate([Map](#requiredwithemptyarraymapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RequiredWithEmptyArrayMapInput -public class RequiredWithEmptyArrayMapInput
+## RequiredWithEmptyArrayMapBuilder +public class RequiredWithEmptyArrayMapBuilder
builder for `Map` A class that builds the Map input type @@ -60,7 +60,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) | of([Map](#requiredwithemptyarraymapinput) arg, SchemaConfiguration configuration) | +| static [RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) | of([Map](#requiredwithemptyarraymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | foo()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md index df3f1d27ea2..1a60f6079ba 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1](#requiredwithescapedcharacters1)
schema class | -| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharactersMapInput](#requiredwithescapedcharactersmapinput)
builder for Map payloads | +| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharactersMapBuilder](#requiredwithescapedcharactersmapbuilder)
builder for Map payloads | | static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap)
output class for Map payloads | ## RequiredWithEscapedCharacters1 @@ -35,11 +35,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) | validate([Map](#requiredwithescapedcharactersmapinput) arg, SchemaConfiguration configuration) | +| [RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) | validate([Map](#requiredwithescapedcharactersmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## RequiredWithEscapedCharactersMapInput -public class RequiredWithEscapedCharactersMapInput
+## RequiredWithEscapedCharactersMapBuilder +public class RequiredWithEscapedCharactersMapBuilder
builder for `Map` A class that builds the Map input type @@ -64,7 +64,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) | of([Map](#requiredwithescapedcharactersmapinput) arg, SchemaConfiguration configuration) | +| static [RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) | of([Map](#requiredwithescapedcharactersmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["foo\tbar"], instance["foo\nbar"], instance["foo\fbar"], instance["foo\rbar"], instance["foo\"bar"], instance["foo\\bar"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md index 4a0ae738ded..7540335bc23 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1)
schema class | -| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapInput](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapinput)
builder for Map payloads | +| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapbuilder)
builder for Map payloads | | static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap)
output class for Map payloads | | static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.Alpha](#alpha)
schema class | @@ -58,10 +58,10 @@ TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNo ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | validate([Map](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapinput) arg, SchemaConfiguration configuration) | +| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | validate([Map](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapInput -public class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapInput
+## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder +public class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | of([Map](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapinput) arg, SchemaConfiguration configuration) | +| static [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | of([Map](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapbuilder) arg, SchemaConfiguration configuration) | | Number | alpha()
[optional] if omitted the server will use the default value of 5.0 | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.java index bfbdee16c84..5ddc584fe78 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.java @@ -91,7 +91,7 @@ public boolean getAdditionalProperty(String name) throws UnsetPropertyException, return (boolean) value; } } - public static class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapInput { + public static class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder { // optionalProperties + additionalProperties } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java index 2d652d4d764..ae0edba19d3 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java @@ -85,7 +85,7 @@ public static AdditionalpropertiesAreAllowedByDefaultMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java index fe8a9e78286..1ca666c79c3 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java @@ -56,7 +56,7 @@ public boolean getAdditionalProperty(String name) throws UnsetPropertyException return (boolean) value; } } - public static class AdditionalpropertiesCanExistByItselfMapInput { + public static class AdditionalpropertiesCanExistByItselfMapBuilder { // Map } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java index b0217658ede..4dd5370756c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.java @@ -81,7 +81,7 @@ public static Schema0Map of(Map arg, SchemaC return get(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because addProps is unset } @@ -302,7 +302,7 @@ public boolean getAdditionalProperty(String name) throws UnsetPropertyException return (boolean) value; } } - public static class AdditionalpropertiesShouldNotLookInApplicatorsMapInput { + public static class AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder { // Map } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java index 28a505d59d3..44e8ed458bf 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java @@ -60,12 +60,12 @@ public static Schema0Map of(Map arg, SchemaC return Schema0.getInstance().validate(arg, configuration); } - public long bar() { + public Number bar() { @Nullable Object value = get("bar"); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for bar"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -74,7 +74,7 @@ public long bar() { return get(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because addProps is unset } @@ -316,7 +316,7 @@ public String foo() { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java index 35871d6a4b4..066fa270557 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java @@ -75,7 +75,7 @@ public String foo() { return get(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because addProps is unset } @@ -317,7 +317,7 @@ public Void baz() { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } @@ -545,12 +545,12 @@ public static AllofWithBaseSchemaMap of(Map return AllofWithBaseSchema1.getInstance().validate(arg, configuration); } - public long bar() { + public Number bar() { @Nullable Object value = get("bar"); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for bar"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -559,7 +559,7 @@ public long bar() { return get(name); } } - public static class AllofWithBaseSchemaMapInput { + public static class AllofWithBaseSchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java index ebdc18e266c..07d21b55373 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java @@ -60,12 +60,12 @@ public static Schema0Map of(Map arg, SchemaC return Schema0.getInstance().validate(arg, configuration); } - public long bar() { + public Number bar() { @Nullable Object value = get("bar"); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for bar"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -74,7 +74,7 @@ public long bar() { return get(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because addProps is unset } @@ -316,7 +316,7 @@ public String foo() { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java index 03d073714db..87e209e78a8 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArrays.java @@ -4,6 +4,7 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; @@ -43,8 +44,66 @@ public static ArrayTypeMatchesArraysList of(List arg } } - public static class ArrayTypeMatchesArraysListInput { - // class to build List + public static class ArrayTypeMatchesArraysListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public ArrayTypeMatchesArraysListBuilder() { + list = new ArrayList<>(); + } + + public ArrayTypeMatchesArraysListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public ArrayTypeMatchesArraysListBuilder add(Void item) { + list.add(null); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(boolean item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(String item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(int item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(float item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(long item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(double item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(List item) { + list.add(item); + return this; + } + + public ArrayTypeMatchesArraysListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java index 37def2ae71b..8f5df30b113 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java @@ -198,7 +198,7 @@ public String foo() throws UnsetPropertyException { return get(name); } } - public static class EnumsInPropertiesMapInput { + public static class EnumsInPropertiesMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java index c16496988eb..68c2122d526 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java @@ -71,7 +71,7 @@ public static ForbiddenPropertyMap of(Map ar return get(name); } } - public static class ForbiddenPropertyMapInput { + public static class ForbiddenPropertyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java index 21b8d4ef7d9..fecbe9a4124 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefault.java @@ -109,7 +109,7 @@ public String bar() throws UnsetPropertyException { return get(name); } } - public static class InvalidStringValueForDefaultMapInput { + public static class InvalidStringValueForDefaultMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java index bc5b97558d6..770bb5b7aa4 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java @@ -43,8 +43,41 @@ public static ItemsList of(List arg, SchemaConfiguration configuration) } } - public static class ItemsListInput { + public static class ItemsListBuilder { // class to build List + private final List list; + + public ItemsListBuilder() { + list = new ArrayList<>(); + } + + public ItemsListBuilder(List list) { + this.list = list; + } + + public ItemsListBuilder add(int item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(float item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(long item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(double item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -123,8 +156,26 @@ public static ItemsList1 of(List> arg, SchemaConfiguration configur } } - public static class ItemsListInput1 { + public static class ItemsListBuilder1 { // class to build List> + private final List> list; + + public ItemsListBuilder1() { + list = new ArrayList<>(); + } + + public ItemsListBuilder1(List> list) { + this.list = list; + } + + public ItemsListBuilder1 add(List item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -203,8 +254,26 @@ public static ItemsList2 of(List>> arg, SchemaConfiguration co } } - public static class ItemsListInput2 { + public static class ItemsListBuilder2 { // class to build List>> + private final List>> list; + + public ItemsListBuilder2() { + list = new ArrayList<>(); + } + + public ItemsListBuilder2(List>> list) { + this.list = list; + } + + public ItemsListBuilder2 add(List> item) { + list.add(item); + return this; + } + + public List>> build() { + return list; + } } @@ -283,8 +352,26 @@ public static NestedItemsList of(List>>> arg, SchemaConfi } } - public static class NestedItemsListInput { + public static class NestedItemsListBuilder { // class to build List>>> + private final List>>> list; + + public NestedItemsListBuilder() { + list = new ArrayList<>(); + } + + public NestedItemsListBuilder(List>>> list) { + this.list = list; + } + + public NestedItemsListBuilder add(List>> item) { + list.add(item); + return this; + } + + public List>>> build() { + return list; + } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java index 47087228cbd..bf605a8b2de 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java @@ -75,7 +75,7 @@ public String foo() throws UnsetPropertyException { return get(name); } } - public static class NotMapInput { + public static class NotMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java index fd5c4834261..1f557eaad9f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java @@ -72,14 +72,14 @@ public static ObjectPropertiesValidationMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java index a8779ffcc3c..1a68336d88d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java @@ -60,12 +60,12 @@ public static Schema0Map of(Map arg, SchemaC return Schema0.getInstance().validate(arg, configuration); } - public long bar() { + public Number bar() { @Nullable Object value = get("bar"); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for bar"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -74,7 +74,7 @@ public long bar() { return get(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because addProps is unset } @@ -316,7 +316,7 @@ public String foo() { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java index 4c5e9357f8c..85017ec7c07 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java @@ -61,7 +61,7 @@ public static Schema0Map of(Map arg, SchemaC return get(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because addProps is unset } @@ -291,7 +291,7 @@ public static Schema1Map of(Map arg, SchemaC return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java index 7232f9a2961..2d9787d426b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java @@ -125,7 +125,7 @@ public static PropertiesWithEscapedCharactersMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java index c418e940514..d143d30c631 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java @@ -65,7 +65,7 @@ public static PropertyNamedRefThatIsNotAReferenceMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java index 84717cf21fc..1dcaf1c1519 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalproperties.java @@ -39,7 +39,7 @@ public static RefInAdditionalpropertiesMap of(Map } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java index 2a4a1838fe5..fb86c6c752a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInItems.java @@ -4,6 +4,7 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; @@ -31,8 +32,66 @@ public static RefInItemsList of(List arg, SchemaConf } } - public static class RefInItemsListInput { - // class to build List + public static class RefInItemsListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public RefInItemsListBuilder() { + list = new ArrayList<>(); + } + + public RefInItemsListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public RefInItemsListBuilder add(Void item) { + list.add(null); + return this; + } + + public RefInItemsListBuilder add(boolean item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(String item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(int item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(float item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(long item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(double item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(List item) { + list.add(item); + return this; + } + + public RefInItemsListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java index 4ad27303134..dce791aa06a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInProperty.java @@ -63,7 +63,7 @@ public static RefInPropertyMap of(Map arg, S return get(name); } } - public static class RefInPropertyMapInput { + public static class RefInPropertyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java index caf58c7a6c3..4a54b12dc06 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java @@ -69,7 +69,7 @@ public static RequiredDefaultValidationMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java index 8c992e07b4a..720fd09538b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java @@ -86,7 +86,7 @@ public static RequiredValidationMap of(Map a return get(name); } } - public static class RequiredValidationMapInput { + public static class RequiredValidationMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java index 7ebbb2dc374..5847be5ef6f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java @@ -69,7 +69,7 @@ public static RequiredWithEmptyArrayMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java index 415a20aba47..73ad540f7d0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java @@ -57,7 +57,7 @@ public static RequiredWithEscapedCharactersMap of(Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java index 0b16c33cd75..3fce0fe7de6 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.java @@ -120,7 +120,7 @@ public Number alpha() throws UnsetPropertyException { return get(name); } } - public static class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapInput { + public static class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder { // Map because addProps is unset } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidateTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidateTest.java index 2ecc3133f38..4855aad8ccd 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidateTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidateTest.java @@ -25,7 +25,7 @@ public void testNoAdditionalPropertiesIsValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration @@ -40,11 +40,11 @@ public void testAnAdditionalValidPropertyIsValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), new AbstractMap.SimpleEntry( "quux", @@ -62,17 +62,17 @@ public void testAnAdditionalInvalidPropertyIsInvalidFails() { try { schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "quux", - 12L + 12 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java index 1884565bfd7..d18db3acc22 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java @@ -25,11 +25,11 @@ public void testAdditionalPropertiesAreAllowedPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), new AbstractMap.SimpleEntry( "quux", diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java index 1c6623e4c9d..84a4ff00ab9 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java @@ -41,7 +41,7 @@ public void testAnAdditionalInvalidPropertyIsInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicatorsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicatorsTest.java index bec5fe1b09d..865012aca94 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicatorsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesShouldNotLookInApplicatorsTest.java @@ -26,7 +26,7 @@ public void testPropertiesDefinedInAllofAreNotExaminedFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), new AbstractMap.SimpleEntry( "bar", diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java index 98a190f821b..6fc648438c7 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java @@ -23,7 +23,7 @@ public void testAllofFalseAnyofFalseOneofTrueFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 5L, + 5, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -38,7 +38,7 @@ public void testAllofFalseAnyofTrueOneofFalseFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 3L, + 3, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -53,7 +53,7 @@ public void testAllofFalseAnyofTrueOneofTrueFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 15L, + 15, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -68,7 +68,7 @@ public void testAllofTrueAnyofFalseOneofFalseFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 2L, + 2, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -82,7 +82,7 @@ public void testAllofTrueAnyofTrueOneofTruePasses() { // allOf: true, anyOf: true, oneOf: true final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); schema.validate( - 30L, + 30, configuration ); } @@ -93,7 +93,7 @@ public void testAllofFalseAnyofFalseOneofFalseFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -108,7 +108,7 @@ public void testAllofTrueAnyofFalseOneofTrueFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 10L, + 10, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -123,7 +123,7 @@ public void testAllofTrueAnyofTrueOneofFalseFails() { final var schema = AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1.getInstance(); try { schema.validate( - 6L, + 6, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java index ee0e4dcc445..eb194df97d3 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java @@ -23,7 +23,7 @@ public void testMismatchOneFails() { final var schema = AllofSimpleTypes.AllofSimpleTypes1.getInstance(); try { schema.validate( - 35L, + 35, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -37,7 +37,7 @@ public void testValidPasses() { // valid final var schema = AllofSimpleTypes.AllofSimpleTypes1.getInstance(); schema.validate( - 25L, + 25, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java index ec4276cdc80..0d41594ad73 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java @@ -70,7 +70,7 @@ public void testMismatchFirstFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "bar", - 2L + 2 ) ), configuration @@ -93,7 +93,7 @@ public void testAllofPasses() { ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java index 67768a67c5f..638c63b2e78 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java @@ -48,11 +48,11 @@ public void testMismatchFirstAllofFails() { try { schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "baz", null ) @@ -77,7 +77,7 @@ public void testValidPasses() { ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), new AbstractMap.SimpleEntry( "baz", @@ -97,7 +97,7 @@ public void testMismatchBothFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "bar", - 2L + 2 ) ), configuration @@ -121,7 +121,7 @@ public void testMismatchSecondAllofFails() { ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java index 2e4c2a59db1..f1f9df1351d 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java @@ -22,7 +22,7 @@ public void testAnyDataIsValidPasses() { // any data is valid final var schema = AllofWithOneEmptySchema.AllofWithOneEmptySchema1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java index 1cefd1bd175..a4634ebdb51 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java @@ -37,7 +37,7 @@ public void testNumberIsValidPasses() { // number is valid final var schema = AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java index d2c94a7611a..eec76b3ec54 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java @@ -37,7 +37,7 @@ public void testNumberIsValidPasses() { // number is valid final var schema = AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java index b9d8a4ff735..bd5c3b0993b 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java @@ -22,7 +22,7 @@ public void testAnyDataIsValidPasses() { // any data is valid final var schema = AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java index 4113805a486..f25fd6d12dd 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java @@ -44,7 +44,7 @@ public void testBothAnyofValidComplexPasses() { ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration @@ -59,7 +59,7 @@ public void testFirstAnyofValidComplexPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "bar", - 2L + 2 ) ), configuration @@ -75,7 +75,7 @@ public void testNeitherAnyofValidComplexFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 2L + 2 ), new AbstractMap.SimpleEntry( "bar", diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java index 3b93976b507..538f6f756a4 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java @@ -22,7 +22,7 @@ public void testBothAnyofValidPasses() { // both anyOf valid final var schema = Anyof.Anyof1.getInstance(); schema.validate( - 3L, + 3, configuration ); } @@ -47,7 +47,7 @@ public void testFirstAnyofValidPasses() { // first anyOf valid final var schema = Anyof.Anyof1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java index 3c21e060277..3de52d14942 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java @@ -23,7 +23,7 @@ public void testMismatchBaseSchemaFails() { final var schema = AnyofWithBaseSchema.AnyofWithBaseSchema1.getInstance(); try { schema.validate( - 3L, + 3, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java index 44ecd14c170..83e7e8aa4d1 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java @@ -22,7 +22,7 @@ public void testNumberIsValidPasses() { // number is valid final var schema = AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1.getInstance(); schema.validate( - 123L, + 123, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java index 4e7128faef6..95312f0730f 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java @@ -52,8 +52,10 @@ public void testAnArrayIsAnArrayPasses() { // an array is an array final var schema = ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1.getInstance(); schema.validate( - Arrays.asList( - ), + new ArrayTypeMatchesArrays.ArrayTypeMatchesArraysListBuilder( + Arrays.asList( + ) + ).build(), configuration ); } @@ -94,7 +96,7 @@ public void testAnIntegerIsNotAnArrayFails() { final var schema = ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java index 5a2302fc603..eeaf8f4afb7 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java @@ -120,7 +120,7 @@ public void testAnIntegerIsNotABooleanFails() { final var schema = BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -135,7 +135,7 @@ public void testZeroIsNotABooleanFails() { final var schema = BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1.getInstance(); try { schema.validate( - 0L, + 0, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java index 823ed263202..c58ef383b46 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java @@ -23,7 +23,7 @@ public void testIntByIntFailFails() { final var schema = ByInt.ByInt1.getInstance(); try { schema.validate( - 7L, + 7, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -37,7 +37,7 @@ public void testIntByIntPasses() { // int by int final var schema = ByInt.ByInt1.getInstance(); schema.validate( - 10L, + 10, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java index 433a3df86e1..ebccab286f2 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java @@ -23,7 +23,7 @@ public void test35IsNotMultipleOf15Fails() { final var schema = ByNumber.ByNumber1.getInstance(); try { schema.validate( - 35L, + 35, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -47,7 +47,7 @@ public void testZeroIsMultipleOfAnythingPasses() { // zero is multiple of anything final var schema = ByNumber.ByNumber1.getInstance(); schema.validate( - 0L, + 0, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java index 095c463ca14..5f9855be53b 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = DateTimeFormat.DateTimeFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java index 1480210a5e4..aa4a0f56f22 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = EmailFormat.EmailFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java index 3517a90c541..d912cae54fd 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java @@ -47,7 +47,7 @@ public void testIntegerZeroIsValidPasses() { // integer zero is valid final var schema = EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1.getInstance(); schema.validate( - 0L, + 0, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java index 6c0d543656c..a6c9cd13e2b 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java @@ -47,7 +47,7 @@ public void testIntegerOneIsValidPasses() { // integer one is valid final var schema = EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java index bd6a5dedecc..9702f3e263a 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java @@ -48,7 +48,7 @@ public void testIntegerZeroIsInvalidFails() { final var schema = EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01.getInstance(); try { schema.validate( - 0L, + 0, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java index bafdd1d0d26..5f1e21b4a0c 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java @@ -38,7 +38,7 @@ public void testIntegerOneIsInvalidFails() { final var schema = EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java index b43079aa337..3e5f439b7d5 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java @@ -24,13 +24,13 @@ public void testPropertyPresentFails() { try { schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration @@ -47,13 +47,13 @@ public void testPropertyAbsentPasses() { final var schema = ForbiddenProperty.ForbiddenProperty1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "baz", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java index 07231d712d1..1f1dce13064 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = HostnameFormat.HostnameFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java index 7549d1aa1b1..bbe379bc573 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java @@ -124,7 +124,7 @@ public void testAnIntegerIsAnIntegerPasses() { // an integer is an integer final var schema = IntegerTypeMatchesIntegers.IntegerTypeMatchesIntegers1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfTest.java index e3c9a7f18ff..0bb231fc3a6 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfTest.java @@ -37,7 +37,7 @@ public void testValidIntegerWithMultipleofFloatPasses() { // valid integer with multipleOf float final var schema = InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1.getInstance(); schema.validate( - 123456789L, + 123456789, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java index 1ff150bfc08..614e2659028 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = Ipv4Format.Ipv4Format1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java index de3e656a0bd..4155377c7aa 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = Ipv6Format.Ipv6Format1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java index 09a7ffb2e85..74bb28fc1a4 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = JsonPointerFormat.JsonPointerFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java index eb048443032..9f25b537de2 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java @@ -47,7 +47,7 @@ public void testBoundaryPointIntegerIsValidPasses() { // boundary point integer is valid final var schema = MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1.getInstance(); schema.validate( - 300L, + 300, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java index a0fac62f7e6..06d6d4f4b88 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java @@ -23,7 +23,7 @@ public void testShorterIsValidPasses() { final var schema = MaxitemsValidation.MaxitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 1L + 1 ), configuration ); @@ -35,8 +35,8 @@ public void testExactLengthIsValidPasses() { final var schema = MaxitemsValidation.MaxitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, - 2L + 1, + 2 ), configuration ); @@ -49,9 +49,9 @@ public void testTooLongIsInvalidFails() { try { schema.validate( Arrays.asList( - 1L, - 2L, - 3L + 1, + 2, + 3 ), configuration ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java index f9fc8e0854a..69c1b7e6a30 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java @@ -57,7 +57,7 @@ public void testIgnoresNonStringsPasses() { // ignores non-strings final var schema = MaxlengthValidation.MaxlengthValidation1.getInstance(); schema.validate( - 100L, + 100, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java index 9354b4ed606..ae91313b4d8 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java @@ -26,7 +26,7 @@ public void testOnePropertyIsInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java index 80f79bc15a7..2efb8bc02f4 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java @@ -25,7 +25,7 @@ public void testShorterIsValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration @@ -38,13 +38,13 @@ public void testExactLengthIsValidPasses() { final var schema = MaxpropertiesValidation.MaxpropertiesValidation1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration @@ -58,17 +58,17 @@ public void testTooLongIsInvalidFails() { try { schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "baz", - 3L + 3 ) ), configuration @@ -84,7 +84,7 @@ public void testIgnoresOtherNonObjectsPasses() { // ignores other non-objects final var schema = MaxpropertiesValidation.MaxpropertiesValidation1.getInstance(); schema.validate( - 12L, + 12, configuration ); } @@ -95,9 +95,9 @@ public void testIgnoresArraysPasses() { final var schema = MaxpropertiesValidation.MaxpropertiesValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, - 2L, - 3L + 1, + 2, + 3 ), configuration ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java index 74bd9a532a2..559864da4a8 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java @@ -32,7 +32,7 @@ public void testBoundaryPointIsValidPasses() { // boundary point is valid final var schema = MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1.getInstance(); schema.validate( - -2L, + -2, configuration ); } @@ -43,7 +43,7 @@ public void testIntBelowTheMinimumIsInvalidFails() { final var schema = MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1.getInstance(); try { schema.validate( - -3L, + -3, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -57,7 +57,7 @@ public void testPositiveAboveTheMinimumIsValidPasses() { // positive above the minimum is valid final var schema = MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1.getInstance(); schema.validate( - 0L, + 0, configuration ); } @@ -67,7 +67,7 @@ public void testNegativeAboveTheMinimumIsValidPasses() { // negative above the minimum is valid final var schema = MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1.getInstance(); schema.validate( - -1L, + -1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java index 85d057c7d1c..731c74f3c00 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java @@ -23,7 +23,7 @@ public void testExactLengthIsValidPasses() { final var schema = MinitemsValidation.MinitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 1L + 1 ), configuration ); @@ -45,8 +45,8 @@ public void testLongerIsValidPasses() { final var schema = MinitemsValidation.MinitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, - 2L + 1, + 2 ), configuration ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java index 091afffeedb..b9ebc3f6e67 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java @@ -42,7 +42,7 @@ public void testIgnoresNonStringsPasses() { // ignores non-strings final var schema = MinlengthValidation.MinlengthValidation1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java index 6c893166e8b..8d507996133 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java @@ -25,7 +25,7 @@ public void testExactLengthIsValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration @@ -37,7 +37,7 @@ public void testIgnoresOtherNonObjectsPasses() { // ignores other non-objects final var schema = MinpropertiesValidation.MinpropertiesValidation1.getInstance(); schema.validate( - 12L, + 12, configuration ); } @@ -48,13 +48,13 @@ public void testLongerIsValidPasses() { final var schema = MinpropertiesValidation.MinpropertiesValidation1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java index a430969db55..506c160df1c 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java @@ -33,7 +33,7 @@ public void testAnythingNonNullIsInvalidFails() { final var schema = NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1.getInstance(); try { schema.validate( - 123L, + 123, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java index ac5154ec050..9948377f8ff 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java @@ -33,7 +33,7 @@ public void testAnythingNonNullIsInvalidFails() { final var schema = NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1.getInstance(); try { schema.validate( - 123L, + 123, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java index c9ffae3fb17..4638daad138 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java @@ -32,23 +32,23 @@ public void testNestedArrayWithInvalidTypeFails() { ), Arrays.asList( Arrays.asList( - 2L + 2 ), Arrays.asList( - 3L + 3 ) ) ), Arrays.asList( Arrays.asList( Arrays.asList( - 4L + 4 ), Arrays.asList( - 5L + 5 ), Arrays.asList( - 6L + 6 ) ) ) @@ -70,24 +70,24 @@ public void testNotDeepEnoughFails() { Arrays.asList( Arrays.asList( Arrays.asList( - 1L + 1 ), Arrays.asList( - 2L + 2 ), Arrays.asList( - 3L + 3 ) ), Arrays.asList( Arrays.asList( - 4L + 4 ), Arrays.asList( - 5L + 5 ), Arrays.asList( - 6L + 6 ) ) ), @@ -104,36 +104,38 @@ public void testValidNestedArrayPasses() { // valid nested array final var schema = NestedItems.NestedItems1.getInstance(); schema.validate( - Arrays.asList( + new NestedItems.NestedItemsListBuilder( Arrays.asList( Arrays.asList( Arrays.asList( - 1L - ) - ), - Arrays.asList( - Arrays.asList( - 2L + Arrays.asList( + 1 + ) ), Arrays.asList( - 3L + Arrays.asList( + 2 + ), + Arrays.asList( + 3 + ) ) - ) - ), - Arrays.asList( + ), Arrays.asList( Arrays.asList( - 4L - ), - Arrays.asList( - 5L - ), - Arrays.asList( - 6L + Arrays.asList( + 4 + ), + Arrays.asList( + 5 + ), + Arrays.asList( + 6 + ) ) ) ) - ), + ).build(), configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java index aab57086a2b..4d04ecd7e45 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java @@ -33,7 +33,7 @@ public void testAnythingNonNullIsInvalidFails() { final var schema = NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1.getInstance(); try { schema.validate( - 123L, + 123, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java index 5c0290898d0..436634b9088 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java @@ -25,7 +25,7 @@ public void testOtherMatchPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration @@ -57,7 +57,7 @@ public void testMatchPasses() { // match final var schema = NotMoreComplexSchema.NotMoreComplexSchema1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java index ea74eed1c68..e21dbb7b848 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java @@ -23,7 +23,7 @@ public void testDisallowedFails() { final var schema = Not.Not1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java index d5e8e5c8008..8b353306637 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java @@ -23,7 +23,7 @@ public void testZeroIsNotNullFails() { final var schema = NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1.getInstance(); try { schema.validate( - 0L, + 0, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -125,7 +125,7 @@ public void testAnIntegerIsNotNullFails() { final var schema = NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java index 942f34a447e..3fa8e9e9749 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java @@ -32,7 +32,7 @@ public void testAnIntegerIsANumberPasses() { // an integer is a number final var schema = NumberTypeMatchesNumbers.NumberTypeMatchesNumbers1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java index 1022b4635ec..6aea0dce582 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java @@ -25,7 +25,7 @@ public void testBothPropertiesPresentAndValidIsValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), new AbstractMap.SimpleEntry( "bar", @@ -57,7 +57,7 @@ public void testIgnoresOtherNonObjectsPasses() { // ignores other non-objects final var schema = ObjectPropertiesValidation.ObjectPropertiesValidation1.getInstance(); schema.validate( - 12L, + 12, configuration ); } @@ -108,7 +108,7 @@ public void testOnePropertyInvalidIsInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), new AbstractMap.SimpleEntry( "bar", diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java index cd6ebc6261d..b2c5cdbd09b 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java @@ -50,7 +50,7 @@ public void testAnIntegerIsNotAnObjectFails() { final var schema = ObjectTypeMatchesObjects.ObjectTypeMatchesObjects1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java index 1a9b594f5b1..87d1a19a950 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java @@ -45,7 +45,7 @@ public void testBothOneofValidComplexFails() { ), new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration @@ -64,7 +64,7 @@ public void testFirstOneofValidComplexPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "bar", - 2L + 2 ) ), configuration @@ -80,7 +80,7 @@ public void testNeitherOneofValidComplexFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry( "foo", - 2L + 2 ), new AbstractMap.SimpleEntry( "bar", diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java index ad7dec4741e..4dda94bab40 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java @@ -23,7 +23,7 @@ public void testBothOneofValidFails() { final var schema = Oneof.Oneof1.getInstance(); try { schema.validate( - 3L, + 3, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -62,7 +62,7 @@ public void testFirstOneofValidPasses() { // first oneOf valid final var schema = Oneof.Oneof1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java index 7fda4df8831..5389fe31f08 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java @@ -23,7 +23,7 @@ public void testMismatchBaseSchemaFails() { final var schema = OneofWithBaseSchema.OneofWithBaseSchema1.getInstance(); try { schema.validate( - 3L, + 3, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java index 06f6aa44f70..8d26139253c 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java @@ -33,7 +33,7 @@ public void testBothValidInvalidFails() { final var schema = OneofWithEmptySchema.OneofWithEmptySchema1.getInstance(); try { schema.validate( - 123L, + 123, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java index 7b18e9ebfd7..d3227949bfb 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java @@ -23,13 +23,13 @@ public void testFirstValidValidPasses() { final var schema = OneofWithRequired.OneofWithRequired1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ) ), configuration @@ -43,17 +43,17 @@ public void testBothValidInvalidFails() { try { schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "bar", - 2L + 2 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "baz", - 3L + 3 ) ), configuration @@ -70,13 +70,13 @@ public void testSecondValidValidPasses() { final var schema = OneofWithRequired.OneofWithRequired1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "baz", - 3L + 3 ) ), configuration @@ -92,7 +92,7 @@ public void testBothInvalidInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "bar", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java index 58df7fb7c61..704e82b85ac 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java @@ -57,7 +57,7 @@ public void testIgnoresIntegersPasses() { // ignores integers final var schema = PatternValidation.PatternValidation1.getInstance(); schema.validate( - 123L, + 123, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java index ad498ac90a4..6116c5574de 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java @@ -23,29 +23,29 @@ public void testObjectWithAllNumbersIsValidPasses() { final var schema = PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\nbar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\"bar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\\bar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\rbar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\tbar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\fbar", - 1L + 1 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java index e3a8ed9ffa6..8f8cd1c99ce 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java @@ -41,7 +41,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalpropertiesTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalpropertiesTest.java index d67750fbf3c..d023fed942d 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalpropertiesTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAdditionalpropertiesTest.java @@ -49,7 +49,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ) ) diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAllofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAllofTest.java index 91094b6b2a6..63743591e5a 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAllofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAllofTest.java @@ -41,7 +41,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAnyofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAnyofTest.java index fcb1060eae8..83dfa3383f9 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAnyofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInAnyofTest.java @@ -41,7 +41,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInItemsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInItemsTest.java index 34918b7e372..a8204b2ba45 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInItemsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInItemsTest.java @@ -22,14 +22,16 @@ public void testPropertyNamedRefValidPasses() { // property named $ref valid final var schema = RefInItems.RefInItems1.getInstance(); schema.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry<>( - "$ref", - "a" + new RefInItems.RefInItemsListBuilder( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry<>( + "$ref", + "a" + ) ) ) - ), + ).build(), configuration ); } @@ -44,7 +46,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ) ), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInNotTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInNotTest.java index 9dffcd0d7a9..5689e12c24d 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInNotTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInNotTest.java @@ -25,7 +25,7 @@ public void testPropertyNamedRefValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInOneofTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInOneofTest.java index fc948af503c..fa032abe8b6 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInOneofTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInOneofTest.java @@ -41,7 +41,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInPropertyTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInPropertyTest.java index ee37d6e3941..e0156950da0 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInPropertyTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefInPropertyTest.java @@ -49,7 +49,7 @@ public void testPropertyNamedRefInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "$ref", - 2L + 2 ) ) ) diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java index 9fc25445061..5342768572f 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java @@ -25,7 +25,7 @@ public void testPresentRequiredPropertyIsValidPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "foo", - 1L + 1 ) ), configuration @@ -37,7 +37,7 @@ public void testIgnoresOtherNonObjectsPasses() { // ignores other non-objects final var schema = RequiredValidation.RequiredValidation1.getInstance(); schema.validate( - 12L, + 12, configuration ); } @@ -72,7 +72,7 @@ public void testNonPresentRequiredPropertyIsInvalidFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "bar", - 1L + 1 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java index a46b487b20f..3a64c56ae92 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java @@ -47,29 +47,29 @@ public void testObjectWithAllPropertiesPresentIsValidPasses() { final var schema = RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1.getInstance(); schema.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\nbar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\"bar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\\bar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\rbar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\tbar", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "foo\fbar", - 1L + 1 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java index 78f85e2d6c6..2cb6832d042 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java @@ -23,7 +23,7 @@ public void testSomethingElseIsInvalidFails() { final var schema = SimpleEnumValidation.SimpleEnumValidation1.getInstance(); try { schema.validate( - 4L, + 4, configuration ); throw new RuntimeException("A different exception must be thrown"); @@ -37,7 +37,7 @@ public void testOneOfTheEnumIsValidPasses() { // one of the enum is valid final var schema = SimpleEnumValidation.SimpleEnumValidation1.getInstance(); schema.validate( - 1L, + 1, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java index e8e9ec05907..c93e2a68dea 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java @@ -33,7 +33,7 @@ public void test1IsNotAStringFails() { final var schema = StringTypeMatchesStrings.StringTypeMatchesStrings1.getInstance(); try { schema.validate( - 1L, + 1, configuration ); throw new RuntimeException("A different exception must be thrown"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingTest.java index 8c885465d68..d0ecfad9acf 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingTest.java @@ -36,7 +36,7 @@ public void testAnExplicitPropertyValueIsCheckedAgainstMaximumPassingPasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "alpha", - 1L + 1 ) ), configuration @@ -52,7 +52,7 @@ public void testAnExplicitPropertyValueIsCheckedAgainstMaximumFailingFails() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "alpha", - 5L + 5 ) ), configuration diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java index cb03ab1d249..ead71024afc 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java @@ -25,7 +25,7 @@ public void testNumbersAreUniqueIfMathematicallyUnequalPasses() { Arrays.asList( 1.0d, 1.0d, - 1L + 1 ), configuration ); @@ -37,8 +37,8 @@ public void testNonUniqueArrayOfIntegersIsValidPasses() { final var schema = UniqueitemsFalseValidation.UniqueitemsFalseValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, - 1L + 1, + 1 ), configuration ); @@ -90,7 +90,7 @@ public void test1AndTrueAreUniquePasses() { final var schema = UniqueitemsFalseValidation.UniqueitemsFalseValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, + 1, true ), configuration @@ -163,7 +163,7 @@ public void testTrueIsNotEqualToOnePasses() { final var schema = UniqueitemsFalseValidation.UniqueitemsFalseValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, + 1, true ), configuration @@ -179,13 +179,13 @@ public void testNonUniqueHeterogeneousTypesAreValidPasses() { MapMaker.makeMap( ), Arrays.asList( - 1L + 1 ), true, null, MapMaker.makeMap( ), - 1L + 1 ), configuration ); @@ -197,7 +197,7 @@ public void testFalseIsNotEqualToZeroPasses() { final var schema = UniqueitemsFalseValidation.UniqueitemsFalseValidation1.getInstance(); schema.validate( Arrays.asList( - 0L, + 0, false ), configuration @@ -210,8 +210,8 @@ public void testUniqueArrayOfIntegersIsValidPasses() { final var schema = UniqueitemsFalseValidation.UniqueitemsFalseValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, - 2L + 1, + 2 ), configuration ); @@ -223,7 +223,7 @@ public void test0AndFalseAreUniquePasses() { final var schema = UniqueitemsFalseValidation.UniqueitemsFalseValidation1.getInstance(); schema.validate( Arrays.asList( - 0L, + 0, false ), configuration @@ -239,11 +239,11 @@ public void testUniqueHeterogeneousTypesAreValidPasses() { MapMaker.makeMap( ), Arrays.asList( - 1L + 1 ), true, null, - 1L + 1 ), configuration ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java index 789ed02f2c0..97d02bb5ae1 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java @@ -24,9 +24,9 @@ public void testNonUniqueArrayOfMoreThanTwoIntegersIsInvalidFails() { try { schema.validate( Arrays.asList( - 1L, - 2L, - 1L + 1, + 2, + 1 ), configuration ); @@ -79,7 +79,7 @@ public void testATrueAndA1AreUniquePasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "a", - 1L + 1 ) ) ), @@ -94,7 +94,7 @@ public void test1AndTrueAreUniquePasses() { schema.validate( Arrays.asList( Arrays.asList( - 1L + 1 ), Arrays.asList( true @@ -111,8 +111,8 @@ public void testNonUniqueArrayOfIntegersIsInvalidFails() { try { schema.validate( Arrays.asList( - 1L, - 1L + 1, + 1 ), configuration ); @@ -130,7 +130,7 @@ public void testNested0AndFalseAreUniquePasses() { Arrays.asList( Arrays.asList( Arrays.asList( - 0L + 0 ), "foo" ), @@ -153,23 +153,23 @@ public void testObjectsAreNonUniqueDespiteKeyOrderFails() { schema.validate( Arrays.asList( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "a", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "b", - 2L + 2 ) ), MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "b", - 2L + 2 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "a", - 1L + 1 ) ) ), @@ -218,7 +218,7 @@ public void testAFalseAndA0AreUniquePasses() { MapMaker.makeMap( new AbstractMap.SimpleEntry<>( "a", - 0L + 0 ) ) ), @@ -258,7 +258,7 @@ public void test0AndFalseAreUniquePasses() { schema.validate( Arrays.asList( Arrays.asList( - 0L + 0 ), Arrays.asList( false @@ -325,7 +325,7 @@ public void testNumbersAreUniqueIfMathematicallyUnequalFails() { Arrays.asList( 1.0d, 1.0d, - 1L + 1 ), configuration ); @@ -420,7 +420,7 @@ public void testTrueIsNotEqualToOnePasses() { final var schema = UniqueitemsValidation.UniqueitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, + 1, true ), configuration @@ -435,7 +435,7 @@ public void testNested1AndTrueAreUniquePasses() { Arrays.asList( Arrays.asList( Arrays.asList( - 1L + 1 ), "foo" ), @@ -470,7 +470,7 @@ public void testFalseIsNotEqualToZeroPasses() { final var schema = UniqueitemsValidation.UniqueitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 0L, + 0, false ), configuration @@ -483,8 +483,8 @@ public void testUniqueArrayOfIntegersIsValidPasses() { final var schema = UniqueitemsValidation.UniqueitemsValidation1.getInstance(); schema.validate( Arrays.asList( - 1L, - 2L + 1, + 2 ), configuration ); @@ -497,23 +497,23 @@ public void testDifferentObjectsAreUniquePasses() { schema.validate( Arrays.asList( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "a", - 1L + 1 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "b", - 2L + 2 ) ), MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "a", - 2L + 2 ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "b", - 1L + 1 ) ) ), @@ -530,11 +530,11 @@ public void testUniqueHeterogeneousTypesAreValidPasses() { MapMaker.makeMap( ), Arrays.asList( - 1L + 1 ), true, null, - 1L, + 1, "{}" ), configuration @@ -574,13 +574,13 @@ public void testNonUniqueHeterogeneousTypesAreInvalidFails() { MapMaker.makeMap( ), Arrays.asList( - 1L + 1 ), true, null, MapMaker.makeMap( ), - 1L + 1 ), configuration ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java index e97b027d50d..2bfa4331dc7 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = UriFormat.UriFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java index d2c778544ef..ffee4227108 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = UriReferenceFormat.UriReferenceFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java index 01d8f42872c..133bade2af9 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java @@ -22,7 +22,7 @@ public void testAllStringFormatsIgnoreIntegersPasses() { // all string formats ignore integers final var schema = UriTemplateFormat.UriTemplateFormat1.getInstance(); schema.validate( - 12L, + 12, configuration ); } diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java new file mode 100644 index 00000000000..ea948baf50f --- /dev/null +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java @@ -0,0 +1,61 @@ +package org.openapijsonschematools.client.schemas; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +public class ListBuilderTest { + public static class NullableListWithNullableItemsListBuilder { + // class to build List<@Nullable List> + private final List<@Nullable List> list; + + public NullableListWithNullableItemsListBuilder() { + list = new ArrayList<>(); + } + + public NullableListWithNullableItemsListBuilder(List<@Nullable List> list) { + this.list = list; + } + + public NullableListWithNullableItemsListBuilder add(Void item) { + list.add(null); + return this; + } + + public NullableListWithNullableItemsListBuilder add(List item) { + list.add(item); + return this; + } + + public List<@Nullable List> build() { + return list; + } + } + + @Test + public void testSucceedsWithNullInput() { + List<@Nullable List> inList = new ArrayList<>(); + inList.add(null); + var builder = new NullableListWithNullableItemsListBuilder(inList); + Assert.assertEquals(inList, builder.build()); + + builder = new NullableListWithNullableItemsListBuilder(); + builder.add((Void) null); + Assert.assertEquals(inList, builder.build()); + } + + @Test + public void testSucceedsWithNonNullInput() { + List> inList = new ArrayList<>(); + inList.add(List.of(1)); + var builder = new NullableListWithNullableItemsListBuilder(inList); + Assert.assertEquals(inList, builder.build()); + + builder = new NullableListWithNullableItemsListBuilder(); + builder.add(List.of(1)); + Assert.assertEquals(inList, builder.build()); + } +} \ No newline at end of file diff --git a/samples/client/petstore/java/.openapi-generator/FILES b/samples/client/petstore/java/.openapi-generator/FILES index 7a366d1709d..c9b5a74566e 100644 --- a/samples/client/petstore/java/.openapi-generator/FILES +++ b/samples/client/petstore/java/.openapi-generator/FILES @@ -729,6 +729,7 @@ src/test/java/org/openapijsonschematools/client/configurations/JsonSchemaKeyword src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java +src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java diff --git a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/Schema.md b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/Schema.md index 95baf106bf9..45eb4e5f535 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/Schema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaListInput](#schemalistinput)
builder for List payloads | +| static class | [Schema.SchemaListBuilder](#schemalistbuilder)
builder for List payloads | | static class | [Schema.SchemaList](#schemalist)
output class for List payloads | ## Schema1 @@ -38,46 +38,48 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema.SchemaList validatedPayload = Schema.Schema1.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "id", - 1L - ), - new AbstractMap.SimpleEntry( - "username", - "a" - ), - new AbstractMap.SimpleEntry( - "firstName", - "a" - ), - new AbstractMap.SimpleEntry( - "lastName", - "a" - ), - new AbstractMap.SimpleEntry( - "email", - "a" - ), - new AbstractMap.SimpleEntry( - "password", - "a" - ), - new AbstractMap.SimpleEntry( - "phone", - "a" - ), - new AbstractMap.SimpleEntry( - "userStatus", - 1 - ), - new AbstractMap.SimpleEntry( - "objectWithNoDeclaredPropsNullable", - null + new Schema.SchemaListBuilder( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "id", + 1L + ), + new AbstractMap.SimpleEntry( + "username", + "a" + ), + new AbstractMap.SimpleEntry( + "firstName", + "a" + ), + new AbstractMap.SimpleEntry( + "lastName", + "a" + ), + new AbstractMap.SimpleEntry( + "email", + "a" + ), + new AbstractMap.SimpleEntry( + "password", + "a" + ), + new AbstractMap.SimpleEntry( + "phone", + "a" + ), + new AbstractMap.SimpleEntry( + "userStatus", + 1 + ), + new AbstractMap.SimpleEntry( + "objectWithNoDeclaredPropsNullable", + null + ) ) ) - ), + ).build(), configuration ); ``` @@ -91,18 +93,25 @@ Schema.SchemaList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList](#schemalist) | validate([List](#schemalistinput) arg, SchemaConfiguration configuration) | +| [SchemaList](#schemalist) | validate([List](#schemalistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput -public class SchemaListInput
-builder for `List>` +## SchemaListBuilder +public class SchemaListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder()
Creates an empty list | +| SchemaListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## SchemaList public class SchemaList
@@ -113,4 +122,4 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList](#schemalist) | of([List>](#schemalistinput) arg, SchemaConfiguration configuration) | +| static [SchemaList](#schemalist) | of([List>](#schemalistbuilder) arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.md index a2e61199c41..9959eb11e7b 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaListInput](#schemalistinput)
builder for List payloads | +| static class | [Schema.SchemaListBuilder](#schemalistbuilder)
builder for List payloads | | static class | [Schema.SchemaList](#schemalist)
output class for List payloads | ## Schema1 @@ -38,52 +38,54 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema.SchemaList validatedPayload = Schema.Schema1.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "name", - "a" - ), - new AbstractMap.SimpleEntry( - "photoUrls", - Arrays.asList( + new Schema.SchemaListBuilder( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "name", "a" - ) - ), - new AbstractMap.SimpleEntry( - "id", - 1L - ), - new AbstractMap.SimpleEntry( - "category", - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "name", + ), + new AbstractMap.SimpleEntry( + "photoUrls", + Arrays.asList( "a" - ), - new AbstractMap.SimpleEntry( - "id", - 1L ) - ) - ), - new AbstractMap.SimpleEntry( - "tags", - Arrays.asList( + ), + new AbstractMap.SimpleEntry( + "id", + 1L + ), + new AbstractMap.SimpleEntry( + "category", MapMaker.makeMap( - new AbstractMap.SimpleEntry<>( + new AbstractMap.SimpleEntry( "name", "a" + ), + new AbstractMap.SimpleEntry( + "id", + 1L + ) + ) + ), + new AbstractMap.SimpleEntry( + "tags", + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry<>( + "name", + "a" + ) ) ) + ), + new AbstractMap.SimpleEntry( + "status", + "available" ) - ), - new AbstractMap.SimpleEntry( - "status", - "available" ) ) - ), + ).build(), configuration ); ``` @@ -97,18 +99,25 @@ Schema.SchemaList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList](#schemalist) | validate([List](#schemalistinput) arg, SchemaConfiguration configuration) | +| [SchemaList](#schemalist) | validate([List](#schemalistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput -public class SchemaListInput
-builder for `List>` +## SchemaListBuilder +public class SchemaListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder()
Creates an empty list | +| SchemaListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## SchemaList public class SchemaList
@@ -119,4 +128,4 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList](#schemalist) | of([List>](#schemalistinput) arg, SchemaConfiguration configuration) | +| static [SchemaList](#schemalist) | of([List>](#schemalistbuilder) arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.md index 9161eb75f5c..cdaa3abb8bb 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaListInput](#schemalistinput)
builder for List payloads | +| static class | [Schema.SchemaListBuilder](#schemalistbuilder)
builder for List payloads | | static class | [Schema.SchemaList](#schemalist)
output class for List payloads | ## Schema1 @@ -38,52 +38,54 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema.SchemaList validatedPayload = Schema.Schema1.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "name", - "a" - ), - new AbstractMap.SimpleEntry( - "photoUrls", - Arrays.asList( + new Schema.SchemaListBuilder( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "name", "a" - ) - ), - new AbstractMap.SimpleEntry( - "id", - 1L - ), - new AbstractMap.SimpleEntry( - "category", - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "name", + ), + new AbstractMap.SimpleEntry( + "photoUrls", + Arrays.asList( "a" - ), - new AbstractMap.SimpleEntry( - "id", - 1L ) - ) - ), - new AbstractMap.SimpleEntry( - "tags", - Arrays.asList( + ), + new AbstractMap.SimpleEntry( + "id", + 1L + ), + new AbstractMap.SimpleEntry( + "category", MapMaker.makeMap( - new AbstractMap.SimpleEntry<>( + new AbstractMap.SimpleEntry( "name", "a" + ), + new AbstractMap.SimpleEntry( + "id", + 1L + ) + ) + ), + new AbstractMap.SimpleEntry( + "tags", + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry<>( + "name", + "a" + ) ) ) + ), + new AbstractMap.SimpleEntry( + "status", + "available" ) - ), - new AbstractMap.SimpleEntry( - "status", - "available" ) ) - ), + ).build(), configuration ); ``` @@ -97,18 +99,25 @@ Schema.SchemaList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList](#schemalist) | validate([List](#schemalistinput) arg, SchemaConfiguration configuration) | +| [SchemaList](#schemalist) | validate([List](#schemalistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput -public class SchemaListInput
-builder for `List>` +## SchemaListBuilder +public class SchemaListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder()
Creates an empty list | +| SchemaListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## SchemaList public class SchemaList
@@ -119,4 +128,4 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList](#schemalist) | of([List>](#schemalistinput) arg, SchemaConfiguration configuration) | +| static [SchemaList](#schemalist) | of([List>](#schemalistbuilder) arg, SchemaConfiguration configuration) | diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/Schema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/Schema.md index df3a1658bc9..e22c20d3bc1 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/Schema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.AdditionalProperties](#additionalproperties)
schema class | @@ -54,30 +54,30 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
-builder for `Map` +## SchemaMapBuilder +public class SchemaMapBuilder
+builder for `Map` A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **anyStringName** | int | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer | +| **anyStringName** | Number | any string name can be used but the value must be the correct type | [optional] value must be a 32 bit integer | ## SchemaMap public static class SchemaMap
-extends FrozenMap +extends FrozenMap A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | -| int | getAdditionalProperty(String name)
provides type safety for additional properties | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | +| Number | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md index daf2d96054d..99278b295a2 100644 --- a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md +++ b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AbstractStepMessage.AbstractStepMessage1](#abstractstepmessage1)
schema class | -| static class | [AbstractStepMessage.AbstractStepMessageMapInput](#abstractstepmessagemapinput)
builder for Map payloads | +| static class | [AbstractStepMessage.AbstractStepMessageMapBuilder](#abstractstepmessagemapbuilder)
builder for Map payloads | | static class | [AbstractStepMessage.AbstractStepMessageMap](#abstractstepmessagemap)
output class for Map payloads | | static class | [AbstractStepMessage.Discriminator](#discriminator)
schema class | @@ -63,10 +63,10 @@ AbstractStepMessage.AbstractStepMessageMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AbstractStepMessageMap](#abstractstepmessagemap) | validate([Map](#abstractstepmessagemapinput) arg, SchemaConfiguration configuration) | +| [AbstractStepMessageMap](#abstractstepmessagemap) | validate([Map](#abstractstepmessagemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AbstractStepMessageMapInput -public class AbstractStepMessageMapInput
+## AbstractStepMessageMapBuilder +public class AbstractStepMessageMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AbstractStepMessageMap](#abstractstepmessagemap) | of([Map](#abstractstepmessagemapinput) arg, SchemaConfiguration configuration) | +| static [AbstractStepMessageMap](#abstractstepmessagemap) | of([Map](#abstractstepmessagemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | description()
| | String | discriminator()
| | @Nullable Object | sequenceNumber()
| diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md index dc817f790e5..02d18359c58 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md @@ -11,32 +11,32 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClass1](#additionalpropertiesclass1)
schema class | -| static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMapInput](#additionalpropertiesclassmapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMapBuilder](#additionalpropertiesclassmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesClassMap](#additionalpropertiesclassmap)
output class for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesString](#mapwithundeclaredpropertiesstring)
schema class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMapInput](#mapwithundeclaredpropertiesstringmapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMapBuilder](#mapwithundeclaredpropertiesstringmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap)
output class for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties5](#additionalproperties5)
schema class | | static class | [AdditionalPropertiesClass.EmptyMap](#emptymap)
schema class | -| static class | [AdditionalPropertiesClass.EmptyMapMapInput](#emptymapmapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.EmptyMapMapBuilder](#emptymapmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.EmptyMapMap](#emptymapmap)
output class for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties4](#additionalproperties4)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3](#mapwithundeclaredpropertiesanytype3)
schema class | -| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3MapInput](#mapwithundeclaredpropertiesanytype3mapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3MapBuilder](#mapwithundeclaredpropertiesanytype3mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map)
output class for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties3](#additionalproperties3)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype2](#mapwithundeclaredpropertiesanytype2)
schema class | | static class | [AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype1](#mapwithundeclaredpropertiesanytype1)
schema class | | static class | [AdditionalPropertiesClass.Anytype1](#anytype1)
schema class | | static class | [AdditionalPropertiesClass.MapOfMapProperty](#mapofmapproperty)
schema class | -| static class | [AdditionalPropertiesClass.MapOfMapPropertyMapInput](#mapofmappropertymapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.MapOfMapPropertyMapBuilder](#mapofmappropertymapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapOfMapPropertyMap](#mapofmappropertymap)
output class for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties1](#additionalproperties1)
schema class | -| static class | [AdditionalPropertiesClass.AdditionalPropertiesMapInput](#additionalpropertiesmapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.AdditionalPropertiesMapBuilder](#additionalpropertiesmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalPropertiesMap](#additionalpropertiesmap)
output class for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties2](#additionalproperties2)
schema class | | static class | [AdditionalPropertiesClass.MapProperty](#mapproperty)
schema class | -| static class | [AdditionalPropertiesClass.MapPropertyMapInput](#mappropertymapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesClass.MapPropertyMapBuilder](#mappropertymapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesClass.MapPropertyMap](#mappropertymap)
output class for Map payloads | | static class | [AdditionalPropertiesClass.AdditionalProperties](#additionalproperties)
schema class | @@ -104,10 +104,10 @@ AdditionalPropertiesClass.AdditionalPropertiesClassMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | validate([Map](#additionalpropertiesclassmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | validate([Map](#additionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalPropertiesClassMapInput -public class AdditionalPropertiesClassMapInput
+## AdditionalPropertiesClassMapBuilder +public class AdditionalPropertiesClassMapBuilder
builder for `Map` A class that builds the Map input type @@ -134,7 +134,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | of([Map](#additionalpropertiesclassmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalPropertiesClassMap](#additionalpropertiesclassmap) | of([Map](#additionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | | [MapPropertyMap](#mappropertymap) | map_property()
[optional] | | [MapOfMapPropertyMap](#mapofmappropertymap) | map_of_map_property()
[optional] | | @Nullable Object | anytype_1()
[optional] | @@ -184,10 +184,10 @@ AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMap validatedPayload ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | validate([Map](#mapwithundeclaredpropertiesstringmapinput) arg, SchemaConfiguration configuration) | +| [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | validate([Map](#mapwithundeclaredpropertiesstringmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapWithUndeclaredPropertiesStringMapInput -public class MapWithUndeclaredPropertiesStringMapInput
+## MapWithUndeclaredPropertiesStringMapBuilder +public class MapWithUndeclaredPropertiesStringMapBuilder
builder for `Map` A class that builds the Map input type @@ -206,7 +206,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | of([Map](#mapwithundeclaredpropertiesstringmapinput) arg, SchemaConfiguration configuration) | +| static [MapWithUndeclaredPropertiesStringMap](#mapwithundeclaredpropertiesstringmap) | of([Map](#mapwithundeclaredpropertiesstringmapbuilder) arg, SchemaConfiguration configuration) | | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties5 @@ -261,10 +261,10 @@ AdditionalPropertiesClass.EmptyMapMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EmptyMapMap](#emptymapmap) | validate([Map](#emptymapmapinput) arg, SchemaConfiguration configuration) | +| [EmptyMapMap](#emptymapmap) | validate([Map](#emptymapmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## EmptyMapMapInput -public class EmptyMapMapInput
+## EmptyMapMapBuilder +public class EmptyMapMapBuilder
builder for `Map` A class that builds the Map input type @@ -282,7 +282,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [EmptyMapMap](#emptymapmap) | of([Map](#emptymapmapinput) arg, SchemaConfiguration configuration) | +| static [EmptyMapMap](#emptymapmap) | of([Map](#emptymapmapbuilder) arg, SchemaConfiguration configuration) | ## AdditionalProperties4 public static class AdditionalProperties4
@@ -333,10 +333,10 @@ AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Map validatedPayloa ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | validate([Map](#mapwithundeclaredpropertiesanytype3mapinput) arg, SchemaConfiguration configuration) | +| [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | validate([Map](#mapwithundeclaredpropertiesanytype3mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapWithUndeclaredPropertiesAnytype3MapInput -public class MapWithUndeclaredPropertiesAnytype3MapInput
+## MapWithUndeclaredPropertiesAnytype3MapBuilder +public class MapWithUndeclaredPropertiesAnytype3MapBuilder
builder for `Map` A class that builds the Map input type @@ -355,7 +355,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | of([Map](#mapwithundeclaredpropertiesanytype3mapinput) arg, SchemaConfiguration configuration) | +| static [MapWithUndeclaredPropertiesAnytype3Map](#mapwithundeclaredpropertiesanytype3map) | of([Map](#mapwithundeclaredpropertiesanytype3mapbuilder) arg, SchemaConfiguration configuration) | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties3 @@ -437,10 +437,10 @@ AdditionalPropertiesClass.MapOfMapPropertyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapOfMapPropertyMap](#mapofmappropertymap) | validate([Map](#mapofmappropertymapinput) arg, SchemaConfiguration configuration) | +| [MapOfMapPropertyMap](#mapofmappropertymap) | validate([Map](#mapofmappropertymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapOfMapPropertyMapInput -public class MapOfMapPropertyMapInput
+## MapOfMapPropertyMapBuilder +public class MapOfMapPropertyMapBuilder
builder for `Map>` A class that builds the Map input type @@ -459,7 +459,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapOfMapPropertyMap](#mapofmappropertymap) | of([Map>](#mapofmappropertymapinput) arg, SchemaConfiguration configuration) | +| static [MapOfMapPropertyMap](#mapofmappropertymap) | of([Map>](#mapofmappropertymapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesMap](#additionalpropertiesmap) | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1 @@ -501,10 +501,10 @@ AdditionalPropertiesClass.AdditionalPropertiesMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesMap](#additionalpropertiesmap) | validate([Map](#additionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesMap](#additionalpropertiesmap) | validate([Map](#additionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalPropertiesMapInput -public class AdditionalPropertiesMapInput
+## AdditionalPropertiesMapBuilder +public class AdditionalPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -523,7 +523,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalPropertiesMap](#additionalpropertiesmap) | of([Map](#additionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalPropertiesMap](#additionalpropertiesmap) | of([Map](#additionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2 @@ -575,10 +575,10 @@ AdditionalPropertiesClass.MapPropertyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapPropertyMap](#mappropertymap) | validate([Map](#mappropertymapinput) arg, SchemaConfiguration configuration) | +| [MapPropertyMap](#mappropertymap) | validate([Map](#mappropertymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapPropertyMapInput -public class MapPropertyMapInput
+## MapPropertyMapBuilder +public class MapPropertyMapBuilder
builder for `Map` A class that builds the Map input type @@ -597,7 +597,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapPropertyMap](#mappropertymap) | of([Map](#mappropertymapinput) arg, SchemaConfiguration configuration) | +| static [MapPropertyMap](#mappropertymap) | of([Map](#mappropertymapbuilder) arg, SchemaConfiguration configuration) | | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md index e52b00ea16d..e41fb11e96e 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md @@ -12,15 +12,15 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [AdditionalPropertiesSchema.AdditionalPropertiesSchema1](#additionalpropertiesschema1)
schema class | | static class | [AdditionalPropertiesSchema.Schema2](#schema2)
schema class | -| static class | [AdditionalPropertiesSchema.Schema2MapInput](#schema2mapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesSchema.Schema2MapBuilder](#schema2mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema2Map](#schema2map)
output class for Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties2](#additionalproperties2)
schema class | | static class | [AdditionalPropertiesSchema.Schema1](#schema1)
schema class | -| static class | [AdditionalPropertiesSchema.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesSchema.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema1Map](#schema1map)
output class for Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties1](#additionalproperties1)
schema class | | static class | [AdditionalPropertiesSchema.Schema0](#schema0)
schema class | -| static class | [AdditionalPropertiesSchema.Schema0MapInput](#schema0mapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesSchema.Schema0MapBuilder](#schema0mapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesSchema.Schema0Map](#schema0map)
output class for Map payloads | | static class | [AdditionalPropertiesSchema.AdditionalProperties](#additionalproperties)
schema class | @@ -80,10 +80,10 @@ AdditionalPropertiesSchema.Schema2Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema2Map](#schema2map) | validate([Map](#schema2mapinput) arg, SchemaConfiguration configuration) | +| [Schema2Map](#schema2map) | validate([Map](#schema2mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema2MapInput -public class Schema2MapInput
+## Schema2MapBuilder +public class Schema2MapBuilder
builder for `Map` A class that builds the Map input type @@ -102,7 +102,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema2Map](#schema2map) | of([Map](#schema2mapinput) arg, SchemaConfiguration configuration) | +| static [Schema2Map](#schema2map) | of([Map](#schema2mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2 @@ -168,10 +168,10 @@ AdditionalPropertiesSchema.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -190,7 +190,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1 @@ -256,10 +256,10 @@ AdditionalPropertiesSchema.Schema0Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema0Map](#schema0map) | validate([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| [Schema0Map](#schema0map) | validate([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema0MapInput -public class Schema0MapInput
+## Schema0MapBuilder +public class Schema0MapBuilder
builder for `Map` A class that builds the Map input type @@ -278,7 +278,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema0Map](#schema0map) | of([Map](#schema0mapinput) arg, SchemaConfiguration configuration) | +| static [Schema0Map](#schema0map) | of([Map](#schema0mapbuilder) arg, SchemaConfiguration configuration) | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md index 33345c17c8a..cf56dda7163 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md @@ -13,10 +13,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](#additionalpropertieswitharrayofenums1)
schema class | -| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMapInput](#additionalpropertieswitharrayofenumsmapinput)
builder for Map payloads | +| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMapBuilder](#additionalpropertieswitharrayofenumsmapbuilder)
builder for Map payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap)
output class for Map payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalProperties](#additionalproperties)
schema class | -| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesListInput](#additionalpropertieslistinput)
builder for List payloads | +| static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesListBuilder](#additionalpropertieslistbuilder)
builder for List payloads | | static class | [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList](#additionalpropertieslist)
output class for List payloads | ## AdditionalPropertiesWithArrayOfEnums1 @@ -58,10 +58,10 @@ AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMap val ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | validate([Map](#additionalpropertieswitharrayofenumsmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | validate([Map](#additionalpropertieswitharrayofenumsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalPropertiesWithArrayOfEnumsMapInput -public class AdditionalPropertiesWithArrayOfEnumsMapInput
+## AdditionalPropertiesWithArrayOfEnumsMapBuilder +public class AdditionalPropertiesWithArrayOfEnumsMapBuilder
builder for `Map>` A class that builds the Map input type @@ -80,7 +80,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | of([Map>](#additionalpropertieswitharrayofenumsmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalPropertiesWithArrayOfEnumsMap](#additionalpropertieswitharrayofenumsmap) | of([Map>](#additionalpropertieswitharrayofenumsmapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesList](#additionalpropertieslist) | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties @@ -107,9 +107,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList validatedPayload = AdditionalPropertiesWithArrayOfEnums.AdditionalProperties.validate( - Arrays.asList( - "_abc" - ), + new .AdditionalPropertiesListBuilder( + Arrays.asList( + "_abc" + ) + ).build(), configuration ); ``` @@ -123,18 +125,26 @@ AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesList](#additionalpropertieslist) | validate([List](#additionalpropertieslistinput) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesList](#additionalpropertieslist) | validate([List](#additionalpropertieslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalPropertiesListInput -public class AdditionalPropertiesListInput
+## AdditionalPropertiesListBuilder +public class AdditionalPropertiesListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesListBuilder()
Creates an empty list | +| AdditionalPropertiesListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| AdditionalPropertiesListBuilder | add(String item) | +| AdditionalPropertiesListBuilder | add([EnumClass.StringEnumClassEnums](../../components/schemas/EnumClass.md#stringenumclassenums) item) | +| List | build()
Returns list input that should be used with Schema.validate | ## AdditionalPropertiesList public class AdditionalPropertiesList
@@ -145,6 +155,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalPropertiesList](#additionalpropertieslist) | of([List](#additionalpropertieslistinput) arg, SchemaConfiguration configuration) | +| static [AdditionalPropertiesList](#additionalpropertieslist) | of([List](#additionalpropertieslistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/schemas/Address.md b/samples/client/petstore/java/docs/components/schemas/Address.md index 5a554b70ca1..cb6d38bd2a4 100644 --- a/samples/client/petstore/java/docs/components/schemas/Address.md +++ b/samples/client/petstore/java/docs/components/schemas/Address.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Address.Address1](#address1)
schema class | -| static class | [Address.AddressMapInput](#addressmapinput)
builder for Map payloads | +| static class | [Address.AddressMapBuilder](#addressmapbuilder)
builder for Map payloads | | static class | [Address.AddressMap](#addressmap)
output class for Map payloads | | static class | [Address.AdditionalProperties](#additionalproperties)
schema class | @@ -54,30 +54,30 @@ Address.AddressMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AddressMap](#addressmap) | validate([Map](#addressmapinput) arg, SchemaConfiguration configuration) | +| [AddressMap](#addressmap) | validate([Map](#addressmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AddressMapInput -public class AddressMapInput
-builder for `Map` +## AddressMapBuilder +public class AddressMapBuilder
+builder for `Map` A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **anyStringName** | long | any string name can be used but the value must be the correct type | [optional] | +| **anyStringName** | Number | any string name can be used but the value must be the correct type | [optional] | ## AddressMap public static class AddressMap
-extends FrozenMap +extends FrozenMap A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AddressMap](#addressmap) | of([Map](#addressmapinput) arg, SchemaConfiguration configuration) | -| long | getAdditionalProperty(String name)
provides type safety for additional properties | +| static [AddressMap](#addressmap) | of([Map](#addressmapbuilder) arg, SchemaConfiguration configuration) | +| Number | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties public static class AdditionalProperties
diff --git a/samples/client/petstore/java/docs/components/schemas/Animal.md b/samples/client/petstore/java/docs/components/schemas/Animal.md index ccf4b75ef29..5dbbb86c907 100644 --- a/samples/client/petstore/java/docs/components/schemas/Animal.md +++ b/samples/client/petstore/java/docs/components/schemas/Animal.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Animal.Animal1](#animal1)
schema class | -| static class | [Animal.AnimalMapInput](#animalmapinput)
builder for Map payloads | +| static class | [Animal.AnimalMapBuilder](#animalmapbuilder)
builder for Map payloads | | static class | [Animal.AnimalMap](#animalmap)
output class for Map payloads | | static class | [Animal.Color](#color)
schema class | | static class | [Animal.ClassName](#classname)
schema class | @@ -64,10 +64,10 @@ Animal.AnimalMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnimalMap](#animalmap) | validate([Map](#animalmapinput) arg, SchemaConfiguration configuration) | +| [AnimalMap](#animalmap) | validate([Map](#animalmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AnimalMapInput -public class AnimalMapInput
+## AnimalMapBuilder +public class AnimalMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AnimalMap](#animalmap) | of([Map](#animalmapinput) arg, SchemaConfiguration configuration) | +| static [AnimalMap](#animalmap) | of([Map](#animalmapbuilder) arg, SchemaConfiguration configuration) | | String | className()
| | String | color()
[optional] if omitted the server will use the default value of red | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md index 3d9f441c7a2..edc5af2e9a7 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md +++ b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AnimalFarm.AnimalFarm1](#animalfarm1)
schema class | -| static class | [AnimalFarm.AnimalFarmListInput](#animalfarmlistinput)
builder for List payloads | +| static class | [AnimalFarm.AnimalFarmListBuilder](#animalfarmlistbuilder)
builder for List payloads | | static class | [AnimalFarm.AnimalFarmList](#animalfarmlist)
output class for List payloads | ## AnimalFarm1 @@ -38,18 +38,20 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation AnimalFarm.AnimalFarmList validatedPayload = AnimalFarm.AnimalFarm1.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "className", - "a" - ), - new AbstractMap.SimpleEntry( - "color", - "a" + new AnimalFarm.AnimalFarmListBuilder( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "className", + "a" + ), + new AbstractMap.SimpleEntry( + "color", + "a" + ) ) ) - ), + ).build(), configuration ); ``` @@ -63,18 +65,25 @@ AnimalFarm.AnimalFarmList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnimalFarmList](#animalfarmlist) | validate([List](#animalfarmlistinput) arg, SchemaConfiguration configuration) | +| [AnimalFarmList](#animalfarmlist) | validate([List](#animalfarmlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AnimalFarmListInput -public class AnimalFarmListInput
-builder for `List>` +## AnimalFarmListBuilder +public class AnimalFarmListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| AnimalFarmListBuilder()
Creates an empty list | +| AnimalFarmListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| AnimalFarmListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## AnimalFarmList public class AnimalFarmList
@@ -85,6 +94,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AnimalFarmList](#animalfarmlist) | of([List>](#animalfarmlistinput) arg, SchemaConfiguration configuration) | +| static [AnimalFarmList](#animalfarmlist) | of([List>](#animalfarmlistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md index 6aac8d9e815..e041fcb9e79 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AnyTypeAndFormat.AnyTypeAndFormat1](#anytypeandformat1)
schema class | -| static class | [AnyTypeAndFormat.AnyTypeAndFormatMapInput](#anytypeandformatmapinput)
builder for Map payloads | +| static class | [AnyTypeAndFormat.AnyTypeAndFormatMapBuilder](#anytypeandformatmapbuilder)
builder for Map payloads | | static class | [AnyTypeAndFormat.AnyTypeAndFormatMap](#anytypeandformatmap)
output class for Map payloads | | static class | [AnyTypeAndFormat.FloatSchema](#floatschema)
schema class | | static class | [AnyTypeAndFormat.DoubleSchema](#doubleschema)
schema class | @@ -62,10 +62,10 @@ AnyTypeAndFormat.AnyTypeAndFormatMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AnyTypeAndFormatMap](#anytypeandformatmap) | validate([Map](#anytypeandformatmapinput) arg, SchemaConfiguration configuration) | +| [AnyTypeAndFormatMap](#anytypeandformatmap) | validate([Map](#anytypeandformatmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AnyTypeAndFormatMapInput -public class AnyTypeAndFormatMapInput
+## AnyTypeAndFormatMapBuilder +public class AnyTypeAndFormatMapBuilder
builder for `Map` A class that builds the Map input type @@ -93,7 +93,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AnyTypeAndFormatMap](#anytypeandformatmap) | of([Map](#anytypeandformatmapinput) arg, SchemaConfiguration configuration) | +| static [AnyTypeAndFormatMap](#anytypeandformatmap) | of([Map](#anytypeandformatmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | date()
[optional] value must conform to RFC-3339 full-date YYYY-MM-DD | | @Nullable Object | binary()
[optional] | | @Nullable Object | int32()
[optional] value must be a 32 bit integer | diff --git a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md index 64d5c9d3087..1ba00a798c8 100644 --- a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ApiResponseSchema.ApiResponseSchema1](#apiresponseschema1)
schema class | -| static class | [ApiResponseSchema.ApiResponseMapInput](#apiresponsemapinput)
builder for Map payloads | +| static class | [ApiResponseSchema.ApiResponseMapBuilder](#apiresponsemapbuilder)
builder for Map payloads | | static class | [ApiResponseSchema.ApiResponseMap](#apiresponsemap)
output class for Map payloads | | static class | [ApiResponseSchema.Message](#message)
schema class | | static class | [ApiResponseSchema.Type](#type)
schema class | @@ -68,10 +68,10 @@ ApiResponseSchema.ApiResponseMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApiResponseMap](#apiresponsemap) | validate([Map](#apiresponsemapinput) arg, SchemaConfiguration configuration) | +| [ApiResponseMap](#apiresponsemap) | validate([Map](#apiresponsemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ApiResponseMapInput -public class ApiResponseMapInput
+## ApiResponseMapBuilder +public class ApiResponseMapBuilder
builder for `Map` A class that builds the Map input type @@ -79,7 +79,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **code** | int | | [optional] value must be a 32 bit integer | +| **code** | Number | | [optional] value must be a 32 bit integer | | **type** | String | | [optional] | | **message** | String | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -93,8 +93,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ApiResponseMap](#apiresponsemap) | of([Map](#apiresponsemapinput) arg, SchemaConfiguration configuration) | -| int | code()
[optional] value must be a 32 bit integer | +| static [ApiResponseMap](#apiresponsemap) | of([Map](#apiresponsemapbuilder) arg, SchemaConfiguration configuration) | +| Number | code()
[optional] value must be a 32 bit integer | | String | type()
[optional] | | String | message()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Apple.md b/samples/client/petstore/java/docs/components/schemas/Apple.md index b5b9f25f2dd..e6550112031 100644 --- a/samples/client/petstore/java/docs/components/schemas/Apple.md +++ b/samples/client/petstore/java/docs/components/schemas/Apple.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Apple.Apple1](#apple1)
schema class | -| static class | [Apple.AppleMapInput](#applemapinput)
builder for Map payloads | +| static class | [Apple.AppleMapBuilder](#applemapbuilder)
builder for Map payloads | | static class | [Apple.AppleMap](#applemap)
output class for Map payloads | | static class | [Apple.Origin](#origin)
schema class | | static class | [Apple.Cultivar](#cultivar)
schema class | @@ -71,10 +71,10 @@ Apple.AppleMap validatedPayload = | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | validate(Void arg, SchemaConfiguration configuration) | -| [AppleMap](#applemap) | validate([Map](#applemapinput) arg, SchemaConfiguration configuration) | +| [AppleMap](#applemap) | validate([Map](#applemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AppleMapInput -public class AppleMapInput
+## AppleMapBuilder +public class AppleMapBuilder
builder for `Map` A class that builds the Map input type @@ -95,7 +95,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AppleMap](#applemap) | of([Map](#applemapinput) arg, SchemaConfiguration configuration) | +| static [AppleMap](#applemap) | of([Map](#applemapbuilder) arg, SchemaConfiguration configuration) | | String | cultivar()
| | String | origin()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/AppleReq.md b/samples/client/petstore/java/docs/components/schemas/AppleReq.md index 06bfec486e7..d57c2c09d7f 100644 --- a/samples/client/petstore/java/docs/components/schemas/AppleReq.md +++ b/samples/client/petstore/java/docs/components/schemas/AppleReq.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [AppleReq.AppleReq1](#applereq1)
schema class | -| static class | [AppleReq.AppleReqMapInput](#applereqmapinput)
builder for Map payloads | +| static class | [AppleReq.AppleReqMapBuilder](#applereqmapbuilder)
builder for Map payloads | | static class | [AppleReq.AppleReqMap](#applereqmap)
output class for Map payloads | | static class | [AppleReq.Mealy](#mealy)
schema class | | static class | [AppleReq.Cultivar](#cultivar)
schema class | @@ -66,10 +66,10 @@ AppleReq.AppleReqMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AppleReqMap](#applereqmap) | validate([Map](#applereqmapinput) arg, SchemaConfiguration configuration) | +| [AppleReqMap](#applereqmap) | validate([Map](#applereqmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AppleReqMapInput -public class AppleReqMapInput
+## AppleReqMapBuilder +public class AppleReqMapBuilder
builder for `Map` A class that builds the Map input type @@ -89,7 +89,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AppleReqMap](#applereqmap) | of([Map](#applereqmapinput) arg, SchemaConfiguration configuration) | +| static [AppleReqMap](#applereqmap) | of([Map](#applereqmapbuilder) arg, SchemaConfiguration configuration) | | String | cultivar()
| | boolean | mealy()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md index 0d931dcdd03..d4290b7ecdf 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyType1](#arrayholdinganytype1)
schema class | -| static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeListInput](#arrayholdinganytypelistinput)
builder for List payloads | +| static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeListBuilder](#arrayholdinganytypelistbuilder)
builder for List payloads | | static class | [ArrayHoldingAnyType.ArrayHoldingAnyTypeList](#arrayholdinganytypelist)
output class for List payloads | | static class | [ArrayHoldingAnyType.Items](#items)
schema class | @@ -39,8 +39,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayHoldingAnyType.ArrayHoldingAnyTypeList validatedPayload = ArrayHoldingAnyType.ArrayHoldingAnyType1.validate( - Arrays.asList( - ), + new ArrayHoldingAnyType.ArrayHoldingAnyTypeListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -54,18 +56,33 @@ ArrayHoldingAnyType.ArrayHoldingAnyTypeList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | validate([List](#arrayholdinganytypelistinput) arg, SchemaConfiguration configuration) | +| [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | validate([List](#arrayholdinganytypelistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayHoldingAnyTypeListInput -public class ArrayHoldingAnyTypeListInput
-builder for `List` +## ArrayHoldingAnyTypeListBuilder +public class ArrayHoldingAnyTypeListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | any type can be stored here | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayHoldingAnyTypeListBuilder()
Creates an empty list | +| ArrayHoldingAnyTypeListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayHoldingAnyTypeListBuilder | add(Void item) | +| ArrayHoldingAnyTypeListBuilder | add(boolean item) | +| ArrayHoldingAnyTypeListBuilder | add(String item) | +| ArrayHoldingAnyTypeListBuilder | add(int item) | +| ArrayHoldingAnyTypeListBuilder | add(float item) | +| ArrayHoldingAnyTypeListBuilder | add(long item) | +| ArrayHoldingAnyTypeListBuilder | add(double item) | +| ArrayHoldingAnyTypeListBuilder | add(List item) | +| ArrayHoldingAnyTypeListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## ArrayHoldingAnyTypeList public class ArrayHoldingAnyTypeList
@@ -76,7 +93,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | of([List](#arrayholdinganytypelistinput) arg, SchemaConfiguration configuration) | +| static [ArrayHoldingAnyTypeList](#arrayholdinganytypelist) | of([List](#arrayholdinganytypelistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md index 348f1c7573e..c1d9b491487 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md @@ -13,13 +13,13 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnly1](#arrayofarrayofnumberonly1)
schema class | -| static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMapInput](#arrayofarrayofnumberonlymapinput)
builder for Map payloads | +| static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMapBuilder](#arrayofarrayofnumberonlymapbuilder)
builder for Map payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap)
output class for Map payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumber](#arrayarraynumber)
schema class | -| static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberListInput](#arrayarraynumberlistinput)
builder for List payloads | +| static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberListBuilder](#arrayarraynumberlistbuilder)
builder for List payloads | | static class | [ArrayOfArrayOfNumberOnly.ArrayArrayNumberList](#arrayarraynumberlist)
output class for List payloads | | static class | [ArrayOfArrayOfNumberOnly.Items](#items)
schema class | -| static class | [ArrayOfArrayOfNumberOnly.ItemsListInput](#itemslistinput)
builder for List payloads | +| static class | [ArrayOfArrayOfNumberOnly.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [ArrayOfArrayOfNumberOnly.ItemsList](#itemslist)
output class for List payloads | | static class | [ArrayOfArrayOfNumberOnly.Items1](#items1)
schema class | @@ -70,10 +70,10 @@ ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | validate([Map](#arrayofarrayofnumberonlymapinput) arg, SchemaConfiguration configuration) | +| [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | validate([Map](#arrayofarrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayOfArrayOfNumberOnlyMapInput -public class ArrayOfArrayOfNumberOnlyMapInput
+## ArrayOfArrayOfNumberOnlyMapBuilder +public class ArrayOfArrayOfNumberOnlyMapBuilder
builder for `Map` A class that builds the Map input type @@ -93,7 +93,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | of([Map](#arrayofarrayofnumberonlymapinput) arg, SchemaConfiguration configuration) | +| static [ArrayOfArrayOfNumberOnlyMap](#arrayofarrayofnumberonlymap) | of([Map](#arrayofarrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | | [ArrayArrayNumberList](#arrayarraynumberlist) | ArrayArrayNumber()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -121,11 +121,13 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayOfArrayOfNumberOnly.ArrayArrayNumberList validatedPayload = ArrayOfArrayOfNumberOnly.ArrayArrayNumber.validate( - Arrays.asList( + new .ArrayArrayNumberListBuilder( Arrays.asList( - 1 + Arrays.asList( + 1 + ) ) - ), + ).build(), configuration ); ``` @@ -139,18 +141,25 @@ ArrayOfArrayOfNumberOnly.ArrayArrayNumberList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayArrayNumberList](#arrayarraynumberlist) | validate([List](#arrayarraynumberlistinput) arg, SchemaConfiguration configuration) | +| [ArrayArrayNumberList](#arrayarraynumberlist) | validate([List](#arrayarraynumberlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayArrayNumberListInput -public class ArrayArrayNumberListInput
+## ArrayArrayNumberListBuilder +public class ArrayArrayNumberListBuilder
builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayArrayNumberListBuilder()
Creates an empty list | +| ArrayArrayNumberListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayArrayNumberListBuilder | add(List item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ArrayArrayNumberList public class ArrayArrayNumberList
@@ -161,7 +170,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayArrayNumberList](#arrayarraynumberlist) | of([List>](#arrayarraynumberlistinput) arg, SchemaConfiguration configuration) | +| static [ArrayArrayNumberList](#arrayarraynumberlist) | of([List>](#arrayarraynumberlistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
@@ -187,9 +196,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayOfArrayOfNumberOnly.ItemsList validatedPayload = ArrayOfArrayOfNumberOnly.Items.validate( - Arrays.asList( - 1 - ), + new .ItemsListBuilder( + Arrays.asList( + 1 + ) + ).build(), configuration ); ``` @@ -203,18 +214,28 @@ ArrayOfArrayOfNumberOnly.ItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList](#itemslist) | validate([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput -public class ItemsListInput
+## ItemsListBuilder +public class ItemsListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Number | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder()
Creates an empty list | +| ItemsListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder | add(int item) | +| ItemsListBuilder | add(float item) | +| ItemsListBuilder | add(long item) | +| ItemsListBuilder | add(double item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ItemsList public class ItemsList
@@ -225,7 +246,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList](#itemslist) | of([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| static [ItemsList](#itemslist) | of([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items1 public static class Items1
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md index dfca0c1b074..3e0fd7d269a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayOfEnums.ArrayOfEnums1](#arrayofenums1)
schema class | -| static class | [ArrayOfEnums.ArrayOfEnumsListInput](#arrayofenumslistinput)
builder for List payloads | +| static class | [ArrayOfEnums.ArrayOfEnumsListBuilder](#arrayofenumslistbuilder)
builder for List payloads | | static class | [ArrayOfEnums.ArrayOfEnumsList](#arrayofenumslist)
output class for List payloads | ## ArrayOfEnums1 @@ -38,9 +38,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayOfEnums.ArrayOfEnumsList validatedPayload = ArrayOfEnums.ArrayOfEnums1.validate( - Arrays.asList( - null - ), + new ArrayOfEnums.ArrayOfEnumsListBuilder( + Arrays.asList( + null + ) + ).build(), configuration ); ``` @@ -54,18 +56,28 @@ ArrayOfEnums.ArrayOfEnumsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfEnumsList](#arrayofenumslist) | validate([List](#arrayofenumslistinput) arg, SchemaConfiguration configuration) | +| [ArrayOfEnumsList](#arrayofenumslist) | validate([List](#arrayofenumslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayOfEnumsListInput -public class ArrayOfEnumsListInput
-builder for `List` +## ArrayOfEnumsListBuilder +public class ArrayOfEnumsListBuilder
+builder for `List<@Nullable String>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayOfEnumsListBuilder()
Creates an empty list | +| ArrayOfEnumsListBuilder(List<@Nullable String> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayOfEnumsListBuilder | add(Void item) | +| ArrayOfEnumsListBuilder | add(String item) | +| ArrayOfEnumsListBuilder | add([StringEnum.StringStringEnumEnums](../../components/schemas/StringEnum.md#stringstringenumenums) item) | +| ArrayOfEnumsListBuilder | add([StringEnum.NullStringEnumEnums](../../components/schemas/StringEnum.md#nullstringenumenums) item) | +| List<@Nullable String> | build()
Returns list input that should be used with Schema.validate | ## ArrayOfEnumsList public class ArrayOfEnumsList
@@ -76,6 +88,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayOfEnumsList](#arrayofenumslist) | of([List](#arrayofenumslistinput) arg, SchemaConfiguration configuration) | +| static [ArrayOfEnumsList](#arrayofenumslist) | of([List](#arrayofenumslistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md index c8403533043..96bb0737161 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md @@ -13,10 +13,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnly1](#arrayofnumberonly1)
schema class | -| static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMapInput](#arrayofnumberonlymapinput)
builder for Map payloads | +| static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMapBuilder](#arrayofnumberonlymapbuilder)
builder for Map payloads | | static class | [ArrayOfNumberOnly.ArrayOfNumberOnlyMap](#arrayofnumberonlymap)
output class for Map payloads | | static class | [ArrayOfNumberOnly.ArrayNumber](#arraynumber)
schema class | -| static class | [ArrayOfNumberOnly.ArrayNumberListInput](#arraynumberlistinput)
builder for List payloads | +| static class | [ArrayOfNumberOnly.ArrayNumberListBuilder](#arraynumberlistbuilder)
builder for List payloads | | static class | [ArrayOfNumberOnly.ArrayNumberList](#arraynumberlist)
output class for List payloads | | static class | [ArrayOfNumberOnly.Items](#items)
schema class | @@ -65,10 +65,10 @@ ArrayOfNumberOnly.ArrayOfNumberOnlyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | validate([Map](#arrayofnumberonlymapinput) arg, SchemaConfiguration configuration) | +| [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | validate([Map](#arrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayOfNumberOnlyMapInput -public class ArrayOfNumberOnlyMapInput
+## ArrayOfNumberOnlyMapBuilder +public class ArrayOfNumberOnlyMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | of([Map](#arrayofnumberonlymapinput) arg, SchemaConfiguration configuration) | +| static [ArrayOfNumberOnlyMap](#arrayofnumberonlymap) | of([Map](#arrayofnumberonlymapbuilder) arg, SchemaConfiguration configuration) | | [ArrayNumberList](#arraynumberlist) | ArrayNumber()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -116,9 +116,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayOfNumberOnly.ArrayNumberList validatedPayload = ArrayOfNumberOnly.ArrayNumber.validate( - Arrays.asList( - 1 - ), + new .ArrayNumberListBuilder( + Arrays.asList( + 1 + ) + ).build(), configuration ); ``` @@ -132,18 +134,28 @@ ArrayOfNumberOnly.ArrayNumberList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayNumberList](#arraynumberlist) | validate([List](#arraynumberlistinput) arg, SchemaConfiguration configuration) | +| [ArrayNumberList](#arraynumberlist) | validate([List](#arraynumberlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayNumberListInput -public class ArrayNumberListInput
+## ArrayNumberListBuilder +public class ArrayNumberListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Number | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayNumberListBuilder()
Creates an empty list | +| ArrayNumberListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayNumberListBuilder | add(int item) | +| ArrayNumberListBuilder | add(float item) | +| ArrayNumberListBuilder | add(long item) | +| ArrayNumberListBuilder | add(double item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ArrayNumberList public class ArrayNumberList
@@ -154,7 +166,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayNumberList](#arraynumberlist) | of([List](#arraynumberlistinput) arg, SchemaConfiguration configuration) | +| static [ArrayNumberList](#arraynumberlist) | of([List](#arraynumberlistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md index 7932606afe4..0c391baf3e2 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md @@ -13,23 +13,23 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayTest.ArrayTest1](#arraytest1)
schema class | -| static class | [ArrayTest.ArrayTestMapInput](#arraytestmapinput)
builder for Map payloads | +| static class | [ArrayTest.ArrayTestMapBuilder](#arraytestmapbuilder)
builder for Map payloads | | static class | [ArrayTest.ArrayTestMap](#arraytestmap)
output class for Map payloads | | static class | [ArrayTest.ArrayArrayOfModel](#arrayarrayofmodel)
schema class | -| static class | [ArrayTest.ArrayArrayOfModelListInput](#arrayarrayofmodellistinput)
builder for List payloads | +| static class | [ArrayTest.ArrayArrayOfModelListBuilder](#arrayarrayofmodellistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayArrayOfModelList](#arrayarrayofmodellist)
output class for List payloads | | static class | [ArrayTest.Items3](#items3)
schema class | -| static class | [ArrayTest.ItemsListInput1](#itemslistinput1)
builder for List payloads | +| static class | [ArrayTest.ItemsListBuilder1](#itemslistbuilder1)
builder for List payloads | | static class | [ArrayTest.ItemsList1](#itemslist1)
output class for List payloads | | static class | [ArrayTest.ArrayArrayOfInteger](#arrayarrayofinteger)
schema class | -| static class | [ArrayTest.ArrayArrayOfIntegerListInput](#arrayarrayofintegerlistinput)
builder for List payloads | +| static class | [ArrayTest.ArrayArrayOfIntegerListBuilder](#arrayarrayofintegerlistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayArrayOfIntegerList](#arrayarrayofintegerlist)
output class for List payloads | | static class | [ArrayTest.Items1](#items1)
schema class | -| static class | [ArrayTest.ItemsListInput](#itemslistinput)
builder for List payloads | +| static class | [ArrayTest.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [ArrayTest.ItemsList](#itemslist)
output class for List payloads | | static class | [ArrayTest.Items2](#items2)
schema class | | static class | [ArrayTest.ArrayOfString](#arrayofstring)
schema class | -| static class | [ArrayTest.ArrayOfStringListInput](#arrayofstringlistinput)
builder for List payloads | +| static class | [ArrayTest.ArrayOfStringListBuilder](#arrayofstringlistbuilder)
builder for List payloads | | static class | [ArrayTest.ArrayOfStringList](#arrayofstringlist)
output class for List payloads | | static class | [ArrayTest.Items](#items)
schema class | @@ -103,10 +103,10 @@ ArrayTest.ArrayTestMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayTestMap](#arraytestmap) | validate([Map](#arraytestmapinput) arg, SchemaConfiguration configuration) | +| [ArrayTestMap](#arraytestmap) | validate([Map](#arraytestmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayTestMapInput -public class ArrayTestMapInput
+## ArrayTestMapBuilder +public class ArrayTestMapBuilder
builder for `Map` A class that builds the Map input type @@ -115,7 +115,7 @@ A class that builds the Map input type | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | | **array_of_string** | List | | [optional] | -| **array_array_of_integer** | List> | | [optional] | +| **array_array_of_integer** | List> | | [optional] | | **array_array_of_model** | List>> | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -128,7 +128,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayTestMap](#arraytestmap) | of([Map](#arraytestmapinput) arg, SchemaConfiguration configuration) | +| static [ArrayTestMap](#arraytestmap) | of([Map](#arraytestmapbuilder) arg, SchemaConfiguration configuration) | | [ArrayOfStringList](#arrayofstringlist) | array_of_string()
[optional] | | [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | array_array_of_integer()
[optional] | | [ArrayArrayOfModelList](#arrayarrayofmodellist) | array_array_of_model()
[optional] | @@ -158,20 +158,22 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayTest.ArrayArrayOfModelList validatedPayload = ArrayTest.ArrayArrayOfModel.validate( - Arrays.asList( + new .ArrayArrayOfModelListBuilder( Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "bar", - "a" - ), - new AbstractMap.SimpleEntry( - "baz", - "a" + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "bar", + "a" + ), + new AbstractMap.SimpleEntry( + "baz", + "a" + ) ) ) ) - ), + ).build(), configuration ); ``` @@ -185,18 +187,25 @@ ArrayTest.ArrayArrayOfModelList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayArrayOfModelList](#arrayarrayofmodellist) | validate([List](#arrayarrayofmodellistinput) arg, SchemaConfiguration configuration) | +| [ArrayArrayOfModelList](#arrayarrayofmodellist) | validate([List](#arrayarrayofmodellistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayArrayOfModelListInput -public class ArrayArrayOfModelListInput
-builder for `List>>` +## ArrayArrayOfModelListBuilder +public class ArrayArrayOfModelListBuilder
+builder for `List>>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List> | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayArrayOfModelListBuilder()
Creates an empty list | +| ArrayArrayOfModelListBuilder(List>> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayArrayOfModelListBuilder | add(List> item) | +| List>> | build()
Returns list input that should be used with Schema.validate | ## ArrayArrayOfModelList public class ArrayArrayOfModelList
@@ -207,7 +216,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayArrayOfModelList](#arrayarrayofmodellist) | of([List>>](#arrayarrayofmodellistinput) arg, SchemaConfiguration configuration) | +| static [ArrayArrayOfModelList](#arrayarrayofmodellist) | of([List>>](#arrayarrayofmodellistbuilder) arg, SchemaConfiguration configuration) | ## Items3 public static class Items3
@@ -233,18 +242,20 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayTest.ItemsList1 validatedPayload = ArrayTest.Items3.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "bar", - "a" - ), - new AbstractMap.SimpleEntry( - "baz", - "a" + new .ItemsListBuilder1( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "bar", + "a" + ), + new AbstractMap.SimpleEntry( + "baz", + "a" + ) ) ) - ), + ).build(), configuration ); ``` @@ -258,18 +269,25 @@ ArrayTest.ItemsList1 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList1](#itemslist1) | validate([List](#itemslistinput1) arg, SchemaConfiguration configuration) | +| [ItemsList1](#itemslist1) | validate([List](#itemslistbuilder1) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput1 -public class ItemsListInput1
-builder for `List>` +## ItemsListBuilder1 +public class ItemsListBuilder1
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder1()
Creates an empty list | +| ItemsListBuilder1(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder1 | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ItemsList1 public class ItemsList1
@@ -280,7 +298,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList1](#itemslist1) | of([List>](#itemslistinput1) arg, SchemaConfiguration configuration) | +| static [ItemsList1](#itemslist1) | of([List>](#itemslistbuilder1) arg, SchemaConfiguration configuration) | ## ArrayArrayOfInteger public static class ArrayArrayOfInteger
@@ -306,11 +324,13 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayTest.ArrayArrayOfIntegerList validatedPayload = ArrayTest.ArrayArrayOfInteger.validate( - Arrays.asList( + new .ArrayArrayOfIntegerListBuilder( Arrays.asList( - 1L + Arrays.asList( + 1L + ) ) - ), + ).build(), configuration ); ``` @@ -324,18 +344,25 @@ ArrayTest.ArrayArrayOfIntegerList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | validate([List](#arrayarrayofintegerlistinput) arg, SchemaConfiguration configuration) | +| [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | validate([List](#arrayarrayofintegerlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayArrayOfIntegerListInput -public class ArrayArrayOfIntegerListInput
-builder for `List>` +## ArrayArrayOfIntegerListBuilder +public class ArrayArrayOfIntegerListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayArrayOfIntegerListBuilder()
Creates an empty list | +| ArrayArrayOfIntegerListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayArrayOfIntegerListBuilder | add(List item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ArrayArrayOfIntegerList public class ArrayArrayOfIntegerList
@@ -346,7 +373,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | of([List>](#arrayarrayofintegerlistinput) arg, SchemaConfiguration configuration) | +| static [ArrayArrayOfIntegerList](#arrayarrayofintegerlist) | of([List>](#arrayarrayofintegerlistbuilder) arg, SchemaConfiguration configuration) | ## Items1 public static class Items1
@@ -372,9 +399,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayTest.ItemsList validatedPayload = ArrayTest.Items1.validate( - Arrays.asList( - 1L - ), + new .ItemsListBuilder( + Arrays.asList( + 1L + ) + ).build(), configuration ); ``` @@ -388,29 +417,39 @@ ArrayTest.ItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList](#itemslist) | validate([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput -public class ItemsListInput
-builder for `List` +## ItemsListBuilder +public class ItemsListBuilder
+builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Long | | value must be a 64 bit integer +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder()
Creates an empty list | +| ItemsListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder | add(int item) | +| ItemsListBuilder | add(float item) | +| ItemsListBuilder | add(long item) | +| ItemsListBuilder | add(double item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ItemsList public class ItemsList
-extends `FrozenList` +extends `FrozenList` A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList](#itemslist) | of([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| static [ItemsList](#itemslist) | of([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items2 public static class Items2
@@ -446,9 +485,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayTest.ArrayOfStringList validatedPayload = ArrayTest.ArrayOfString.validate( - Arrays.asList( - "a" - ), + new .ArrayOfStringListBuilder( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -462,18 +503,25 @@ ArrayTest.ArrayOfStringList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayOfStringList](#arrayofstringlist) | validate([List](#arrayofstringlistinput) arg, SchemaConfiguration configuration) | +| [ArrayOfStringList](#arrayofstringlist) | validate([List](#arrayofstringlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayOfStringListInput -public class ArrayOfStringListInput
+## ArrayOfStringListBuilder +public class ArrayOfStringListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayOfStringListBuilder()
Creates an empty list | +| ArrayOfStringListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayOfStringListBuilder | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ArrayOfStringList public class ArrayOfStringList
@@ -484,7 +532,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayOfStringList](#arrayofstringlist) | of([List](#arrayofstringlistinput) arg, SchemaConfiguration configuration) | +| static [ArrayOfStringList](#arrayofstringlist) | of([List](#arrayofstringlistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md index 042bfe9f2cd..9d12ac12a50 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItems1](#arraywithvalidationsinitems1)
schema class | -| static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsListInput](#arraywithvalidationsinitemslistinput)
builder for List payloads | +| static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsListBuilder](#arraywithvalidationsinitemslistbuilder)
builder for List payloads | | static class | [ArrayWithValidationsInItems.ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist)
output class for List payloads | | static class | [ArrayWithValidationsInItems.Items](#items)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ArrayWithValidationsInItems.ArrayWithValidationsInItemsList validatedPayload = ArrayWithValidationsInItems.ArrayWithValidationsInItems1.validate( - Arrays.asList( - 1L - ), + new ArrayWithValidationsInItems.ArrayWithValidationsInItemsListBuilder( + Arrays.asList( + 1L + ) + ).build(), configuration ); ``` @@ -56,29 +58,39 @@ ArrayWithValidationsInItems.ArrayWithValidationsInItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | validate([List](#arraywithvalidationsinitemslistinput) arg, SchemaConfiguration configuration) | +| [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | validate([List](#arraywithvalidationsinitemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayWithValidationsInItemsListInput -public class ArrayWithValidationsInItemsListInput
-builder for `List` +## ArrayWithValidationsInItemsListBuilder +public class ArrayWithValidationsInItemsListBuilder
+builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Long | | value must be a 64 bit integer +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayWithValidationsInItemsListBuilder()
Creates an empty list | +| ArrayWithValidationsInItemsListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayWithValidationsInItemsListBuilder | add(int item) | +| ArrayWithValidationsInItemsListBuilder | add(float item) | +| ArrayWithValidationsInItemsListBuilder | add(long item) | +| ArrayWithValidationsInItemsListBuilder | add(double item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ArrayWithValidationsInItemsList public class ArrayWithValidationsInItemsList
-extends `FrozenList` +extends `FrozenList` A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | of([List](#arraywithvalidationsinitemslistinput) arg, SchemaConfiguration configuration) | +| static [ArrayWithValidationsInItemsList](#arraywithvalidationsinitemslist) | of([List](#arraywithvalidationsinitemslistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/Banana.md b/samples/client/petstore/java/docs/components/schemas/Banana.md index 460ff4adae9..d741c423663 100644 --- a/samples/client/petstore/java/docs/components/schemas/Banana.md +++ b/samples/client/petstore/java/docs/components/schemas/Banana.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Banana.Banana1](#banana1)
schema class | -| static class | [Banana.BananaMapInput](#bananamapinput)
builder for Map payloads | +| static class | [Banana.BananaMapBuilder](#bananamapbuilder)
builder for Map payloads | | static class | [Banana.BananaMap](#bananamap)
output class for Map payloads | | static class | [Banana.LengthCm](#lengthcm)
schema class | @@ -59,10 +59,10 @@ Banana.BananaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BananaMap](#bananamap) | validate([Map](#bananamapinput) arg, SchemaConfiguration configuration) | +| [BananaMap](#bananamap) | validate([Map](#bananamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## BananaMapInput -public class BananaMapInput
+## BananaMapBuilder +public class BananaMapBuilder
builder for `Map` A class that builds the Map input type @@ -82,7 +82,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [BananaMap](#bananamap) | of([Map](#bananamapinput) arg, SchemaConfiguration configuration) | +| static [BananaMap](#bananamap) | of([Map](#bananamapbuilder) arg, SchemaConfiguration configuration) | | Number | lengthCm()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/BananaReq.md b/samples/client/petstore/java/docs/components/schemas/BananaReq.md index 757549e6c7d..5d417575a51 100644 --- a/samples/client/petstore/java/docs/components/schemas/BananaReq.md +++ b/samples/client/petstore/java/docs/components/schemas/BananaReq.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [BananaReq.BananaReq1](#bananareq1)
schema class | -| static class | [BananaReq.BananaReqMapInput](#bananareqmapinput)
builder for Map payloads | +| static class | [BananaReq.BananaReqMapBuilder](#bananareqmapbuilder)
builder for Map payloads | | static class | [BananaReq.BananaReqMap](#bananareqmap)
output class for Map payloads | | static class | [BananaReq.Sweet](#sweet)
schema class | | static class | [BananaReq.LengthCm](#lengthcm)
schema class | @@ -66,10 +66,10 @@ BananaReq.BananaReqMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BananaReqMap](#bananareqmap) | validate([Map](#bananareqmapinput) arg, SchemaConfiguration configuration) | +| [BananaReqMap](#bananareqmap) | validate([Map](#bananareqmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## BananaReqMapInput -public class BananaReqMapInput
+## BananaReqMapBuilder +public class BananaReqMapBuilder
builder for `Map` A class that builds the Map input type @@ -89,7 +89,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [BananaReqMap](#bananareqmap) | of([Map](#bananareqmapinput) arg, SchemaConfiguration configuration) | +| static [BananaReqMap](#bananareqmap) | of([Map](#bananareqmapbuilder) arg, SchemaConfiguration configuration) | | Number | lengthCm()
| | boolean | sweet()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/BasquePig.md b/samples/client/petstore/java/docs/components/schemas/BasquePig.md index 050521db8bd..9e7812675e8 100644 --- a/samples/client/petstore/java/docs/components/schemas/BasquePig.md +++ b/samples/client/petstore/java/docs/components/schemas/BasquePig.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [BasquePig.BasquePig1](#basquepig1)
schema class | -| static class | [BasquePig.BasquePigMapInput](#basquepigmapinput)
builder for Map payloads | +| static class | [BasquePig.BasquePigMapBuilder](#basquepigmapbuilder)
builder for Map payloads | | static class | [BasquePig.BasquePigMap](#basquepigmap)
output class for Map payloads | | static class | [BasquePig.ClassName](#classname)
schema class | | enum | [BasquePig.StringClassNameEnums](#stringclassnameenums)
String enum | @@ -61,10 +61,10 @@ BasquePig.BasquePigMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [BasquePigMap](#basquepigmap) | validate([Map](#basquepigmapinput) arg, SchemaConfiguration configuration) | +| [BasquePigMap](#basquepigmap) | validate([Map](#basquepigmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## BasquePigMapInput -public class BasquePigMapInput
+## BasquePigMapBuilder +public class BasquePigMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [BasquePigMap](#basquepigmap) | of([Map](#basquepigmapinput) arg, SchemaConfiguration configuration) | +| static [BasquePigMap](#basquepigmap) | of([Map](#basquepigmapbuilder) arg, SchemaConfiguration configuration) | | String | className()
must be one of ["BasquePig"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Capitalization.md b/samples/client/petstore/java/docs/components/schemas/Capitalization.md index b2fdfd40026..0eebd51050a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Capitalization.md +++ b/samples/client/petstore/java/docs/components/schemas/Capitalization.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Capitalization.Capitalization1](#capitalization1)
schema class | -| static class | [Capitalization.CapitalizationMapInput](#capitalizationmapinput)
builder for Map payloads | +| static class | [Capitalization.CapitalizationMapBuilder](#capitalizationmapbuilder)
builder for Map payloads | | static class | [Capitalization.CapitalizationMap](#capitalizationmap)
output class for Map payloads | | static class | [Capitalization.ATTNAME](#attname)
schema class | | static class | [Capitalization.SCAETHFlowPoints](#scaethflowpoints)
schema class | @@ -83,10 +83,10 @@ Capitalization.CapitalizationMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CapitalizationMap](#capitalizationmap) | validate([Map](#capitalizationmapinput) arg, SchemaConfiguration configuration) | +| [CapitalizationMap](#capitalizationmap) | validate([Map](#capitalizationmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CapitalizationMapInput -public class CapitalizationMapInput
+## CapitalizationMapBuilder +public class CapitalizationMapBuilder
builder for `Map` A class that builds the Map input type @@ -111,7 +111,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CapitalizationMap](#capitalizationmap) | of([Map](#capitalizationmapinput) arg, SchemaConfiguration configuration) | +| static [CapitalizationMap](#capitalizationmap) | of([Map](#capitalizationmapbuilder) arg, SchemaConfiguration configuration) | | String | smallCamel()
[optional] | | String | CapitalCamel()
[optional] | | String | small_Snake()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/Cat.md b/samples/client/petstore/java/docs/components/schemas/Cat.md index 52c72d829f8..77a6f83261e 100644 --- a/samples/client/petstore/java/docs/components/schemas/Cat.md +++ b/samples/client/petstore/java/docs/components/schemas/Cat.md @@ -12,7 +12,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [Cat.Cat1](#cat1)
schema class | | static class | [Cat.Schema1](#schema1)
schema class | -| static class | [Cat.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [Cat.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Cat.Schema1Map](#schema1map)
output class for Map payloads | | static class | [Cat.Declawed](#declawed)
schema class | @@ -83,10 +83,10 @@ Cat.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -106,7 +106,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | boolean | declawed()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Category.md b/samples/client/petstore/java/docs/components/schemas/Category.md index 28feb568c67..14f9e73b6fd 100644 --- a/samples/client/petstore/java/docs/components/schemas/Category.md +++ b/samples/client/petstore/java/docs/components/schemas/Category.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Category.Category1](#category1)
schema class | -| static class | [Category.CategoryMapInput](#categorymapinput)
builder for Map payloads | +| static class | [Category.CategoryMapBuilder](#categorymapbuilder)
builder for Map payloads | | static class | [Category.CategoryMap](#categorymap)
output class for Map payloads | | static class | [Category.Name](#name)
schema class | | static class | [Category.Id](#id)
schema class | @@ -64,10 +64,10 @@ Category.CategoryMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [CategoryMap](#categorymap) | validate([Map](#categorymapinput) arg, SchemaConfiguration configuration) | +| [CategoryMap](#categorymap) | validate([Map](#categorymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## CategoryMapInput -public class CategoryMapInput
+## CategoryMapBuilder +public class CategoryMapBuilder
builder for `Map` A class that builds the Map input type @@ -76,7 +76,7 @@ A class that builds the Map input type | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | | **name** | String | | if omitted the server will use the default value of default-name | -| **id** | long | | [optional] value must be a 64 bit integer | +| **id** | Number | | [optional] value must be a 64 bit integer | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## CategoryMap @@ -88,9 +88,9 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [CategoryMap](#categorymap) | of([Map](#categorymapinput) arg, SchemaConfiguration configuration) | +| static [CategoryMap](#categorymap) | of([Map](#categorymapbuilder) arg, SchemaConfiguration configuration) | | String | name()
if omitted the server will use the default value of default-name | -| long | id()
[optional] value must be a 64 bit integer | +| Number | id()
[optional] value must be a 64 bit integer | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Name diff --git a/samples/client/petstore/java/docs/components/schemas/ChildCat.md b/samples/client/petstore/java/docs/components/schemas/ChildCat.md index c12db156b55..c1691607a38 100644 --- a/samples/client/petstore/java/docs/components/schemas/ChildCat.md +++ b/samples/client/petstore/java/docs/components/schemas/ChildCat.md @@ -12,7 +12,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [ChildCat.ChildCat1](#childcat1)
schema class | | static class | [ChildCat.Schema1](#schema1)
schema class | -| static class | [ChildCat.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [ChildCat.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ChildCat.Schema1Map](#schema1map)
output class for Map payloads | | static class | [ChildCat.Name](#name)
schema class | @@ -83,10 +83,10 @@ ChildCat.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -106,7 +106,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | name()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ClassModel.md b/samples/client/petstore/java/docs/components/schemas/ClassModel.md index b844a99d796..49a7a8d2a69 100644 --- a/samples/client/petstore/java/docs/components/schemas/ClassModel.md +++ b/samples/client/petstore/java/docs/components/schemas/ClassModel.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ClassModel.ClassModel1](#classmodel1)
schema class | -| static class | [ClassModel.ClassModelMapInput](#classmodelmapinput)
builder for Map payloads | +| static class | [ClassModel.ClassModelMapBuilder](#classmodelmapbuilder)
builder for Map payloads | | static class | [ClassModel.ClassModelMap](#classmodelmap)
output class for Map payloads | | static class | [ClassModel.ClassSchema](#classschema)
schema class | @@ -39,11 +39,11 @@ Model for testing model with "_class" property | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [ClassModelMap](#classmodelmap) | validate([Map](#classmodelmapinput) arg, SchemaConfiguration configuration) | +| [ClassModelMap](#classmodelmap) | validate([Map](#classmodelmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ClassModelMapInput -public class ClassModelMapInput
+## ClassModelMapBuilder +public class ClassModelMapBuilder
builder for `Map` A class that builds the Map input type @@ -63,7 +63,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ClassModelMap](#classmodelmap) | of([Map](#classmodelmapinput) arg, SchemaConfiguration configuration) | +| static [ClassModelMap](#classmodelmap) | of([Map](#classmodelmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["_class"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Client.md b/samples/client/petstore/java/docs/components/schemas/Client.md index 745d254b004..14e4bea1f95 100644 --- a/samples/client/petstore/java/docs/components/schemas/Client.md +++ b/samples/client/petstore/java/docs/components/schemas/Client.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Client.Client1](#client1)
schema class | -| static class | [Client.ClientMapInput](#clientmapinput)
builder for Map payloads | +| static class | [Client.ClientMapBuilder](#clientmapbuilder)
builder for Map payloads | | static class | [Client.ClientMap](#clientmap)
output class for Map payloads | | static class | [Client.Client2](#client2)
schema class | @@ -58,10 +58,10 @@ Client.ClientMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ClientMap](#clientmap) | validate([Map](#clientmapinput) arg, SchemaConfiguration configuration) | +| [ClientMap](#clientmap) | validate([Map](#clientmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ClientMapInput -public class ClientMapInput
+## ClientMapBuilder +public class ClientMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ClientMap](#clientmap) | of([Map](#clientmapinput) arg, SchemaConfiguration configuration) | +| static [ClientMap](#clientmap) | of([Map](#clientmapbuilder) arg, SchemaConfiguration configuration) | | String | client()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md index d4312dfdd27..c2e34d15427 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md @@ -13,7 +13,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [ComplexQuadrilateral.ComplexQuadrilateral1](#complexquadrilateral1)
schema class | | static class | [ComplexQuadrilateral.Schema1](#schema1)
schema class | -| static class | [ComplexQuadrilateral.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [ComplexQuadrilateral.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ComplexQuadrilateral.Schema1Map](#schema1map)
output class for Map payloads | | static class | [ComplexQuadrilateral.QuadrilateralType](#quadrilateraltype)
schema class | | enum | [ComplexQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | @@ -85,10 +85,10 @@ ComplexQuadrilateral.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -108,7 +108,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | quadrilateralType()
[optional] must be one of ["ComplexQuadrilateral"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md index b6bf17352b1..347a43928b0 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md @@ -18,7 +18,7 @@ A class that contains necessary nested | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema11](#schema11)
schema class | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema10](#schema10)
schema class | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9](#schema9)
schema class | -| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9ListInput](#schema9listinput)
builder for List payloads | +| static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9ListBuilder](#schema9listbuilder)
builder for List payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema9List](#schema9list)
output class for List payloads | | static class | [ComposedAnyOfDifferentTypesNoValidations.Items](#items)
schema class | | static class | [ComposedAnyOfDifferentTypesNoValidations.Schema8](#schema8)
schema class | @@ -139,8 +139,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ComposedAnyOfDifferentTypesNoValidations.Schema9List validatedPayload = ComposedAnyOfDifferentTypesNoValidations.Schema9.validate( - Arrays.asList( - ), + new .Schema9ListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -154,18 +156,33 @@ ComposedAnyOfDifferentTypesNoValidations.Schema9List validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema9List](#schema9list) | validate([List](#schema9listinput) arg, SchemaConfiguration configuration) | +| [Schema9List](#schema9list) | validate([List](#schema9listbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema9ListInput -public class Schema9ListInput
-builder for `List` +## Schema9ListBuilder +public class Schema9ListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema9ListBuilder()
Creates an empty list | +| Schema9ListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Schema9ListBuilder | add(Void item) | +| Schema9ListBuilder | add(boolean item) | +| Schema9ListBuilder | add(String item) | +| Schema9ListBuilder | add(int item) | +| Schema9ListBuilder | add(float item) | +| Schema9ListBuilder | add(long item) | +| Schema9ListBuilder | add(double item) | +| Schema9ListBuilder | add(List item) | +| Schema9ListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## Schema9List public class Schema9List
@@ -176,7 +193,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema9List](#schema9list) | of([List](#schema9listinput) arg, SchemaConfiguration configuration) | +| static [Schema9List](#schema9list) | of([List](#schema9listbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md index 9cef987c8c2..cf668f30d4e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ComposedArray.ComposedArray1](#composedarray1)
schema class | -| static class | [ComposedArray.ComposedArrayListInput](#composedarraylistinput)
builder for List payloads | +| static class | [ComposedArray.ComposedArrayListBuilder](#composedarraylistbuilder)
builder for List payloads | | static class | [ComposedArray.ComposedArrayList](#composedarraylist)
output class for List payloads | | static class | [ComposedArray.Items](#items)
schema class | @@ -39,8 +39,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ComposedArray.ComposedArrayList validatedPayload = ComposedArray.ComposedArray1.validate( - Arrays.asList( - ), + new ComposedArray.ComposedArrayListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -54,18 +56,33 @@ ComposedArray.ComposedArrayList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ComposedArrayList](#composedarraylist) | validate([List](#composedarraylistinput) arg, SchemaConfiguration configuration) | +| [ComposedArrayList](#composedarraylist) | validate([List](#composedarraylistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ComposedArrayListInput -public class ComposedArrayListInput
-builder for `List` +## ComposedArrayListBuilder +public class ComposedArrayListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ComposedArrayListBuilder()
Creates an empty list | +| ComposedArrayListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ComposedArrayListBuilder | add(Void item) | +| ComposedArrayListBuilder | add(boolean item) | +| ComposedArrayListBuilder | add(String item) | +| ComposedArrayListBuilder | add(int item) | +| ComposedArrayListBuilder | add(float item) | +| ComposedArrayListBuilder | add(long item) | +| ComposedArrayListBuilder | add(double item) | +| ComposedArrayListBuilder | add(List item) | +| ComposedArrayListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## ComposedArrayList public class ComposedArrayList
@@ -76,7 +93,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ComposedArrayList](#composedarraylist) | of([List](#composedarraylistinput) arg, SchemaConfiguration configuration) | +| static [ComposedArrayList](#composedarraylist) | of([List](#composedarraylistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md index 2fe349f967d..574343fd670 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md @@ -13,7 +13,7 @@ A class that contains necessary nested | static class | [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](#composedoneofdifferenttypes1)
schema class | | static class | [ComposedOneOfDifferentTypes.Schema6](#schema6)
schema class | | static class | [ComposedOneOfDifferentTypes.Schema5](#schema5)
schema class | -| static class | [ComposedOneOfDifferentTypes.Schema5ListInput](#schema5listinput)
builder for List payloads | +| static class | [ComposedOneOfDifferentTypes.Schema5ListBuilder](#schema5listbuilder)
builder for List payloads | | static class | [ComposedOneOfDifferentTypes.Schema5List](#schema5list)
output class for List payloads | | static class | [ComposedOneOfDifferentTypes.Items](#items)
schema class | | static class | [ComposedOneOfDifferentTypes.Schema4](#schema4)
schema class | @@ -111,8 +111,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation ComposedOneOfDifferentTypes.Schema5List validatedPayload = ComposedOneOfDifferentTypes.Schema5.validate( - Arrays.asList( - ), + new .Schema5ListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -128,18 +130,33 @@ ComposedOneOfDifferentTypes.Schema5List validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema5List](#schema5list) | validate([List](#schema5listinput) arg, SchemaConfiguration configuration) | +| [Schema5List](#schema5list) | validate([List](#schema5listbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema5ListInput -public class Schema5ListInput
-builder for `List` +## Schema5ListBuilder +public class Schema5ListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| Schema5ListBuilder()
Creates an empty list | +| Schema5ListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Schema5ListBuilder | add(Void item) | +| Schema5ListBuilder | add(boolean item) | +| Schema5ListBuilder | add(String item) | +| Schema5ListBuilder | add(int item) | +| Schema5ListBuilder | add(float item) | +| Schema5ListBuilder | add(long item) | +| Schema5ListBuilder | add(double item) | +| Schema5ListBuilder | add(List item) | +| Schema5ListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## Schema5List public class Schema5List
@@ -150,7 +167,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema5List](#schema5list) | of([List](#schema5listinput) arg, SchemaConfiguration configuration) | +| static [Schema5List](#schema5list) | of([List](#schema5listbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/DanishPig.md b/samples/client/petstore/java/docs/components/schemas/DanishPig.md index a188a2543e9..c9a2ea6bd66 100644 --- a/samples/client/petstore/java/docs/components/schemas/DanishPig.md +++ b/samples/client/petstore/java/docs/components/schemas/DanishPig.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [DanishPig.DanishPig1](#danishpig1)
schema class | -| static class | [DanishPig.DanishPigMapInput](#danishpigmapinput)
builder for Map payloads | +| static class | [DanishPig.DanishPigMapBuilder](#danishpigmapbuilder)
builder for Map payloads | | static class | [DanishPig.DanishPigMap](#danishpigmap)
output class for Map payloads | | static class | [DanishPig.ClassName](#classname)
schema class | | enum | [DanishPig.StringClassNameEnums](#stringclassnameenums)
String enum | @@ -61,10 +61,10 @@ DanishPig.DanishPigMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DanishPigMap](#danishpigmap) | validate([Map](#danishpigmapinput) arg, SchemaConfiguration configuration) | +| [DanishPigMap](#danishpigmap) | validate([Map](#danishpigmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## DanishPigMapInput -public class DanishPigMapInput
+## DanishPigMapBuilder +public class DanishPigMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [DanishPigMap](#danishpigmap) | of([Map](#danishpigmapinput) arg, SchemaConfiguration configuration) | +| static [DanishPigMap](#danishpigmap) | of([Map](#danishpigmapbuilder) arg, SchemaConfiguration configuration) | | String | className()
must be one of ["DanishPig"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Dog.md b/samples/client/petstore/java/docs/components/schemas/Dog.md index 8060aa54fbc..db7ed1cbb1b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Dog.md +++ b/samples/client/petstore/java/docs/components/schemas/Dog.md @@ -12,7 +12,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [Dog.Dog1](#dog1)
schema class | | static class | [Dog.Schema1](#schema1)
schema class | -| static class | [Dog.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [Dog.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [Dog.Schema1Map](#schema1map)
output class for Map payloads | | static class | [Dog.Breed](#breed)
schema class | @@ -83,10 +83,10 @@ Dog.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -106,7 +106,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | breed()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Drawing.md b/samples/client/petstore/java/docs/components/schemas/Drawing.md index bdc4abbbfd5..b19a3fa5b8a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Drawing.md +++ b/samples/client/petstore/java/docs/components/schemas/Drawing.md @@ -13,10 +13,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Drawing.Drawing1](#drawing1)
schema class | -| static class | [Drawing.DrawingMapInput](#drawingmapinput)
builder for Map payloads | +| static class | [Drawing.DrawingMapBuilder](#drawingmapbuilder)
builder for Map payloads | | static class | [Drawing.DrawingMap](#drawingmap)
output class for Map payloads | | static class | [Drawing.Shapes](#shapes)
schema class | -| static class | [Drawing.ShapesListInput](#shapeslistinput)
builder for List payloads | +| static class | [Drawing.ShapesListBuilder](#shapeslistbuilder)
builder for List payloads | | static class | [Drawing.ShapesList](#shapeslist)
output class for List payloads | ## Drawing1 @@ -64,10 +64,10 @@ Drawing.DrawingMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DrawingMap](#drawingmap) | validate([Map](#drawingmapinput) arg, SchemaConfiguration configuration) | +| [DrawingMap](#drawingmap) | validate([Map](#drawingmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## DrawingMapInput -public class DrawingMapInput
+## DrawingMapBuilder +public class DrawingMapBuilder
builder for `Map` A class that builds the Map input type @@ -90,7 +90,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [DrawingMap](#drawingmap) | of([Map](#drawingmapinput) arg, SchemaConfiguration configuration) | +| static [DrawingMap](#drawingmap) | of([Map](#drawingmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | mainShape()
[optional] | | @Nullable Object | shapeOrNull()
[optional] | | @Nullable Object | nullableShape()
[optional] | @@ -121,8 +121,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Drawing.ShapesList validatedPayload = Drawing.Shapes.validate( - Arrays.asList( - ), + new .ShapesListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -136,18 +138,33 @@ Drawing.ShapesList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ShapesList](#shapeslist) | validate([List](#shapeslistinput) arg, SchemaConfiguration configuration) | +| [ShapesList](#shapeslist) | validate([List](#shapeslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ShapesListInput -public class ShapesListInput
-builder for `List` +## ShapesListBuilder +public class ShapesListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ShapesListBuilder()
Creates an empty list | +| ShapesListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ShapesListBuilder | add(Void item) | +| ShapesListBuilder | add(boolean item) | +| ShapesListBuilder | add(String item) | +| ShapesListBuilder | add(int item) | +| ShapesListBuilder | add(float item) | +| ShapesListBuilder | add(long item) | +| ShapesListBuilder | add(double item) | +| ShapesListBuilder | add(List item) | +| ShapesListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## ShapesList public class ShapesList
@@ -158,6 +175,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ShapesList](#shapeslist) | of([List](#shapeslistinput) arg, SchemaConfiguration configuration) | +| static [ShapesList](#shapeslist) | of([List](#shapeslistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md index fdacbe69ce0..d3818491529 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md @@ -14,10 +14,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [EnumArrays.EnumArrays1](#enumarrays1)
schema class | -| static class | [EnumArrays.EnumArraysMapInput](#enumarraysmapinput)
builder for Map payloads | +| static class | [EnumArrays.EnumArraysMapBuilder](#enumarraysmapbuilder)
builder for Map payloads | | static class | [EnumArrays.EnumArraysMap](#enumarraysmap)
output class for Map payloads | | static class | [EnumArrays.ArrayEnum](#arrayenum)
schema class | -| static class | [EnumArrays.ArrayEnumListInput](#arrayenumlistinput)
builder for List payloads | +| static class | [EnumArrays.ArrayEnumListBuilder](#arrayenumlistbuilder)
builder for List payloads | | static class | [EnumArrays.ArrayEnumList](#arrayenumlist)
output class for List payloads | | static class | [EnumArrays.Items](#items)
schema class | | enum | [EnumArrays.StringItemsEnums](#stringitemsenums)
String enum | @@ -73,10 +73,10 @@ EnumArrays.EnumArraysMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EnumArraysMap](#enumarraysmap) | validate([Map](#enumarraysmapinput) arg, SchemaConfiguration configuration) | +| [EnumArraysMap](#enumarraysmap) | validate([Map](#enumarraysmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## EnumArraysMapInput -public class EnumArraysMapInput
+## EnumArraysMapBuilder +public class EnumArraysMapBuilder
builder for `Map` A class that builds the Map input type @@ -97,7 +97,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [EnumArraysMap](#enumarraysmap) | of([Map](#enumarraysmapinput) arg, SchemaConfiguration configuration) | +| static [EnumArraysMap](#enumarraysmap) | of([Map](#enumarraysmapbuilder) arg, SchemaConfiguration configuration) | | String | just_symbol()
[optional] must be one of [">=", "$"] | | [ArrayEnumList](#arrayenumlist) | array_enum()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -126,9 +126,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation EnumArrays.ArrayEnumList validatedPayload = EnumArrays.ArrayEnum.validate( - Arrays.asList( - "fish" - ), + new .ArrayEnumListBuilder( + Arrays.asList( + "fish" + ) + ).build(), configuration ); ``` @@ -142,18 +144,26 @@ EnumArrays.ArrayEnumList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayEnumList](#arrayenumlist) | validate([List](#arrayenumlistinput) arg, SchemaConfiguration configuration) | +| [ArrayEnumList](#arrayenumlist) | validate([List](#arrayenumlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayEnumListInput -public class ArrayEnumListInput
+## ArrayEnumListBuilder +public class ArrayEnumListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | must be one of ["fish", "crab"] +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayEnumListBuilder()
Creates an empty list | +| ArrayEnumListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayEnumListBuilder | add(String item) | +| ArrayEnumListBuilder | add([StringItemsEnums](#stringitemsenums) item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ArrayEnumList public class ArrayEnumList
@@ -164,7 +174,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayEnumList](#arrayenumlist) | of([List](#arrayenumlistinput) arg, SchemaConfiguration configuration) | +| static [ArrayEnumList](#arrayenumlist) | of([List](#arrayenumlistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/EnumTest.md b/samples/client/petstore/java/docs/components/schemas/EnumTest.md index 1fd7f3dcc16..93eb84e5a4d 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumTest.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumTest.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [EnumTest.EnumTest1](#enumtest1)
schema class | -| static class | [EnumTest.EnumTestMapInput](#enumtestmapinput)
builder for Map payloads | +| static class | [EnumTest.EnumTestMapBuilder](#enumtestmapbuilder)
builder for Map payloads | | static class | [EnumTest.EnumTestMap](#enumtestmap)
output class for Map payloads | | static class | [EnumTest.EnumNumber](#enumnumber)
schema class | | enum | [EnumTest.DoubleEnumNumberEnums](#doubleenumnumberenums)
Double enum | @@ -83,10 +83,10 @@ EnumTest.EnumTestMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EnumTestMap](#enumtestmap) | validate([Map](#enumtestmapinput) arg, SchemaConfiguration configuration) | +| [EnumTestMap](#enumtestmap) | validate([Map](#enumtestmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## EnumTestMapInput -public class EnumTestMapInput
+## EnumTestMapBuilder +public class EnumTestMapBuilder
builder for `Map` A class that builds the Map input type @@ -96,13 +96,13 @@ A class that builds the Map input type | --- | ---- | ------------ | ----- | | **enum_string_required** | String | | must be one of ["UPPER", "lower", ""] | | **enum_string** | String | | [optional] must be one of ["UPPER", "lower", ""] | -| **enum_integer** | int | | [optional] must be one of [1, -1] value must be a 32 bit integer | -| **enum_number** | double | | [optional] must be one of [1.1, -1.2] value must be a 64 bit float | +| **enum_integer** | Number | | [optional] must be one of [1, -1] value must be a 32 bit integer | +| **enum_number** | Number | | [optional] must be one of [1.1, -1.2] value must be a 64 bit float | | **stringEnum** | ? extends @Nullable String | | [optional] | -| **IntegerEnum** | long | | [optional] | +| **IntegerEnum** | Number | | [optional] | | **StringEnumWithDefaultValue** | String | | [optional] | -| **IntegerEnumWithDefaultValue** | long | | [optional] | -| **IntegerEnumOneValue** | long | | [optional] | +| **IntegerEnumWithDefaultValue** | Number | | [optional] | +| **IntegerEnumOneValue** | Number | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## EnumTestMap @@ -114,16 +114,16 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [EnumTestMap](#enumtestmap) | of([Map](#enumtestmapinput) arg, SchemaConfiguration configuration) | +| static [EnumTestMap](#enumtestmap) | of([Map](#enumtestmapbuilder) arg, SchemaConfiguration configuration) | | String | enum_string_required()
must be one of ["UPPER", "lower", ""] | | String | enum_string()
[optional] must be one of ["UPPER", "lower", ""] | -| int | enum_integer()
[optional] must be one of [1, -1] value must be a 32 bit integer | -| double | enum_number()
[optional] must be one of [1.1, -1.2] value must be a 64 bit float | +| Number | enum_integer()
[optional] must be one of [1, -1] value must be a 32 bit integer | +| Number | enum_number()
[optional] must be one of [1.1, -1.2] value must be a 64 bit float | | @Nullable String | stringEnum()
[optional] | -| long | IntegerEnum()
[optional] | +| Number | IntegerEnum()
[optional] | | String | StringEnumWithDefaultValue()
[optional] | -| long | IntegerEnumWithDefaultValue()
[optional] | -| long | IntegerEnumOneValue()
[optional] | +| Number | IntegerEnumWithDefaultValue()
[optional] | +| Number | IntegerEnumOneValue()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## EnumNumber diff --git a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md index a1b5b8e2e8e..a1169f7f0ea 100644 --- a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md @@ -13,7 +13,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [EquilateralTriangle.EquilateralTriangle1](#equilateraltriangle1)
schema class | | static class | [EquilateralTriangle.Schema1](#schema1)
schema class | -| static class | [EquilateralTriangle.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [EquilateralTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [EquilateralTriangle.Schema1Map](#schema1map)
output class for Map payloads | | static class | [EquilateralTriangle.TriangleType](#triangletype)
schema class | | enum | [EquilateralTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | @@ -85,10 +85,10 @@ EquilateralTriangle.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -108,7 +108,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | triangleType()
[optional] must be one of ["EquilateralTriangle"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/File.md b/samples/client/petstore/java/docs/components/schemas/File.md index 624b8fd06c8..01c43336858 100644 --- a/samples/client/petstore/java/docs/components/schemas/File.md +++ b/samples/client/petstore/java/docs/components/schemas/File.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [File.File1](#file1)
schema class | -| static class | [File.FileMapInput](#filemapinput)
builder for Map payloads | +| static class | [File.FileMapBuilder](#filemapbuilder)
builder for Map payloads | | static class | [File.FileMap](#filemap)
output class for Map payloads | | static class | [File.SourceURI](#sourceuri)
schema class | @@ -61,10 +61,10 @@ File.FileMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FileMap](#filemap) | validate([Map](#filemapinput) arg, SchemaConfiguration configuration) | +| [FileMap](#filemap) | validate([Map](#filemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FileMapInput -public class FileMapInput
+## FileMapBuilder +public class FileMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FileMap](#filemap) | of([Map](#filemapinput) arg, SchemaConfiguration configuration) | +| static [FileMap](#filemap) | of([Map](#filemapbuilder) arg, SchemaConfiguration configuration) | | String | sourceURI()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md index 44e1699b629..9a7e000c4f3 100644 --- a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md +++ b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md @@ -13,10 +13,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [FileSchemaTestClass.FileSchemaTestClass1](#fileschematestclass1)
schema class | -| static class | [FileSchemaTestClass.FileSchemaTestClassMapInput](#fileschematestclassmapinput)
builder for Map payloads | +| static class | [FileSchemaTestClass.FileSchemaTestClassMapBuilder](#fileschematestclassmapbuilder)
builder for Map payloads | | static class | [FileSchemaTestClass.FileSchemaTestClassMap](#fileschematestclassmap)
output class for Map payloads | | static class | [FileSchemaTestClass.Files](#files)
schema class | -| static class | [FileSchemaTestClass.FilesListInput](#fileslistinput)
builder for List payloads | +| static class | [FileSchemaTestClass.FilesListBuilder](#fileslistbuilder)
builder for List payloads | | static class | [FileSchemaTestClass.FilesList](#fileslist)
output class for List payloads | ## FileSchemaTestClass1 @@ -63,10 +63,10 @@ FileSchemaTestClass.FileSchemaTestClassMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FileSchemaTestClassMap](#fileschematestclassmap) | validate([Map](#fileschematestclassmapinput) arg, SchemaConfiguration configuration) | +| [FileSchemaTestClassMap](#fileschematestclassmap) | validate([Map](#fileschematestclassmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FileSchemaTestClassMapInput -public class FileSchemaTestClassMapInput
+## FileSchemaTestClassMapBuilder +public class FileSchemaTestClassMapBuilder
builder for `Map` A class that builds the Map input type @@ -87,7 +87,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FileSchemaTestClassMap](#fileschematestclassmap) | of([Map](#fileschematestclassmapinput) arg, SchemaConfiguration configuration) | +| static [FileSchemaTestClassMap](#fileschematestclassmap) | of([Map](#fileschematestclassmapbuilder) arg, SchemaConfiguration configuration) | | [File.FileMap](../../components/schemas/File.md#filemap) | file()
[optional] | | [FilesList](#fileslist) | files()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -116,8 +116,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation FileSchemaTestClass.FilesList validatedPayload = FileSchemaTestClass.Files.validate( - Arrays.asList( - ), + new .FilesListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -131,18 +133,25 @@ FileSchemaTestClass.FilesList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FilesList](#fileslist) | validate([List](#fileslistinput) arg, SchemaConfiguration configuration) | +| [FilesList](#fileslist) | validate([List](#fileslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FilesListInput -public class FilesListInput
-builder for `List>` +## FilesListBuilder +public class FilesListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| FilesListBuilder()
Creates an empty list | +| FilesListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FilesListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## FilesList public class FilesList
@@ -153,6 +162,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FilesList](#fileslist) | of([List>](#fileslistinput) arg, SchemaConfiguration configuration) | +| static [FilesList](#fileslist) | of([List>](#fileslistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/schemas/Foo.md b/samples/client/petstore/java/docs/components/schemas/Foo.md index e478bd4dbbe..742123baa68 100644 --- a/samples/client/petstore/java/docs/components/schemas/Foo.md +++ b/samples/client/petstore/java/docs/components/schemas/Foo.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Foo.Foo1](#foo1)
schema class | -| static class | [Foo.FooMapInput](#foomapinput)
builder for Map payloads | +| static class | [Foo.FooMapBuilder](#foomapbuilder)
builder for Map payloads | | static class | [Foo.FooMap](#foomap)
output class for Map payloads | ## Foo1 @@ -53,10 +53,10 @@ Foo.FooMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FooMap](#foomap) | validate([Map](#foomapinput) arg, SchemaConfiguration configuration) | +| [FooMap](#foomap) | validate([Map](#foomapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FooMapInput -public class FooMapInput
+## FooMapBuilder +public class FooMapBuilder
builder for `Map` A class that builds the Map input type @@ -76,7 +76,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FooMap](#foomap) | of([Map](#foomapinput) arg, SchemaConfiguration configuration) | +| static [FooMap](#foomap) | of([Map](#foomapbuilder) arg, SchemaConfiguration configuration) | | String | bar()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/FormatTest.md b/samples/client/petstore/java/docs/components/schemas/FormatTest.md index eb7085f5cdc..ecb1a5e1345 100644 --- a/samples/client/petstore/java/docs/components/schemas/FormatTest.md +++ b/samples/client/petstore/java/docs/components/schemas/FormatTest.md @@ -13,7 +13,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [FormatTest.FormatTest1](#formattest1)
schema class | -| static class | [FormatTest.FormatTestMapInput](#formattestmapinput)
builder for Map payloads | +| static class | [FormatTest.FormatTestMapBuilder](#formattestmapbuilder)
builder for Map payloads | | static class | [FormatTest.FormatTestMap](#formattestmap)
output class for Map payloads | | static class | [FormatTest.NoneProp](#noneprop)
schema class | | static class | [FormatTest.PatternWithDigitsAndDelimiter](#patternwithdigitsanddelimiter)
schema class | @@ -27,7 +27,7 @@ A class that contains necessary nested | static class | [FormatTest.ByteSchema](#byteschema)
schema class | | static class | [FormatTest.StringSchema](#stringschema)
schema class | | static class | [FormatTest.ArrayWithUniqueItems](#arraywithuniqueitems)
schema class | -| static class | [FormatTest.ArrayWithUniqueItemsListInput](#arraywithuniqueitemslistinput)
builder for List payloads | +| static class | [FormatTest.ArrayWithUniqueItemsListBuilder](#arraywithuniqueitemslistbuilder)
builder for List payloads | | static class | [FormatTest.ArrayWithUniqueItemsList](#arraywithuniqueitemslist)
output class for List payloads | | static class | [FormatTest.Items](#items)
schema class | | static class | [FormatTest.Float64](#float64)
schema class | @@ -166,10 +166,10 @@ FormatTest.FormatTestMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FormatTestMap](#formattestmap) | validate([Map](#formattestmapinput) arg, SchemaConfiguration configuration) | +| [FormatTestMap](#formattestmap) | validate([Map](#formattestmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FormatTestMapInput -public class FormatTestMapInput
+## FormatTestMapBuilder +public class FormatTestMapBuilder
builder for `Map` A class that builds the Map input type @@ -181,14 +181,14 @@ A class that builds the Map input type | **date** | String | | value must conform to RFC-3339 full-date YYYY-MM-DD | | **number** | Number | | | | **password** | String | | | -| **integer** | long | | [optional] | -| **int32** | int | | [optional] value must be a 32 bit integer | -| **int32withValidations** | int | | [optional] value must be a 32 bit integer | -| **int64** | long | | [optional] value must be a 64 bit integer | -| **float** | float | this is a reserved python keyword | [optional] value must be a 32 bit float | -| **float32** | float | | [optional] value must be a 32 bit float | -| **double** | double | | [optional] value must be a 64 bit float | -| **float64** | double | | [optional] value must be a 64 bit float | +| **integer** | Number | | [optional] | +| **int32** | Number | | [optional] value must be a 32 bit integer | +| **int32withValidations** | Number | | [optional] value must be a 32 bit integer | +| **int64** | Number | | [optional] value must be a 64 bit integer | +| **float** | Number | this is a reserved python keyword | [optional] value must be a 32 bit float | +| **float32** | Number | | [optional] value must be a 32 bit float | +| **double** | Number | | [optional] value must be a 64 bit float | +| **float64** | Number | | [optional] value must be a 64 bit float | | **arrayWithUniqueItems** | List | | [optional] | | **string** | String | | [optional] | | **binary** | String | | [optional] | @@ -209,14 +209,14 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FormatTestMap](#formattestmap) | of([Map](#formattestmapinput) arg, SchemaConfiguration configuration) | +| static [FormatTestMap](#formattestmap) | of([Map](#formattestmapbuilder) arg, SchemaConfiguration configuration) | | String | date()
value must conform to RFC-3339 full-date YYYY-MM-DD | | String | password()
| -| int | int32()
[optional] value must be a 32 bit integer | -| int | int32withValidations()
[optional] value must be a 32 bit integer | -| long | int64()
[optional] value must be a 64 bit integer | -| float | float32()
[optional] value must be a 32 bit float | -| double | float64()
[optional] value must be a 64 bit float | +| Number | int32()
[optional] value must be a 32 bit integer | +| Number | int32withValidations()
[optional] value must be a 32 bit integer | +| Number | int64()
[optional] value must be a 64 bit integer | +| Number | float32()
[optional] value must be a 32 bit float | +| Number | float64()
[optional] value must be a 64 bit float | | [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | arrayWithUniqueItems()
[optional] | | String | binary()
[optional] | | String | dateTime()
[optional] value must conform to RFC-3339 date-time | @@ -477,9 +477,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation FormatTest.ArrayWithUniqueItemsList validatedPayload = FormatTest.ArrayWithUniqueItems.validate( - Arrays.asList( - 1 - ), + new .ArrayWithUniqueItemsListBuilder( + Arrays.asList( + 1 + ) + ).build(), configuration ); ``` @@ -494,18 +496,28 @@ FormatTest.ArrayWithUniqueItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | validate([List](#arraywithuniqueitemslistinput) arg, SchemaConfiguration configuration) | +| [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | validate([List](#arraywithuniqueitemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayWithUniqueItemsListInput -public class ArrayWithUniqueItemsListInput
+## ArrayWithUniqueItemsListBuilder +public class ArrayWithUniqueItemsListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Number | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayWithUniqueItemsListBuilder()
Creates an empty list | +| ArrayWithUniqueItemsListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayWithUniqueItemsListBuilder | add(int item) | +| ArrayWithUniqueItemsListBuilder | add(float item) | +| ArrayWithUniqueItemsListBuilder | add(long item) | +| ArrayWithUniqueItemsListBuilder | add(double item) | +| List | build()
Returns list input that should be used with Schema.validate | ## ArrayWithUniqueItemsList public class ArrayWithUniqueItemsList
@@ -516,7 +528,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | of([List](#arraywithuniqueitemslistinput) arg, SchemaConfiguration configuration) | +| static [ArrayWithUniqueItemsList](#arraywithuniqueitemslist) | of([List](#arraywithuniqueitemslistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/FromSchema.md b/samples/client/petstore/java/docs/components/schemas/FromSchema.md index 588df549f5d..79ebca8a569 100644 --- a/samples/client/petstore/java/docs/components/schemas/FromSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/FromSchema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [FromSchema.FromSchema1](#fromschema1)
schema class | -| static class | [FromSchema.FromSchemaMapInput](#fromschemamapinput)
builder for Map payloads | +| static class | [FromSchema.FromSchemaMapBuilder](#fromschemamapbuilder)
builder for Map payloads | | static class | [FromSchema.FromSchemaMap](#fromschemamap)
output class for Map payloads | | static class | [FromSchema.Id](#id)
schema class | | static class | [FromSchema.Data](#data)
schema class | @@ -63,10 +63,10 @@ FromSchema.FromSchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FromSchemaMap](#fromschemamap) | validate([Map](#fromschemamapinput) arg, SchemaConfiguration configuration) | +| [FromSchemaMap](#fromschemamap) | validate([Map](#fromschemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FromSchemaMapInput -public class FromSchemaMapInput
+## FromSchemaMapBuilder +public class FromSchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -75,7 +75,7 @@ A class that builds the Map input type | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | | **data** | String | | [optional] | -| **id** | long | | [optional] | +| **id** | Number | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## FromSchemaMap @@ -87,9 +87,9 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FromSchemaMap](#fromschemamap) | of([Map](#fromschemamapinput) arg, SchemaConfiguration configuration) | +| static [FromSchemaMap](#fromschemamap) | of([Map](#fromschemamapbuilder) arg, SchemaConfiguration configuration) | | String | data()
[optional] | -| long | id()
[optional] | +| Number | id()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | ## Id diff --git a/samples/client/petstore/java/docs/components/schemas/Fruit.md b/samples/client/petstore/java/docs/components/schemas/Fruit.md index 74260bd9e90..255ba32888a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Fruit.md +++ b/samples/client/petstore/java/docs/components/schemas/Fruit.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Fruit.Fruit1](#fruit1)
schema class | -| static class | [Fruit.FruitMapInput](#fruitmapinput)
builder for Map payloads | +| static class | [Fruit.FruitMapBuilder](#fruitmapbuilder)
builder for Map payloads | | static class | [Fruit.FruitMap](#fruitmap)
output class for Map payloads | | static class | [Fruit.Color](#color)
schema class | @@ -37,11 +37,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [FruitMap](#fruitmap) | validate([Map](#fruitmapinput) arg, SchemaConfiguration configuration) | +| [FruitMap](#fruitmap) | validate([Map](#fruitmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FruitMapInput -public class FruitMapInput
+## FruitMapBuilder +public class FruitMapBuilder
builder for `Map` A class that builds the Map input type @@ -61,7 +61,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FruitMap](#fruitmap) | of([Map](#fruitmapinput) arg, SchemaConfiguration configuration) | +| static [FruitMap](#fruitmap) | of([Map](#fruitmapbuilder) arg, SchemaConfiguration configuration) | | String | color()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/GmFruit.md b/samples/client/petstore/java/docs/components/schemas/GmFruit.md index 7b557b026f0..48164b2225c 100644 --- a/samples/client/petstore/java/docs/components/schemas/GmFruit.md +++ b/samples/client/petstore/java/docs/components/schemas/GmFruit.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [GmFruit.GmFruit1](#gmfruit1)
schema class | -| static class | [GmFruit.GmFruitMapInput](#gmfruitmapinput)
builder for Map payloads | +| static class | [GmFruit.GmFruitMapBuilder](#gmfruitmapbuilder)
builder for Map payloads | | static class | [GmFruit.GmFruitMap](#gmfruitmap)
output class for Map payloads | | static class | [GmFruit.Color](#color)
schema class | @@ -37,11 +37,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [GmFruitMap](#gmfruitmap) | validate([Map](#gmfruitmapinput) arg, SchemaConfiguration configuration) | +| [GmFruitMap](#gmfruitmap) | validate([Map](#gmfruitmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## GmFruitMapInput -public class GmFruitMapInput
+## GmFruitMapBuilder +public class GmFruitMapBuilder
builder for `Map` A class that builds the Map input type @@ -61,7 +61,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [GmFruitMap](#gmfruitmap) | of([Map](#gmfruitmapinput) arg, SchemaConfiguration configuration) | +| static [GmFruitMap](#gmfruitmap) | of([Map](#gmfruitmapbuilder) arg, SchemaConfiguration configuration) | | String | color()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md index 1d34480ce8b..1e879a13adb 100644 --- a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md +++ b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [GrandparentAnimal.GrandparentAnimal1](#grandparentanimal1)
schema class | -| static class | [GrandparentAnimal.GrandparentAnimalMapInput](#grandparentanimalmapinput)
builder for Map payloads | +| static class | [GrandparentAnimal.GrandparentAnimalMapBuilder](#grandparentanimalmapbuilder)
builder for Map payloads | | static class | [GrandparentAnimal.GrandparentAnimalMap](#grandparentanimalmap)
output class for Map payloads | | static class | [GrandparentAnimal.PetType](#pettype)
schema class | @@ -59,10 +59,10 @@ GrandparentAnimal.GrandparentAnimalMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [GrandparentAnimalMap](#grandparentanimalmap) | validate([Map](#grandparentanimalmapinput) arg, SchemaConfiguration configuration) | +| [GrandparentAnimalMap](#grandparentanimalmap) | validate([Map](#grandparentanimalmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## GrandparentAnimalMapInput -public class GrandparentAnimalMapInput
+## GrandparentAnimalMapBuilder +public class GrandparentAnimalMapBuilder
builder for `Map` A class that builds the Map input type @@ -82,7 +82,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [GrandparentAnimalMap](#grandparentanimalmap) | of([Map](#grandparentanimalmapinput) arg, SchemaConfiguration configuration) | +| static [GrandparentAnimalMap](#grandparentanimalmap) | of([Map](#grandparentanimalmapbuilder) arg, SchemaConfiguration configuration) | | String | pet_type()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md index 3be14d1daef..df8ccbe62cb 100644 --- a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [HasOnlyReadOnly.HasOnlyReadOnly1](#hasonlyreadonly1)
schema class | -| static class | [HasOnlyReadOnly.HasOnlyReadOnlyMapInput](#hasonlyreadonlymapinput)
builder for Map payloads | +| static class | [HasOnlyReadOnly.HasOnlyReadOnlyMapBuilder](#hasonlyreadonlymapbuilder)
builder for Map payloads | | static class | [HasOnlyReadOnly.HasOnlyReadOnlyMap](#hasonlyreadonlymap)
output class for Map payloads | | static class | [HasOnlyReadOnly.Foo](#foo)
schema class | | static class | [HasOnlyReadOnly.Bar](#bar)
schema class | @@ -63,10 +63,10 @@ HasOnlyReadOnly.HasOnlyReadOnlyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | validate([Map](#hasonlyreadonlymapinput) arg, SchemaConfiguration configuration) | +| [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | validate([Map](#hasonlyreadonlymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## HasOnlyReadOnlyMapInput -public class HasOnlyReadOnlyMapInput
+## HasOnlyReadOnlyMapBuilder +public class HasOnlyReadOnlyMapBuilder
builder for `Map` A class that builds the Map input type @@ -87,7 +87,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | of([Map](#hasonlyreadonlymapinput) arg, SchemaConfiguration configuration) | +| static [HasOnlyReadOnlyMap](#hasonlyreadonlymap) | of([Map](#hasonlyreadonlymapbuilder) arg, SchemaConfiguration configuration) | | String | bar()
[optional] | | String | foo()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md index 26d0a6ce005..191f9edfa9e 100644 --- a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md +++ b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [HealthCheckResult.HealthCheckResult1](#healthcheckresult1)
schema class | -| static class | [HealthCheckResult.HealthCheckResultMapInput](#healthcheckresultmapinput)
builder for Map payloads | +| static class | [HealthCheckResult.HealthCheckResultMapBuilder](#healthcheckresultmapbuilder)
builder for Map payloads | | static class | [HealthCheckResult.HealthCheckResultMap](#healthcheckresultmap)
output class for Map payloads | | static class | [HealthCheckResult.NullableMessage](#nullablemessage)
schema class | @@ -61,10 +61,10 @@ HealthCheckResult.HealthCheckResultMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [HealthCheckResultMap](#healthcheckresultmap) | validate([Map](#healthcheckresultmapinput) arg, SchemaConfiguration configuration) | +| [HealthCheckResultMap](#healthcheckresultmap) | validate([Map](#healthcheckresultmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## HealthCheckResultMapInput -public class HealthCheckResultMapInput
+## HealthCheckResultMapBuilder +public class HealthCheckResultMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [HealthCheckResultMap](#healthcheckresultmap) | of([Map](#healthcheckresultmapinput) arg, SchemaConfiguration configuration) | +| static [HealthCheckResultMap](#healthcheckresultmap) | of([Map](#healthcheckresultmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable String | NullableMessage()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md index 28a1a317ea9..33c7cf2c8e9 100644 --- a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md @@ -13,7 +13,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [IsoscelesTriangle.IsoscelesTriangle1](#isoscelestriangle1)
schema class | | static class | [IsoscelesTriangle.Schema1](#schema1)
schema class | -| static class | [IsoscelesTriangle.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [IsoscelesTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [IsoscelesTriangle.Schema1Map](#schema1map)
output class for Map payloads | | static class | [IsoscelesTriangle.TriangleType](#triangletype)
schema class | | enum | [IsoscelesTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | @@ -85,10 +85,10 @@ IsoscelesTriangle.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -108,7 +108,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | triangleType()
[optional] must be one of ["IsoscelesTriangle"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Items.md b/samples/client/petstore/java/docs/components/schemas/Items.md index 0f1f755a260..a9619a6e737 100644 --- a/samples/client/petstore/java/docs/components/schemas/Items.md +++ b/samples/client/petstore/java/docs/components/schemas/Items.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Items.Items1](#items1)
schema class | -| static class | [Items.ItemsListInput](#itemslistinput)
builder for List payloads | +| static class | [Items.ItemsListBuilder](#itemslistbuilder)
builder for List payloads | | static class | [Items.ItemsList](#itemslist)
output class for List payloads | | static class | [Items.Items2](#items2)
schema class | @@ -42,8 +42,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Items.ItemsList validatedPayload = Items.Items1.validate( - Arrays.asList( - ), + new Items.ItemsListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -57,18 +59,25 @@ Items.ItemsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ItemsList](#itemslist) | validate([List](#itemslistinput) arg, SchemaConfiguration configuration) | +| [ItemsList](#itemslist) | validate([List](#itemslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ItemsListInput -public class ItemsListInput
-builder for `List>` +## ItemsListBuilder +public class ItemsListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ItemsListBuilder()
Creates an empty list | +| ItemsListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ItemsListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ItemsList public class ItemsList
@@ -79,7 +88,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ItemsList](#itemslist) | of([List>](#itemslistinput) arg, SchemaConfiguration configuration) | +| static [ItemsList](#itemslist) | of([List>](#itemslistbuilder) arg, SchemaConfiguration configuration) | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md index 5ae951a00ce..40809eef248 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [JSONPatchRequest.JSONPatchRequest1](#jsonpatchrequest1)
schema class | -| static class | [JSONPatchRequest.JSONPatchRequestListInput](#jsonpatchrequestlistinput)
builder for List payloads | +| static class | [JSONPatchRequest.JSONPatchRequestListBuilder](#jsonpatchrequestlistbuilder)
builder for List payloads | | static class | [JSONPatchRequest.JSONPatchRequestList](#jsonpatchrequestlist)
output class for List payloads | | static class | [JSONPatchRequest.Items](#items)
schema class | @@ -39,8 +39,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation JSONPatchRequest.JSONPatchRequestList validatedPayload = JSONPatchRequest.JSONPatchRequest1.validate( - Arrays.asList( - ), + new JSONPatchRequest.JSONPatchRequestListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -54,18 +56,33 @@ JSONPatchRequest.JSONPatchRequestList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestList](#jsonpatchrequestlist) | validate([List](#jsonpatchrequestlistinput) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestList](#jsonpatchrequestlist) | validate([List](#jsonpatchrequestlistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## JSONPatchRequestListInput -public class JSONPatchRequestListInput
-builder for `List` +## JSONPatchRequestListBuilder +public class JSONPatchRequestListBuilder
+builder for `List<@Nullable Object>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Object | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| JSONPatchRequestListBuilder()
Creates an empty list | +| JSONPatchRequestListBuilder(List<@Nullable Object> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| JSONPatchRequestListBuilder | add(Void item) | +| JSONPatchRequestListBuilder | add(boolean item) | +| JSONPatchRequestListBuilder | add(String item) | +| JSONPatchRequestListBuilder | add(int item) | +| JSONPatchRequestListBuilder | add(float item) | +| JSONPatchRequestListBuilder | add(long item) | +| JSONPatchRequestListBuilder | add(double item) | +| JSONPatchRequestListBuilder | add(List item) | +| JSONPatchRequestListBuilder | add(Map item) | +| List<@Nullable Object> | build()
Returns list input that should be used with Schema.validate | ## JSONPatchRequestList public class JSONPatchRequestList
@@ -76,7 +93,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [JSONPatchRequestList](#jsonpatchrequestlist) | of([List](#jsonpatchrequestlistinput) arg, SchemaConfiguration configuration) | +| static [JSONPatchRequestList](#jsonpatchrequestlist) | of([List](#jsonpatchrequestlistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md index 1deb306396e..7fddf7889a2 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTest1](#jsonpatchrequestaddreplacetest1)
schema class | -| static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMapInput](#jsonpatchrequestaddreplacetestmapinput)
builder for Map payloads | +| static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMapBuilder](#jsonpatchrequestaddreplacetestmapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap)
output class for Map payloads | | static class | [JSONPatchRequestAddReplaceTest.Op](#op)
schema class | | enum | [JSONPatchRequestAddReplaceTest.StringOpEnums](#stringopenums)
String enum | @@ -69,10 +69,10 @@ JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMap validatedPayloa ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | validate([Map](#jsonpatchrequestaddreplacetestmapinput) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | validate([Map](#jsonpatchrequestaddreplacetestmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## JSONPatchRequestAddReplaceTestMapInput -public class JSONPatchRequestAddReplaceTestMapInput
+## JSONPatchRequestAddReplaceTestMapBuilder +public class JSONPatchRequestAddReplaceTestMapBuilder
builder for `Map` A class that builds the Map input type @@ -93,7 +93,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | of([Map](#jsonpatchrequestaddreplacetestmapinput) arg, SchemaConfiguration configuration) | +| static [JSONPatchRequestAddReplaceTestMap](#jsonpatchrequestaddreplacetestmap) | of([Map](#jsonpatchrequestaddreplacetestmapbuilder) arg, SchemaConfiguration configuration) | | String | op()
must be one of ["add", "replace", "test"] | | String | path()
| | @Nullable Object | value()
| diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md index 308b63eb008..b484d91e299 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopy1](#jsonpatchrequestmovecopy1)
schema class | -| static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMapInput](#jsonpatchrequestmovecopymapinput)
builder for Map payloads | +| static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMapBuilder](#jsonpatchrequestmovecopymapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap)
output class for Map payloads | | static class | [JSONPatchRequestMoveCopy.Op](#op)
schema class | | enum | [JSONPatchRequestMoveCopy.StringOpEnums](#stringopenums)
String enum | @@ -73,10 +73,10 @@ JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | validate([Map](#jsonpatchrequestmovecopymapinput) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | validate([Map](#jsonpatchrequestmovecopymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## JSONPatchRequestMoveCopyMapInput -public class JSONPatchRequestMoveCopyMapInput
+## JSONPatchRequestMoveCopyMapBuilder +public class JSONPatchRequestMoveCopyMapBuilder
builder for `Map` A class that builds the Map input type @@ -97,7 +97,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | of([Map](#jsonpatchrequestmovecopymapinput) arg, SchemaConfiguration configuration) | +| static [JSONPatchRequestMoveCopyMap](#jsonpatchrequestmovecopymap) | of([Map](#jsonpatchrequestmovecopymapbuilder) arg, SchemaConfiguration configuration) | | String | from()
| | String | op()
must be one of ["move", "copy"] | | String | path()
| diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md index 11b7421ae2a..152a29259e1 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemove1](#jsonpatchrequestremove1)
schema class | -| static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMapInput](#jsonpatchrequestremovemapinput)
builder for Map payloads | +| static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMapBuilder](#jsonpatchrequestremovemapbuilder)
builder for Map payloads | | static class | [JSONPatchRequestRemove.JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap)
output class for Map payloads | | static class | [JSONPatchRequestRemove.Op](#op)
schema class | | enum | [JSONPatchRequestRemove.StringOpEnums](#stringopenums)
String enum | @@ -68,10 +68,10 @@ JSONPatchRequestRemove.JSONPatchRequestRemoveMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | validate([Map](#jsonpatchrequestremovemapinput) arg, SchemaConfiguration configuration) | +| [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | validate([Map](#jsonpatchrequestremovemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## JSONPatchRequestRemoveMapInput -public class JSONPatchRequestRemoveMapInput
+## JSONPatchRequestRemoveMapBuilder +public class JSONPatchRequestRemoveMapBuilder
builder for `Map` A class that builds the Map input type @@ -91,7 +91,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | of([Map](#jsonpatchrequestremovemapinput) arg, SchemaConfiguration configuration) | +| static [JSONPatchRequestRemoveMap](#jsonpatchrequestremovemap) | of([Map](#jsonpatchrequestremovemapbuilder) arg, SchemaConfiguration configuration) | | String | op()
must be one of ["remove"] | | String | path()
| diff --git a/samples/client/petstore/java/docs/components/schemas/MapTest.md b/samples/client/petstore/java/docs/components/schemas/MapTest.md index 3f9482c087a..0e69bbe4128 100644 --- a/samples/client/petstore/java/docs/components/schemas/MapTest.md +++ b/samples/client/petstore/java/docs/components/schemas/MapTest.md @@ -12,22 +12,22 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [MapTest.MapTest1](#maptest1)
schema class | -| static class | [MapTest.MapTestMapInput](#maptestmapinput)
builder for Map payloads | +| static class | [MapTest.MapTestMapBuilder](#maptestmapbuilder)
builder for Map payloads | | static class | [MapTest.MapTestMap](#maptestmap)
output class for Map payloads | | static class | [MapTest.DirectMap](#directmap)
schema class | -| static class | [MapTest.DirectMapMapInput](#directmapmapinput)
builder for Map payloads | +| static class | [MapTest.DirectMapMapBuilder](#directmapmapbuilder)
builder for Map payloads | | static class | [MapTest.DirectMapMap](#directmapmap)
output class for Map payloads | | static class | [MapTest.AdditionalProperties3](#additionalproperties3)
schema class | | static class | [MapTest.MapOfEnumString](#mapofenumstring)
schema class | -| static class | [MapTest.MapOfEnumStringMapInput](#mapofenumstringmapinput)
builder for Map payloads | +| static class | [MapTest.MapOfEnumStringMapBuilder](#mapofenumstringmapbuilder)
builder for Map payloads | | static class | [MapTest.MapOfEnumStringMap](#mapofenumstringmap)
output class for Map payloads | | static class | [MapTest.AdditionalProperties2](#additionalproperties2)
schema class | | enum | [MapTest.StringAdditionalPropertiesEnums](#stringadditionalpropertiesenums)
String enum | | static class | [MapTest.MapMapOfString](#mapmapofstring)
schema class | -| static class | [MapTest.MapMapOfStringMapInput](#mapmapofstringmapinput)
builder for Map payloads | +| static class | [MapTest.MapMapOfStringMapBuilder](#mapmapofstringmapbuilder)
builder for Map payloads | | static class | [MapTest.MapMapOfStringMap](#mapmapofstringmap)
output class for Map payloads | | static class | [MapTest.AdditionalProperties](#additionalproperties)
schema class | -| static class | [MapTest.AdditionalPropertiesMapInput](#additionalpropertiesmapinput)
builder for Map payloads | +| static class | [MapTest.AdditionalPropertiesMapBuilder](#additionalpropertiesmapbuilder)
builder for Map payloads | | static class | [MapTest.AdditionalPropertiesMap](#additionalpropertiesmap)
output class for Map payloads | | static class | [MapTest.AdditionalProperties1](#additionalproperties1)
schema class | @@ -85,10 +85,10 @@ MapTest.MapTestMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapTestMap](#maptestmap) | validate([Map](#maptestmapinput) arg, SchemaConfiguration configuration) | +| [MapTestMap](#maptestmap) | validate([Map](#maptestmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapTestMapInput -public class MapTestMapInput
+## MapTestMapBuilder +public class MapTestMapBuilder
builder for `Map` A class that builds the Map input type @@ -111,7 +111,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapTestMap](#maptestmap) | of([Map](#maptestmapinput) arg, SchemaConfiguration configuration) | +| static [MapTestMap](#maptestmap) | of([Map](#maptestmapbuilder) arg, SchemaConfiguration configuration) | | [MapMapOfStringMap](#mapmapofstringmap) | map_map_of_string()
[optional] | | [MapOfEnumStringMap](#mapofenumstringmap) | map_of_enum_string()
[optional] | | [DirectMapMap](#directmapmap) | direct_map()
[optional] | @@ -157,10 +157,10 @@ MapTest.DirectMapMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [DirectMapMap](#directmapmap) | validate([Map](#directmapmapinput) arg, SchemaConfiguration configuration) | +| [DirectMapMap](#directmapmap) | validate([Map](#directmapmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## DirectMapMapInput -public class DirectMapMapInput
+## DirectMapMapBuilder +public class DirectMapMapBuilder
builder for `Map` A class that builds the Map input type @@ -179,7 +179,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [DirectMapMap](#directmapmap) | of([Map](#directmapmapinput) arg, SchemaConfiguration configuration) | +| static [DirectMapMap](#directmapmap) | of([Map](#directmapmapbuilder) arg, SchemaConfiguration configuration) | | boolean | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties3 @@ -231,10 +231,10 @@ MapTest.MapOfEnumStringMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapOfEnumStringMap](#mapofenumstringmap) | validate([Map](#mapofenumstringmapinput) arg, SchemaConfiguration configuration) | +| [MapOfEnumStringMap](#mapofenumstringmap) | validate([Map](#mapofenumstringmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapOfEnumStringMapInput -public class MapOfEnumStringMapInput
+## MapOfEnumStringMapBuilder +public class MapOfEnumStringMapBuilder
builder for `Map` A class that builds the Map input type @@ -253,7 +253,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapOfEnumStringMap](#mapofenumstringmap) | of([Map](#mapofenumstringmapinput) arg, SchemaConfiguration configuration) | +| static [MapOfEnumStringMap](#mapofenumstringmap) | of([Map](#mapofenumstringmapbuilder) arg, SchemaConfiguration configuration) | | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2 @@ -347,10 +347,10 @@ MapTest.MapMapOfStringMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapMapOfStringMap](#mapmapofstringmap) | validate([Map](#mapmapofstringmapinput) arg, SchemaConfiguration configuration) | +| [MapMapOfStringMap](#mapmapofstringmap) | validate([Map](#mapmapofstringmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapMapOfStringMapInput -public class MapMapOfStringMapInput
+## MapMapOfStringMapBuilder +public class MapMapOfStringMapBuilder
builder for `Map>` A class that builds the Map input type @@ -369,7 +369,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapMapOfStringMap](#mapmapofstringmap) | of([Map>](#mapmapofstringmapinput) arg, SchemaConfiguration configuration) | +| static [MapMapOfStringMap](#mapmapofstringmap) | of([Map>](#mapmapofstringmapbuilder) arg, SchemaConfiguration configuration) | | [AdditionalPropertiesMap](#additionalpropertiesmap) | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties @@ -411,10 +411,10 @@ MapTest.AdditionalPropertiesMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [AdditionalPropertiesMap](#additionalpropertiesmap) | validate([Map](#additionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [AdditionalPropertiesMap](#additionalpropertiesmap) | validate([Map](#additionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## AdditionalPropertiesMapInput -public class AdditionalPropertiesMapInput
+## AdditionalPropertiesMapBuilder +public class AdditionalPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -433,7 +433,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [AdditionalPropertiesMap](#additionalpropertiesmap) | of([Map](#additionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [AdditionalPropertiesMap](#additionalpropertiesmap) | of([Map](#additionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1 diff --git a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md index d97d361fa1a..732c271f9e8 100644 --- a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md @@ -11,10 +11,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClass1](#mixedpropertiesandadditionalpropertiesclass1)
schema class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMapInput](#mixedpropertiesandadditionalpropertiesclassmapinput)
builder for Map payloads | +| static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMapBuilder](#mixedpropertiesandadditionalpropertiesclassmapbuilder)
builder for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap)
output class for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapSchema](#mapschema)
schema class | -| static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMapInput](#mapmapinput)
builder for Map payloads | +| static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMapBuilder](#mapmapbuilder)
builder for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.MapMap](#mapmap)
output class for Map payloads | | static class | [MixedPropertiesAndAdditionalPropertiesClass.DateTime](#datetime)
schema class | | static class | [MixedPropertiesAndAdditionalPropertiesClass.UuidSchema](#uuidschema)
schema class | @@ -71,10 +71,10 @@ MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalProperti ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | validate([Map](#mixedpropertiesandadditionalpropertiesclassmapinput) arg, SchemaConfiguration configuration) | +| [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | validate([Map](#mixedpropertiesandadditionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MixedPropertiesAndAdditionalPropertiesClassMapInput -public class MixedPropertiesAndAdditionalPropertiesClassMapInput
+## MixedPropertiesAndAdditionalPropertiesClassMapBuilder +public class MixedPropertiesAndAdditionalPropertiesClassMapBuilder
builder for `Map` A class that builds the Map input type @@ -96,7 +96,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | of([Map](#mixedpropertiesandadditionalpropertiesclassmapinput) arg, SchemaConfiguration configuration) | +| static [MixedPropertiesAndAdditionalPropertiesClassMap](#mixedpropertiesandadditionalpropertiesclassmap) | of([Map](#mixedpropertiesandadditionalpropertiesclassmapbuilder) arg, SchemaConfiguration configuration) | | String | dateTime()
[optional] value must conform to RFC-3339 date-time | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["uuid"], instance["map"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -140,10 +140,10 @@ MixedPropertiesAndAdditionalPropertiesClass.MapMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MapMap](#mapmap) | validate([Map](#mapmapinput) arg, SchemaConfiguration configuration) | +| [MapMap](#mapmap) | validate([Map](#mapmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MapMapInput -public class MapMapInput
+## MapMapBuilder +public class MapMapBuilder
builder for `Map>` A class that builds the Map input type @@ -162,7 +162,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MapMap](#mapmap) | of([Map>](#mapmapinput) arg, SchemaConfiguration configuration) | +| static [MapMap](#mapmap) | of([Map>](#mapmapbuilder) arg, SchemaConfiguration configuration) | | [Animal.AnimalMap](../../components/schemas/Animal.md#animalmap) | getAdditionalProperty(String name)
provides type safety for additional properties | ## DateTime diff --git a/samples/client/petstore/java/docs/components/schemas/Money.md b/samples/client/petstore/java/docs/components/schemas/Money.md index 08d1cdb5355..ecda2912950 100644 --- a/samples/client/petstore/java/docs/components/schemas/Money.md +++ b/samples/client/petstore/java/docs/components/schemas/Money.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Money.Money1](#money1)
schema class | -| static class | [Money.MoneyMapInput](#moneymapinput)
builder for Map payloads | +| static class | [Money.MoneyMapBuilder](#moneymapbuilder)
builder for Map payloads | | static class | [Money.MoneyMap](#moneymap)
output class for Map payloads | | static class | [Money.Amount](#amount)
schema class | | static class | [Money.AdditionalProperties](#additionalproperties)
schema class | @@ -65,10 +65,10 @@ Money.MoneyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MoneyMap](#moneymap) | validate([Map](#moneymapinput) arg, SchemaConfiguration configuration) | +| [MoneyMap](#moneymap) | validate([Map](#moneymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MoneyMapInput -public class MoneyMapInput
+## MoneyMapBuilder +public class MoneyMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MoneyMap](#moneymap) | of([Map](#moneymapinput) arg, SchemaConfiguration configuration) | +| static [MoneyMap](#moneymap) | of([Map](#moneymapbuilder) arg, SchemaConfiguration configuration) | | String | amount()
value must be int or float numeric | | String | currency()
| diff --git a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md index 8153a3c46bc..2b474011c95 100644 --- a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [MyObjectDto.MyObjectDto1](#myobjectdto1)
schema class | -| static class | [MyObjectDto.MyObjectDtoMapInput](#myobjectdtomapinput)
builder for Map payloads | +| static class | [MyObjectDto.MyObjectDtoMapBuilder](#myobjectdtomapbuilder)
builder for Map payloads | | static class | [MyObjectDto.MyObjectDtoMap](#myobjectdtomap)
output class for Map payloads | | static class | [MyObjectDto.Id](#id)
schema class | | static class | [MyObjectDto.AdditionalProperties](#additionalproperties)
schema class | @@ -60,10 +60,10 @@ MyObjectDto.MyObjectDtoMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MyObjectDtoMap](#myobjectdtomap) | validate([Map](#myobjectdtomapinput) arg, SchemaConfiguration configuration) | +| [MyObjectDtoMap](#myobjectdtomap) | validate([Map](#myobjectdtomapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## MyObjectDtoMapInput -public class MyObjectDtoMapInput
+## MyObjectDtoMapBuilder +public class MyObjectDtoMapBuilder
builder for `Map` A class that builds the Map input type @@ -82,7 +82,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [MyObjectDtoMap](#myobjectdtomap) | of([Map](#myobjectdtomapinput) arg, SchemaConfiguration configuration) | +| static [MyObjectDtoMap](#myobjectdtomap) | of([Map](#myobjectdtomapbuilder) arg, SchemaConfiguration configuration) | | String | id()
[optional] value must be a uuid | ## Id diff --git a/samples/client/petstore/java/docs/components/schemas/Name.md b/samples/client/petstore/java/docs/components/schemas/Name.md index 6a53e70ed57..4947993088d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Name.md +++ b/samples/client/petstore/java/docs/components/schemas/Name.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Name.Name1](#name1)
schema class | -| static class | [Name.NameMapInput](#namemapinput)
builder for Map payloads | +| static class | [Name.NameMapBuilder](#namemapbuilder)
builder for Map payloads | | static class | [Name.NameMap](#namemap)
output class for Map payloads | | static class | [Name.Property](#property)
schema class | | static class | [Name.SnakeCase](#snakecase)
schema class | @@ -42,11 +42,11 @@ Model for testing model name same as property name | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [NameMap](#namemap) | validate([Map](#namemapinput) arg, SchemaConfiguration configuration) | +| [NameMap](#namemap) | validate([Map](#namemapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## NameMapInput -public class NameMapInput
+## NameMapBuilder +public class NameMapBuilder
builder for `Map` A class that builds the Map input type @@ -54,8 +54,8 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **name** | int | | value must be a 32 bit integer | -| **snake_case** | int | | [optional] value must be a 32 bit integer | +| **name** | Number | | value must be a 32 bit integer | +| **snake_case** | Number | | [optional] value must be a 32 bit integer | | **property** | String | this is a reserved python keyword | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -68,9 +68,9 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [NameMap](#namemap) | of([Map](#namemapinput) arg, SchemaConfiguration configuration) | -| int | name()
value must be a 32 bit integer | -| int | snake_case()
[optional] value must be a 32 bit integer | +| static [NameMap](#namemap) | of([Map](#namemapbuilder) arg, SchemaConfiguration configuration) | +| Number | name()
value must be a 32 bit integer | +| Number | snake_case()
[optional] value must be a 32 bit integer | | String | property()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md index 4a8d6a0f34d..fbc21cc5dcf 100644 --- a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [NoAdditionalProperties.NoAdditionalProperties1](#noadditionalproperties1)
schema class | -| static class | [NoAdditionalProperties.NoAdditionalPropertiesMapInput](#noadditionalpropertiesmapinput)
builder for Map payloads | +| static class | [NoAdditionalProperties.NoAdditionalPropertiesMapBuilder](#noadditionalpropertiesmapbuilder)
builder for Map payloads | | static class | [NoAdditionalProperties.NoAdditionalPropertiesMap](#noadditionalpropertiesmap)
output class for Map payloads | | static class | [NoAdditionalProperties.PetId](#petid)
schema class | | static class | [NoAdditionalProperties.Id](#id)
schema class | @@ -42,11 +42,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch NoAdditionalProperties.NoAdditionalPropertiesMap validatedPayload = NoAdditionalProperties.NoAdditionalProperties1.validate( MapMaker.makeMap( - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "id", 1L ), - new AbstractMap.SimpleEntry( + new AbstractMap.SimpleEntry( "petId", 1L ) @@ -66,32 +66,32 @@ NoAdditionalProperties.NoAdditionalPropertiesMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | validate([Map](#noadditionalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | validate([Map](#noadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## NoAdditionalPropertiesMapInput -public class NoAdditionalPropertiesMapInput
-builder for `Map` +## NoAdditionalPropertiesMapBuilder +public class NoAdditionalPropertiesMapBuilder
+builder for `Map` A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **id** | long | | value must be a 64 bit integer | -| **petId** | long | | [optional] value must be a 64 bit integer | +| **id** | Number | | value must be a 64 bit integer | +| **petId** | Number | | [optional] value must be a 64 bit integer | ## NoAdditionalPropertiesMap public static class NoAdditionalPropertiesMap
-extends FrozenMap +extends FrozenMap A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | of([Map](#noadditionalpropertiesmapinput) arg, SchemaConfiguration configuration) | -| long | id()
value must be a 64 bit integer | -| long | petId()
[optional] value must be a 64 bit integer | +| static [NoAdditionalPropertiesMap](#noadditionalpropertiesmap) | of([Map](#noadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | +| Number | id()
value must be a 64 bit integer | +| Number | petId()
[optional] value must be a 64 bit integer | ## PetId public static class PetId
diff --git a/samples/client/petstore/java/docs/components/schemas/NullableClass.md b/samples/client/petstore/java/docs/components/schemas/NullableClass.md index ea8154d4cfa..f3ea93ef3fd 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableClass.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableClass.md @@ -13,30 +13,30 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [NullableClass.NullableClass1](#nullableclass1)
schema class | -| static class | [NullableClass.NullableClassMapInput](#nullableclassmapinput)
builder for Map payloads | +| static class | [NullableClass.NullableClassMapBuilder](#nullableclassmapbuilder)
builder for Map payloads | | static class | [NullableClass.NullableClassMap](#nullableclassmap)
output class for Map payloads | | static class | [NullableClass.ObjectItemsNullable](#objectitemsnullable)
schema class | -| static class | [NullableClass.ObjectItemsNullableMapInput](#objectitemsnullablemapinput)
builder for Map payloads | +| static class | [NullableClass.ObjectItemsNullableMapBuilder](#objectitemsnullablemapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectItemsNullableMap](#objectitemsnullablemap)
output class for Map payloads | | static class | [NullableClass.AdditionalProperties2](#additionalproperties2)
schema class | | static class | [NullableClass.ObjectAndItemsNullableProp](#objectanditemsnullableprop)
schema class | -| static class | [NullableClass.ObjectAndItemsNullablePropMapInput](#objectanditemsnullablepropmapinput)
builder for Map payloads | +| static class | [NullableClass.ObjectAndItemsNullablePropMapBuilder](#objectanditemsnullablepropmapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap)
output class for Map payloads | | static class | [NullableClass.AdditionalProperties1](#additionalproperties1)
schema class | | static class | [NullableClass.ObjectNullableProp](#objectnullableprop)
schema class | -| static class | [NullableClass.ObjectNullablePropMapInput](#objectnullablepropmapinput)
builder for Map payloads | +| static class | [NullableClass.ObjectNullablePropMapBuilder](#objectnullablepropmapbuilder)
builder for Map payloads | | static class | [NullableClass.ObjectNullablePropMap](#objectnullablepropmap)
output class for Map payloads | | static class | [NullableClass.AdditionalProperties](#additionalproperties)
schema class | | static class | [NullableClass.ArrayItemsNullable](#arrayitemsnullable)
schema class | -| static class | [NullableClass.ArrayItemsNullableListInput](#arrayitemsnullablelistinput)
builder for List payloads | +| static class | [NullableClass.ArrayItemsNullableListBuilder](#arrayitemsnullablelistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayItemsNullableList](#arrayitemsnullablelist)
output class for List payloads | | static class | [NullableClass.Items2](#items2)
schema class | | static class | [NullableClass.ArrayAndItemsNullableProp](#arrayanditemsnullableprop)
schema class | -| static class | [NullableClass.ArrayAndItemsNullablePropListInput](#arrayanditemsnullableproplistinput)
builder for List payloads | +| static class | [NullableClass.ArrayAndItemsNullablePropListBuilder](#arrayanditemsnullableproplistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist)
output class for List payloads | | static class | [NullableClass.Items1](#items1)
schema class | | static class | [NullableClass.ArrayNullableProp](#arraynullableprop)
schema class | -| static class | [NullableClass.ArrayNullablePropListInput](#arraynullableproplistinput)
builder for List payloads | +| static class | [NullableClass.ArrayNullablePropListBuilder](#arraynullableproplistbuilder)
builder for List payloads | | static class | [NullableClass.ArrayNullablePropList](#arraynullableproplist)
output class for List payloads | | static class | [NullableClass.Items](#items)
schema class | | static class | [NullableClass.DatetimeProp](#datetimeprop)
schema class | @@ -138,10 +138,10 @@ NullableClass.NullableClassMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NullableClassMap](#nullableclassmap) | validate([Map](#nullableclassmapinput) arg, SchemaConfiguration configuration) | +| [NullableClassMap](#nullableclassmap) | validate([Map](#nullableclassmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## NullableClassMapInput -public class NullableClassMapInput
+## NullableClassMapBuilder +public class NullableClassMapBuilder
builder for `Map` A class that builds the Map input type @@ -149,7 +149,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **integer_prop** | ? extends @Nullable Long | | [optional] | +| **integer_prop** | ? extends @Nullable Number | | [optional] | | **number_prop** | ? extends @Nullable Number | | [optional] | | **boolean_prop** | ? extends @Nullable Boolean | | [optional] | | **string_prop** | ? extends @Nullable String | | [optional] | @@ -172,8 +172,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [NullableClassMap](#nullableclassmap) | of([Map](#nullableclassmapinput) arg, SchemaConfiguration configuration) | -| @Nullable Long | integer_prop()
[optional] | +| static [NullableClassMap](#nullableclassmap) | of([Map](#nullableclassmapbuilder) arg, SchemaConfiguration configuration) | +| @Nullable Number | integer_prop()
[optional] | | @Nullable Number | number_prop()
[optional] | | @Nullable Boolean | boolean_prop()
[optional] | | @Nullable String | string_prop()
[optional] | @@ -226,10 +226,10 @@ NullableClass.ObjectItemsNullableMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectItemsNullableMap](#objectitemsnullablemap) | validate([Map](#objectitemsnullablemapinput) arg, SchemaConfiguration configuration) | +| [ObjectItemsNullableMap](#objectitemsnullablemap) | validate([Map](#objectitemsnullablemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectItemsNullableMapInput -public class ObjectItemsNullableMapInput
+## ObjectItemsNullableMapBuilder +public class ObjectItemsNullableMapBuilder
builder for `Map>` A class that builds the Map input type @@ -248,7 +248,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectItemsNullableMap](#objectitemsnullablemap) | of([Map>](#objectitemsnullablemapinput) arg, SchemaConfiguration configuration) | +| static [ObjectItemsNullableMap](#objectitemsnullablemap) | of([Map>](#objectitemsnullablemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties2 @@ -336,10 +336,10 @@ NullableClass.ObjectAndItemsNullablePropMap validatedPayload = | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | validate(Void arg, SchemaConfiguration configuration) | -| [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | validate([Map](#objectanditemsnullablepropmapinput) arg, SchemaConfiguration configuration) | +| [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | validate([Map](#objectanditemsnullablepropmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectAndItemsNullablePropMapInput -public class ObjectAndItemsNullablePropMapInput
+## ObjectAndItemsNullablePropMapBuilder +public class ObjectAndItemsNullablePropMapBuilder
builder for `Map>` A class that builds the Map input type @@ -358,7 +358,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | of([Map>](#objectanditemsnullablepropmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectAndItemsNullablePropMap](#objectanditemsnullablepropmap) | of([Map>](#objectanditemsnullablepropmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties1 @@ -446,10 +446,10 @@ NullableClass.ObjectNullablePropMap validatedPayload = | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | validate(Void arg, SchemaConfiguration configuration) | -| [ObjectNullablePropMap](#objectnullablepropmap) | validate([Map](#objectnullablepropmapinput) arg, SchemaConfiguration configuration) | +| [ObjectNullablePropMap](#objectnullablepropmap) | validate([Map](#objectnullablepropmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectNullablePropMapInput -public class ObjectNullablePropMapInput
+## ObjectNullablePropMapBuilder +public class ObjectNullablePropMapBuilder
builder for `Map>` A class that builds the Map input type @@ -468,7 +468,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectNullablePropMap](#objectnullablepropmap) | of([Map>](#objectnullablepropmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectNullablePropMap](#objectnullablepropmap) | of([Map>](#objectnullablepropmapbuilder) arg, SchemaConfiguration configuration) | | FrozenMap | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties @@ -505,9 +505,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation NullableClass.ArrayItemsNullableList validatedPayload = NullableClass.ArrayItemsNullable.validate( - Arrays.asList( - null - ), + new .ArrayItemsNullableListBuilder( + Arrays.asList( + null + ) + ).build(), configuration ); ``` @@ -521,18 +523,26 @@ NullableClass.ArrayItemsNullableList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ArrayItemsNullableList](#arrayitemsnullablelist) | validate([List](#arrayitemsnullablelistinput) arg, SchemaConfiguration configuration) | +| [ArrayItemsNullableList](#arrayitemsnullablelist) | validate([List](#arrayitemsnullablelistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayItemsNullableListInput -public class ArrayItemsNullableListInput
-builder for `List>` +## ArrayItemsNullableListBuilder +public class ArrayItemsNullableListBuilder
+builder for `List<@Nullable Map>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayItemsNullableListBuilder()
Creates an empty list | +| ArrayItemsNullableListBuilder(List<@Nullable Map> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayItemsNullableListBuilder | add(Void item) | +| ArrayItemsNullableListBuilder | add(Map item) | +| List<@Nullable Map> | build()
Returns list input that should be used with Schema.validate | ## ArrayItemsNullableList public class ArrayItemsNullableList
@@ -543,7 +553,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayItemsNullableList](#arrayitemsnullablelist) | of([List>](#arrayitemsnullablelistinput) arg, SchemaConfiguration configuration) | +| static [ArrayItemsNullableList](#arrayitemsnullablelist) | of([List>](#arrayitemsnullablelistbuilder) arg, SchemaConfiguration configuration) | ## Items2 public static class Items2
@@ -614,9 +624,11 @@ Void validatedPayload = NullableClass.ArrayAndItemsNullableProp.validate( // List validation NullableClass.ArrayAndItemsNullablePropList validatedPayload = NullableClass.ArrayAndItemsNullableProp.validate( - Arrays.asList( - null - ), + new .ArrayAndItemsNullablePropListBuilder( + Arrays.asList( + null + ) + ).build(), configuration ); ``` @@ -631,18 +643,26 @@ NullableClass.ArrayAndItemsNullablePropList validatedPayload = | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | validate(Void arg, SchemaConfiguration configuration) | -| [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | validate([List](#arrayanditemsnullableproplistinput) arg, SchemaConfiguration configuration) | +| [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | validate([List](#arrayanditemsnullableproplistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayAndItemsNullablePropListInput -public class ArrayAndItemsNullablePropListInput
-builder for `List>` +## ArrayAndItemsNullablePropListBuilder +public class ArrayAndItemsNullablePropListBuilder
+builder for `List<@Nullable Map>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -? extends @Nullable Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayAndItemsNullablePropListBuilder()
Creates an empty list | +| ArrayAndItemsNullablePropListBuilder(List<@Nullable Map> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayAndItemsNullablePropListBuilder | add(Void item) | +| ArrayAndItemsNullablePropListBuilder | add(Map item) | +| List<@Nullable Map> | build()
Returns list input that should be used with Schema.validate | ## ArrayAndItemsNullablePropList public class ArrayAndItemsNullablePropList
@@ -653,7 +673,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | of([List>](#arrayanditemsnullableproplistinput) arg, SchemaConfiguration configuration) | +| static [ArrayAndItemsNullablePropList](#arrayanditemsnullableproplist) | of([List>](#arrayanditemsnullableproplistbuilder) arg, SchemaConfiguration configuration) | ## Items1 public static class Items1
@@ -724,8 +744,10 @@ Void validatedPayload = NullableClass.ArrayNullableProp.validate( // List validation NullableClass.ArrayNullablePropList validatedPayload = NullableClass.ArrayNullableProp.validate( - Arrays.asList( - ), + new .ArrayNullablePropListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -740,18 +762,25 @@ NullableClass.ArrayNullablePropList validatedPayload = | Modifier and Type | Method and Description | | ----------------- | ---------------------- | | Void | validate(Void arg, SchemaConfiguration configuration) | -| [ArrayNullablePropList](#arraynullableproplist) | validate([List](#arraynullableproplistinput) arg, SchemaConfiguration configuration) | +| [ArrayNullablePropList](#arraynullableproplist) | validate([List](#arraynullableproplistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ArrayNullablePropListInput -public class ArrayNullablePropListInput
-builder for `List>` +## ArrayNullablePropListBuilder +public class ArrayNullablePropListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ArrayNullablePropListBuilder()
Creates an empty list | +| ArrayNullablePropListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ArrayNullablePropListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ArrayNullablePropList public class ArrayNullablePropList
@@ -762,7 +791,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ArrayNullablePropList](#arraynullableproplist) | of([List>](#arraynullableproplistinput) arg, SchemaConfiguration configuration) | +| static [ArrayNullablePropList](#arraynullableproplist) | of([List>](#arraynullableproplistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md index 7efcfa361a3..04867653ef3 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [NumberOnly.NumberOnly1](#numberonly1)
schema class | -| static class | [NumberOnly.NumberOnlyMapInput](#numberonlymapinput)
builder for Map payloads | +| static class | [NumberOnly.NumberOnlyMapBuilder](#numberonlymapbuilder)
builder for Map payloads | | static class | [NumberOnly.NumberOnlyMap](#numberonlymap)
output class for Map payloads | | static class | [NumberOnly.JustNumber](#justnumber)
schema class | @@ -58,10 +58,10 @@ NumberOnly.NumberOnlyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [NumberOnlyMap](#numberonlymap) | validate([Map](#numberonlymapinput) arg, SchemaConfiguration configuration) | +| [NumberOnlyMap](#numberonlymap) | validate([Map](#numberonlymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## NumberOnlyMapInput -public class NumberOnlyMapInput
+## NumberOnlyMapBuilder +public class NumberOnlyMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [NumberOnlyMap](#numberonlymap) | of([Map](#numberonlymapinput) arg, SchemaConfiguration configuration) | +| static [NumberOnlyMap](#numberonlymap) | of([Map](#numberonlymapbuilder) arg, SchemaConfiguration configuration) | | Number | JustNumber()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md index 50a6d0bec73..186fef29472 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjWithRequiredProps.ObjWithRequiredProps1](#objwithrequiredprops1)
schema class | -| static class | [ObjWithRequiredProps.ObjWithRequiredPropsMapInput](#objwithrequiredpropsmapinput)
builder for Map payloads | +| static class | [ObjWithRequiredProps.ObjWithRequiredPropsMapBuilder](#objwithrequiredpropsmapbuilder)
builder for Map payloads | | static class | [ObjWithRequiredProps.ObjWithRequiredPropsMap](#objwithrequiredpropsmap)
output class for Map payloads | | static class | [ObjWithRequiredProps.A](#a)
schema class | @@ -60,10 +60,10 @@ ObjWithRequiredProps.ObjWithRequiredPropsMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | validate([Map](#objwithrequiredpropsmapinput) arg, SchemaConfiguration configuration) | +| [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | validate([Map](#objwithrequiredpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjWithRequiredPropsMapInput -public class ObjWithRequiredPropsMapInput
+## ObjWithRequiredPropsMapBuilder +public class ObjWithRequiredPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -83,7 +83,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | of([Map](#objwithrequiredpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ObjWithRequiredPropsMap](#objwithrequiredpropsmap) | of([Map](#objwithrequiredpropsmapbuilder) arg, SchemaConfiguration configuration) | | String | a()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md index de7d2e5287e..624473b0668 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBase1](#objwithrequiredpropsbase1)
schema class | -| static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMapInput](#objwithrequiredpropsbasemapinput)
builder for Map payloads | +| static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMapBuilder](#objwithrequiredpropsbasemapbuilder)
builder for Map payloads | | static class | [ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap)
output class for Map payloads | | static class | [ObjWithRequiredPropsBase.B](#b)
schema class | @@ -59,10 +59,10 @@ ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | validate([Map](#objwithrequiredpropsbasemapinput) arg, SchemaConfiguration configuration) | +| [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | validate([Map](#objwithrequiredpropsbasemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjWithRequiredPropsBaseMapInput -public class ObjWithRequiredPropsBaseMapInput
+## ObjWithRequiredPropsBaseMapBuilder +public class ObjWithRequiredPropsBaseMapBuilder
builder for `Map` A class that builds the Map input type @@ -82,7 +82,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | of([Map](#objwithrequiredpropsbasemapinput) arg, SchemaConfiguration configuration) | +| static [ObjWithRequiredPropsBaseMap](#objwithrequiredpropsbasemap) | of([Map](#objwithrequiredpropsbasemapbuilder) arg, SchemaConfiguration configuration) | | String | b()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md index f36f812860d..349e4494ffb 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsProperties1](#objectmodelwithargandargsproperties1)
schema class | -| static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMapInput](#objectmodelwithargandargspropertiesmapinput)
builder for Map payloads | +| static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMapBuilder](#objectmodelwithargandargspropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap)
output class for Map payloads | | static class | [ObjectModelWithArgAndArgsProperties.Args](#args)
schema class | | static class | [ObjectModelWithArgAndArgsProperties.Arg](#arg)
schema class | @@ -64,10 +64,10 @@ ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMap valid ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | validate([Map](#objectmodelwithargandargspropertiesmapinput) arg, SchemaConfiguration configuration) | +| [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | validate([Map](#objectmodelwithargandargspropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectModelWithArgAndArgsPropertiesMapInput -public class ObjectModelWithArgAndArgsPropertiesMapInput
+## ObjectModelWithArgAndArgsPropertiesMapBuilder +public class ObjectModelWithArgAndArgsPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | of([Map](#objectmodelwithargandargspropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectModelWithArgAndArgsPropertiesMap](#objectmodelwithargandargspropertiesmap) | of([Map](#objectmodelwithargandargspropertiesmapbuilder) arg, SchemaConfiguration configuration) | | String | arg()
| | String | args()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md index 7a1d60df7ff..14c76476717 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectModelWithRefProps.ObjectModelWithRefProps1](#objectmodelwithrefprops1)
schema class | -| static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMapInput](#objectmodelwithrefpropsmapinput)
builder for Map payloads | +| static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMapBuilder](#objectmodelwithrefpropsmapbuilder)
builder for Map payloads | | static class | [ObjectModelWithRefProps.ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap)
output class for Map payloads | ## ObjectModelWithRefProps1 @@ -56,10 +56,10 @@ ObjectModelWithRefProps.ObjectModelWithRefPropsMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | validate([Map](#objectmodelwithrefpropsmapinput) arg, SchemaConfiguration configuration) | +| [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | validate([Map](#objectmodelwithrefpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectModelWithRefPropsMapInput -public class ObjectModelWithRefPropsMapInput
+## ObjectModelWithRefPropsMapBuilder +public class ObjectModelWithRefPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | of([Map](#objectmodelwithrefpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectModelWithRefPropsMap](#objectmodelwithrefpropsmap) | of([Map](#objectmodelwithrefpropsmapbuilder) arg, SchemaConfiguration configuration) | | Number | myNumber()
[optional] | | String | myString()
[optional] | | boolean | myBoolean()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index 9d23e5d6532..b332e3bde49 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -12,7 +12,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.ObjectWithAllOfWithReqTestPropFromUnsetAddProp1](#objectwithallofwithreqtestpropfromunsetaddprop1)
schema class | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1](#schema1)
schema class | -| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Map](#schema1map)
output class for Map payloads | | static class | [ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Name](#name)
schema class | @@ -84,10 +84,10 @@ ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -108,7 +108,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | test()
| | String | name()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md index 104e828d6c3..e4fd99ddc4a 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingProperties1](#objectwithcollidingproperties1)
schema class | -| static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMapInput](#objectwithcollidingpropertiesmapinput)
builder for Map payloads | +| static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMapBuilder](#objectwithcollidingpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap)
output class for Map payloads | | static class | [ObjectWithCollidingProperties.Someprop](#someprop)
schema class | | static class | [ObjectWithCollidingProperties.SomeProp](#someprop)
schema class | @@ -58,10 +58,10 @@ ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMap validatedPayload ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | validate([Map](#objectwithcollidingpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | validate([Map](#objectwithcollidingpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithCollidingPropertiesMapInput -public class ObjectWithCollidingPropertiesMapInput
+## ObjectWithCollidingPropertiesMapBuilder +public class ObjectWithCollidingPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -82,7 +82,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | of([Map](#objectwithcollidingpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithCollidingPropertiesMap](#objectwithcollidingpropertiesmap) | of([Map](#objectwithcollidingpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | FrozenMap | someProp()
[optional] | | FrozenMap | someprop()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md index 78acc80a0b0..7415274194f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalProperties1](#objectwithdecimalproperties1)
schema class | -| static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMapInput](#objectwithdecimalpropertiesmapinput)
builder for Map payloads | +| static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMapBuilder](#objectwithdecimalpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap)
output class for Map payloads | | static class | [ObjectWithDecimalProperties.Width](#width)
schema class | @@ -75,10 +75,10 @@ ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | validate([Map](#objectwithdecimalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | validate([Map](#objectwithdecimalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithDecimalPropertiesMapInput -public class ObjectWithDecimalPropertiesMapInput
+## ObjectWithDecimalPropertiesMapBuilder +public class ObjectWithDecimalPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -100,7 +100,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | of([Map](#objectwithdecimalpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithDecimalPropertiesMap](#objectwithdecimalpropertiesmap) | of([Map](#objectwithdecimalpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | String | length()
[optional] | | String | width()
[optional] value must be int or float numeric | | [Money.MoneyMap](../../components/schemas/Money.md#moneymap) | cost()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md index 412fd17c891..c7234290058 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedProps1](#objectwithdifficultlynamedprops1)
schema class | -| static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMapInput](#objectwithdifficultlynamedpropsmapinput)
builder for Map payloads | +| static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMapBuilder](#objectwithdifficultlynamedpropsmapbuilder)
builder for Map payloads | | static class | [ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap)
output class for Map payloads | | static class | [ObjectWithDifficultlyNamedProps.Schema123Number](#schema123number)
schema class | | static class | [ObjectWithDifficultlyNamedProps.Schema123list](#schema123list)
schema class | @@ -72,10 +72,10 @@ ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap validatedPayl ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | validate([Map](#objectwithdifficultlynamedpropsmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | validate([Map](#objectwithdifficultlynamedpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithDifficultlyNamedPropsMapInput -public class ObjectWithDifficultlyNamedPropsMapInput
+## ObjectWithDifficultlyNamedPropsMapBuilder +public class ObjectWithDifficultlyNamedPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,8 +84,8 @@ A class that builds the Map input type | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | | **123-list** | String | | | -| **$special[property.name]** | long | | [optional] value must be a 64 bit integer | -| **123Number** | long | | [optional] | +| **$special[property.name]** | Number | | [optional] value must be a 64 bit integer | +| **123Number** | Number | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## ObjectWithDifficultlyNamedPropsMap @@ -97,7 +97,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | of([Map](#objectwithdifficultlynamedpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithDifficultlyNamedPropsMap](#objectwithdifficultlynamedpropsmap) | of([Map](#objectwithdifficultlynamedpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["123-list"], instance["$special[property.name]"], instance["123Number"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md index 1610690a0e5..17655c8a851 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionProperty1](#objectwithinlinecompositionproperty1)
schema class | -| static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMapInput](#objectwithinlinecompositionpropertymapinput)
builder for Map payloads | +| static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMapBuilder](#objectwithinlinecompositionpropertymapbuilder)
builder for Map payloads | | static class | [ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap)
output class for Map payloads | | static class | [ObjectWithInlineCompositionProperty.SomeProp](#someprop)
schema class | | static class | [ObjectWithInlineCompositionProperty.Schema0](#schema0)
schema class | @@ -55,10 +55,10 @@ ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMap valid ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | validate([Map](#objectwithinlinecompositionpropertymapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | validate([Map](#objectwithinlinecompositionpropertymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithInlineCompositionPropertyMapInput -public class ObjectWithInlineCompositionPropertyMapInput
+## ObjectWithInlineCompositionPropertyMapBuilder +public class ObjectWithInlineCompositionPropertyMapBuilder
builder for `Map` A class that builds the Map input type @@ -78,7 +78,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | of([Map](#objectwithinlinecompositionpropertymapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithInlineCompositionPropertyMap](#objectwithinlinecompositionpropertymap) | of([Map](#objectwithinlinecompositionpropertymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | someProp()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md index 07b8932d1c8..fa37a5a7249 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedProperties1](#objectwithinvalidnamedrefedproperties1)
schema class | -| static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMapInput](#objectwithinvalidnamedrefedpropertiesmapinput)
builder for Map payloads | +| static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMapBuilder](#objectwithinvalidnamedrefedpropertiesmapbuilder)
builder for Map payloads | | static class | [ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap)
output class for Map payloads | ## ObjectWithInvalidNamedRefedProperties1 @@ -73,10 +73,10 @@ ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMap v ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | validate([Map](#objectwithinvalidnamedrefedpropertiesmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | validate([Map](#objectwithinvalidnamedrefedpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithInvalidNamedRefedPropertiesMapInput -public class ObjectWithInvalidNamedRefedPropertiesMapInput
+## ObjectWithInvalidNamedRefedPropertiesMapBuilder +public class ObjectWithInvalidNamedRefedPropertiesMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **!reference** | List | | | +| **!reference** | List | | | | **from** | Map | | | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -97,7 +97,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | of([Map](#objectwithinvalidnamedrefedpropertiesmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithInvalidNamedRefedPropertiesMap](#objectwithinvalidnamedrefedpropertiesmap) | of([Map](#objectwithinvalidnamedrefedpropertiesmapbuilder) arg, SchemaConfiguration configuration) | | [FromSchema.FromSchemaMap](../../components/schemas/FromSchema.md#fromschemamap) | from()
| | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["!reference"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md index 72f5cfbd2c3..f16f0c94e06 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValues1](#objectwithnonintersectingvalues1)
schema class | -| static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMapInput](#objectwithnonintersectingvaluesmapinput)
builder for Map payloads | +| static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMapBuilder](#objectwithnonintersectingvaluesmapbuilder)
builder for Map payloads | | static class | [ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap)
output class for Map payloads | | static class | [ObjectWithNonIntersectingValues.A](#a)
schema class | | static class | [ObjectWithNonIntersectingValues.AdditionalProperties](#additionalproperties)
schema class | @@ -60,10 +60,10 @@ ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMap validatedPayl ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | validate([Map](#objectwithnonintersectingvaluesmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | validate([Map](#objectwithnonintersectingvaluesmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithNonIntersectingValuesMapInput -public class ObjectWithNonIntersectingValuesMapInput
+## ObjectWithNonIntersectingValuesMapBuilder +public class ObjectWithNonIntersectingValuesMapBuilder
builder for `Map` A class that builds the Map input type @@ -83,7 +83,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | of([Map](#objectwithnonintersectingvaluesmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithNonIntersectingValuesMap](#objectwithnonintersectingvaluesmap) | of([Map](#objectwithnonintersectingvaluesmapbuilder) arg, SchemaConfiguration configuration) | | Number | a()
[optional] | | String | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md index 26bc981c67c..dfaa162208b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalProps1](#objectwithonlyoptionalprops1)
schema class | -| static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMapInput](#objectwithonlyoptionalpropsmapinput)
builder for Map payloads | +| static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMapBuilder](#objectwithonlyoptionalpropsmapbuilder)
builder for Map payloads | | static class | [ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap)
output class for Map payloads | | static class | [ObjectWithOnlyOptionalProps.B](#b)
schema class | | static class | [ObjectWithOnlyOptionalProps.A](#a)
schema class | @@ -65,10 +65,10 @@ ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | validate([Map](#objectwithonlyoptionalpropsmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | validate([Map](#objectwithonlyoptionalpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithOnlyOptionalPropsMapInput -public class ObjectWithOnlyOptionalPropsMapInput
+## ObjectWithOnlyOptionalPropsMapBuilder +public class ObjectWithOnlyOptionalPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | of([Map](#objectwithonlyoptionalpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithOnlyOptionalPropsMap](#objectwithonlyoptionalpropsmap) | of([Map](#objectwithonlyoptionalpropsmapbuilder) arg, SchemaConfiguration configuration) | | String | a()
[optional] | | Number | b()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md index fcb695c7db2..bc064925219 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestProp1](#objectwithoptionaltestprop1)
schema class | -| static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMapInput](#objectwithoptionaltestpropmapinput)
builder for Map payloads | +| static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMapBuilder](#objectwithoptionaltestpropmapbuilder)
builder for Map payloads | | static class | [ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap)
output class for Map payloads | | static class | [ObjectWithOptionalTestProp.Test](#test)
schema class | @@ -58,10 +58,10 @@ ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | validate([Map](#objectwithoptionaltestpropmapinput) arg, SchemaConfiguration configuration) | +| [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | validate([Map](#objectwithoptionaltestpropmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ObjectWithOptionalTestPropMapInput -public class ObjectWithOptionalTestPropMapInput
+## ObjectWithOptionalTestPropMapBuilder +public class ObjectWithOptionalTestPropMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | of([Map](#objectwithoptionaltestpropmapinput) arg, SchemaConfiguration configuration) | +| static [ObjectWithOptionalTestPropMap](#objectwithoptionaltestpropmap) | of([Map](#objectwithoptionaltestpropmapbuilder) arg, SchemaConfiguration configuration) | | String | test()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Order.md b/samples/client/petstore/java/docs/components/schemas/Order.md index 03320389051..8204be86ece 100644 --- a/samples/client/petstore/java/docs/components/schemas/Order.md +++ b/samples/client/petstore/java/docs/components/schemas/Order.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Order.Order1](#order1)
schema class | -| static class | [Order.OrderMapInput](#ordermapinput)
builder for Map payloads | +| static class | [Order.OrderMapBuilder](#ordermapbuilder)
builder for Map payloads | | static class | [Order.OrderMap](#ordermap)
output class for Map payloads | | static class | [Order.Complete](#complete)
schema class | | static class | [Order.Status](#status)
schema class | @@ -85,10 +85,10 @@ Order.OrderMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [OrderMap](#ordermap) | validate([Map](#ordermapinput) arg, SchemaConfiguration configuration) | +| [OrderMap](#ordermap) | validate([Map](#ordermapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## OrderMapInput -public class OrderMapInput
+## OrderMapBuilder +public class OrderMapBuilder
builder for `Map` A class that builds the Map input type @@ -96,9 +96,9 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **id** | long | | [optional] value must be a 64 bit integer | -| **petId** | long | | [optional] value must be a 64 bit integer | -| **quantity** | int | | [optional] value must be a 32 bit integer | +| **id** | Number | | [optional] value must be a 64 bit integer | +| **petId** | Number | | [optional] value must be a 64 bit integer | +| **quantity** | Number | | [optional] value must be a 32 bit integer | | **shipDate** | String | | [optional] value must conform to RFC-3339 date-time | | **status** | String | Order Status | [optional] must be one of ["placed", "approved", "delivered"] | | **complete** | boolean | | [optional] if omitted the server will use the default value of false | @@ -113,10 +113,10 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [OrderMap](#ordermap) | of([Map](#ordermapinput) arg, SchemaConfiguration configuration) | -| long | id()
[optional] value must be a 64 bit integer | -| long | petId()
[optional] value must be a 64 bit integer | -| int | quantity()
[optional] value must be a 32 bit integer | +| static [OrderMap](#ordermap) | of([Map](#ordermapbuilder) arg, SchemaConfiguration configuration) | +| Number | id()
[optional] value must be a 64 bit integer | +| Number | petId()
[optional] value must be a 64 bit integer | +| Number | quantity()
[optional] value must be a 32 bit integer | | String | shipDate()
[optional] value must conform to RFC-3339 date-time | | String | status()
[optional] must be one of ["placed", "approved", "delivered"] | | boolean | complete()
[optional] if omitted the server will use the default value of false | diff --git a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md index ef26d1c07f8..9c3d6aba3dd 100644 --- a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md @@ -13,10 +13,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDto1](#paginatedresultmyobjectdto1)
schema class | -| static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMapInput](#paginatedresultmyobjectdtomapinput)
builder for Map payloads | +| static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMapBuilder](#paginatedresultmyobjectdtomapbuilder)
builder for Map payloads | | static class | [PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap)
output class for Map payloads | | static class | [PaginatedResultMyObjectDto.Results](#results)
schema class | -| static class | [PaginatedResultMyObjectDto.ResultsListInput](#resultslistinput)
builder for List payloads | +| static class | [PaginatedResultMyObjectDto.ResultsListBuilder](#resultslistbuilder)
builder for List payloads | | static class | [PaginatedResultMyObjectDto.ResultsList](#resultslist)
output class for List payloads | | static class | [PaginatedResultMyObjectDto.Count](#count)
schema class | | static class | [PaginatedResultMyObjectDto.AdditionalProperties](#additionalproperties)
schema class | @@ -71,10 +71,10 @@ PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | validate([Map](#paginatedresultmyobjectdtomapinput) arg, SchemaConfiguration configuration) | +| [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | validate([Map](#paginatedresultmyobjectdtomapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PaginatedResultMyObjectDtoMapInput -public class PaginatedResultMyObjectDtoMapInput
+## PaginatedResultMyObjectDtoMapBuilder +public class PaginatedResultMyObjectDtoMapBuilder
builder for `Map` A class that builds the Map input type @@ -82,7 +82,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **count** | long | | | +| **count** | Number | | | | **results** | List> | | | ## PaginatedResultMyObjectDtoMap @@ -94,8 +94,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | of([Map](#paginatedresultmyobjectdtomapinput) arg, SchemaConfiguration configuration) | -| long | count()
| +| static [PaginatedResultMyObjectDtoMap](#paginatedresultmyobjectdtomap) | of([Map](#paginatedresultmyobjectdtomapbuilder) arg, SchemaConfiguration configuration) | +| Number | count()
| | [ResultsList](#resultslist) | results()
| ## Results @@ -122,8 +122,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation PaginatedResultMyObjectDto.ResultsList validatedPayload = PaginatedResultMyObjectDto.Results.validate( - Arrays.asList( - ), + new .ResultsListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -137,18 +139,25 @@ PaginatedResultMyObjectDto.ResultsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ResultsList](#resultslist) | validate([List](#resultslistinput) arg, SchemaConfiguration configuration) | +| [ResultsList](#resultslist) | validate([List](#resultslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ResultsListInput -public class ResultsListInput
+## ResultsListBuilder +public class ResultsListBuilder
builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| ResultsListBuilder()
Creates an empty list | +| ResultsListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| ResultsListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## ResultsList public class ResultsList
@@ -159,7 +168,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ResultsList](#resultslist) | of([List>](#resultslistinput) arg, SchemaConfiguration configuration) | +| static [ResultsList](#resultslist) | of([List>](#resultslistbuilder) arg, SchemaConfiguration configuration) | ## Count public static class Count
diff --git a/samples/client/petstore/java/docs/components/schemas/Pet.md b/samples/client/petstore/java/docs/components/schemas/Pet.md index cc22caa5638..fb6bc94848b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pet.md +++ b/samples/client/petstore/java/docs/components/schemas/Pet.md @@ -14,15 +14,15 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Pet.Pet1](#pet1)
schema class | -| static class | [Pet.PetMapInput](#petmapinput)
builder for Map payloads | +| static class | [Pet.PetMapBuilder](#petmapbuilder)
builder for Map payloads | | static class | [Pet.PetMap](#petmap)
output class for Map payloads | | static class | [Pet.Tags](#tags)
schema class | -| static class | [Pet.TagsListInput](#tagslistinput)
builder for List payloads | +| static class | [Pet.TagsListBuilder](#tagslistbuilder)
builder for List payloads | | static class | [Pet.TagsList](#tagslist)
output class for List payloads | | static class | [Pet.Status](#status)
schema class | | enum | [Pet.StringStatusEnums](#stringstatusenums)
String enum | | static class | [Pet.PhotoUrls](#photourls)
schema class | -| static class | [Pet.PhotoUrlsListInput](#photourlslistinput)
builder for List payloads | +| static class | [Pet.PhotoUrlsListBuilder](#photourlslistbuilder)
builder for List payloads | | static class | [Pet.PhotoUrlsList](#photourlslist)
output class for List payloads | | static class | [Pet.Items](#items)
schema class | | static class | [Pet.Name](#name)
schema class | @@ -113,10 +113,10 @@ Pet.PetMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PetMap](#petmap) | validate([Map](#petmapinput) arg, SchemaConfiguration configuration) | +| [PetMap](#petmap) | validate([Map](#petmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PetMapInput -public class PetMapInput
+## PetMapBuilder +public class PetMapBuilder
builder for `Map` A class that builds the Map input type @@ -126,7 +126,7 @@ A class that builds the Map input type | --- | ---- | ------------ | ----- | | **name** | String | | | | **photoUrls** | List | | | -| **id** | long | | [optional] value must be a 64 bit integer | +| **id** | Number | | [optional] value must be a 64 bit integer | | **category** | Map | | [optional] | | **tags** | List> | | [optional] | | **status** | String | pet status in the store | [optional] must be one of ["available", "pending", "sold"] | @@ -141,10 +141,10 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PetMap](#petmap) | of([Map](#petmapinput) arg, SchemaConfiguration configuration) | +| static [PetMap](#petmap) | of([Map](#petmapbuilder) arg, SchemaConfiguration configuration) | | String | name()
| | [PhotoUrlsList](#photourlslist) | photoUrls()
| -| long | id()
[optional] value must be a 64 bit integer | +| Number | id()
[optional] value must be a 64 bit integer | | [Category.CategoryMap](../../components/schemas/Category.md#categorymap) | category()
[optional] | | [TagsList](#tagslist) | tags()
[optional] | | String | status()
[optional] must be one of ["available", "pending", "sold"] | @@ -174,18 +174,20 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Pet.TagsList validatedPayload = Pet.Tags.validate( - Arrays.asList( - MapMaker.makeMap( - new AbstractMap.SimpleEntry( - "id", - 1L - ), - new AbstractMap.SimpleEntry( - "name", - "a" + new .TagsListBuilder( + Arrays.asList( + MapMaker.makeMap( + new AbstractMap.SimpleEntry( + "id", + 1L + ), + new AbstractMap.SimpleEntry( + "name", + "a" + ) ) ) - ), + ).build(), configuration ); ``` @@ -199,18 +201,25 @@ Pet.TagsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [TagsList](#tagslist) | validate([List](#tagslistinput) arg, SchemaConfiguration configuration) | +| [TagsList](#tagslist) | validate([List](#tagslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## TagsListInput -public class TagsListInput
-builder for `List>` +## TagsListBuilder +public class TagsListBuilder
+builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -Map | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| TagsListBuilder()
Creates an empty list | +| TagsListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| TagsListBuilder | add(Map item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## TagsList public class TagsList
@@ -221,7 +230,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [TagsList](#tagslist) | of([List>](#tagslistinput) arg, SchemaConfiguration configuration) | +| static [TagsList](#tagslist) | of([List>](#tagslistbuilder) arg, SchemaConfiguration configuration) | ## Status public static class Status
@@ -303,9 +312,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Pet.PhotoUrlsList validatedPayload = Pet.PhotoUrls.validate( - Arrays.asList( - "a" - ), + new .PhotoUrlsListBuilder( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -319,18 +330,25 @@ Pet.PhotoUrlsList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PhotoUrlsList](#photourlslist) | validate([List](#photourlslistinput) arg, SchemaConfiguration configuration) | +| [PhotoUrlsList](#photourlslist) | validate([List](#photourlslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PhotoUrlsListInput -public class PhotoUrlsListInput
+## PhotoUrlsListBuilder +public class PhotoUrlsListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| PhotoUrlsListBuilder()
Creates an empty list | +| PhotoUrlsListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| PhotoUrlsListBuilder | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## PhotoUrlsList public class PhotoUrlsList
@@ -341,7 +359,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PhotoUrlsList](#photourlslist) | of([List](#photourlslistinput) arg, SchemaConfiguration configuration) | +| static [PhotoUrlsList](#photourlslist) | of([List](#photourlslistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/components/schemas/Player.md b/samples/client/petstore/java/docs/components/schemas/Player.md index 60a09afdd02..c31c4d8d525 100644 --- a/samples/client/petstore/java/docs/components/schemas/Player.md +++ b/samples/client/petstore/java/docs/components/schemas/Player.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Player.Player1](#player1)
schema class | -| static class | [Player.PlayerMapInput](#playermapinput)
builder for Map payloads | +| static class | [Player.PlayerMapBuilder](#playermapbuilder)
builder for Map payloads | | static class | [Player.PlayerMap](#playermap)
output class for Map payloads | | static class | [Player.Name](#name)
schema class | @@ -61,10 +61,10 @@ Player.PlayerMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PlayerMap](#playermap) | validate([Map](#playermapinput) arg, SchemaConfiguration configuration) | +| [PlayerMap](#playermap) | validate([Map](#playermapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PlayerMapInput -public class PlayerMapInput
+## PlayerMapBuilder +public class PlayerMapBuilder
builder for `Map` A class that builds the Map input type @@ -85,7 +85,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PlayerMap](#playermap) | of([Map](#playermapinput) arg, SchemaConfiguration configuration) | +| static [PlayerMap](#playermap) | of([Map](#playermapbuilder) arg, SchemaConfiguration configuration) | | String | name()
[optional] | | [PlayerMap](#playermap) | enemyPlayer()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/PublicKey.md b/samples/client/petstore/java/docs/components/schemas/PublicKey.md index 69e869cd451..5e9764b775a 100644 --- a/samples/client/petstore/java/docs/components/schemas/PublicKey.md +++ b/samples/client/petstore/java/docs/components/schemas/PublicKey.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [PublicKey.PublicKey1](#publickey1)
schema class | -| static class | [PublicKey.PublicKeyMapInput](#publickeymapinput)
builder for Map payloads | +| static class | [PublicKey.PublicKeyMapBuilder](#publickeymapbuilder)
builder for Map payloads | | static class | [PublicKey.PublicKeyMap](#publickeymap)
output class for Map payloads | | static class | [PublicKey.Key](#key)
schema class | @@ -61,10 +61,10 @@ PublicKey.PublicKeyMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [PublicKeyMap](#publickeymap) | validate([Map](#publickeymapinput) arg, SchemaConfiguration configuration) | +| [PublicKeyMap](#publickeymap) | validate([Map](#publickeymapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## PublicKeyMapInput -public class PublicKeyMapInput
+## PublicKeyMapBuilder +public class PublicKeyMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [PublicKeyMap](#publickeymap) | of([Map](#publickeymapinput) arg, SchemaConfiguration configuration) | +| static [PublicKeyMap](#publickeymap) | of([Map](#publickeymapbuilder) arg, SchemaConfiguration configuration) | | String | key()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md index 54ae3f258b9..ce6253d4b89 100644 --- a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [QuadrilateralInterface.QuadrilateralInterface1](#quadrilateralinterface1)
schema class | -| static class | [QuadrilateralInterface.QuadrilateralInterfaceMapInput](#quadrilateralinterfacemapinput)
builder for Map payloads | +| static class | [QuadrilateralInterface.QuadrilateralInterfaceMapBuilder](#quadrilateralinterfacemapbuilder)
builder for Map payloads | | static class | [QuadrilateralInterface.QuadrilateralInterfaceMap](#quadrilateralinterfacemap)
output class for Map payloads | | static class | [QuadrilateralInterface.QuadrilateralType](#quadrilateraltype)
schema class | | static class | [QuadrilateralInterface.ShapeType](#shapetype)
schema class | @@ -40,11 +40,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | validate([Map](#quadrilateralinterfacemapinput) arg, SchemaConfiguration configuration) | +| [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | validate([Map](#quadrilateralinterfacemapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## QuadrilateralInterfaceMapInput -public class QuadrilateralInterfaceMapInput
+## QuadrilateralInterfaceMapBuilder +public class QuadrilateralInterfaceMapBuilder
builder for `Map` A class that builds the Map input type @@ -65,7 +65,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | of([Map](#quadrilateralinterfacemapinput) arg, SchemaConfiguration configuration) | +| static [QuadrilateralInterfaceMap](#quadrilateralinterfacemap) | of([Map](#quadrilateralinterfacemapbuilder) arg, SchemaConfiguration configuration) | | String | quadrilateralType()
| | String | shapeType()
must be one of ["Quadrilateral"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md index 66ec2c475b2..6e948562ab1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md +++ b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ReadOnlyFirst.ReadOnlyFirst1](#readonlyfirst1)
schema class | -| static class | [ReadOnlyFirst.ReadOnlyFirstMapInput](#readonlyfirstmapinput)
builder for Map payloads | +| static class | [ReadOnlyFirst.ReadOnlyFirstMapBuilder](#readonlyfirstmapbuilder)
builder for Map payloads | | static class | [ReadOnlyFirst.ReadOnlyFirstMap](#readonlyfirstmap)
output class for Map payloads | | static class | [ReadOnlyFirst.Baz](#baz)
schema class | | static class | [ReadOnlyFirst.Bar](#bar)
schema class | @@ -63,10 +63,10 @@ ReadOnlyFirst.ReadOnlyFirstMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReadOnlyFirstMap](#readonlyfirstmap) | validate([Map](#readonlyfirstmapinput) arg, SchemaConfiguration configuration) | +| [ReadOnlyFirstMap](#readonlyfirstmap) | validate([Map](#readonlyfirstmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ReadOnlyFirstMapInput -public class ReadOnlyFirstMapInput
+## ReadOnlyFirstMapBuilder +public class ReadOnlyFirstMapBuilder
builder for `Map` A class that builds the Map input type @@ -87,7 +87,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ReadOnlyFirstMap](#readonlyfirstmap) | of([Map](#readonlyfirstmapinput) arg, SchemaConfiguration configuration) | +| static [ReadOnlyFirstMap](#readonlyfirstmap) | of([Map](#readonlyfirstmapbuilder) arg, SchemaConfiguration configuration) | | String | bar()
[optional] | | String | baz()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md index 0e343d462ce..78ae5a1216f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddProps1](#reqpropsfromexplicitaddprops1)
schema class | -| static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMapInput](#reqpropsfromexplicitaddpropsmapinput)
builder for Map payloads | +| static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMapBuilder](#reqpropsfromexplicitaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap)
output class for Map payloads | | static class | [ReqPropsFromExplicitAddProps.AdditionalProperties](#additionalproperties)
schema class | @@ -59,10 +59,10 @@ ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | validate([Map](#reqpropsfromexplicitaddpropsmapinput) arg, SchemaConfiguration configuration) | +| [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | validate([Map](#reqpropsfromexplicitaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ReqPropsFromExplicitAddPropsMapInput -public class ReqPropsFromExplicitAddPropsMapInput
+## ReqPropsFromExplicitAddPropsMapBuilder +public class ReqPropsFromExplicitAddPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -83,7 +83,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | of([Map](#reqpropsfromexplicitaddpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ReqPropsFromExplicitAddPropsMap](#reqpropsfromexplicitaddpropsmap) | of([Map](#reqpropsfromexplicitaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | String | validName()
| | String | get(String key)
This schema has invalid Java names so this method must be used when you access instance["invalid-name"], | | String | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md index 49f2ea6661d..6d9143f968f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddProps1](#reqpropsfromtrueaddprops1)
schema class | -| static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMapInput](#reqpropsfromtrueaddpropsmapinput)
builder for Map payloads | +| static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMapBuilder](#reqpropsfromtrueaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap)
output class for Map payloads | | static class | [ReqPropsFromTrueAddProps.AdditionalProperties](#additionalproperties)
schema class | @@ -55,10 +55,10 @@ ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | validate([Map](#reqpropsfromtrueaddpropsmapinput) arg, SchemaConfiguration configuration) | +| [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | validate([Map](#reqpropsfromtrueaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ReqPropsFromTrueAddPropsMapInput -public class ReqPropsFromTrueAddPropsMapInput
+## ReqPropsFromTrueAddPropsMapBuilder +public class ReqPropsFromTrueAddPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -79,7 +79,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | of([Map](#reqpropsfromtrueaddpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ReqPropsFromTrueAddPropsMap](#reqpropsfromtrueaddpropsmap) | of([Map](#reqpropsfromtrueaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validName()
| | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["invalid-name"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md index 65002726849..2166616c33d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddProps1](#reqpropsfromunsetaddprops1)
schema class | -| static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMapInput](#reqpropsfromunsetaddpropsmapinput)
builder for Map payloads | +| static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMapBuilder](#reqpropsfromunsetaddpropsmapbuilder)
builder for Map payloads | | static class | [ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap)
output class for Map payloads | ## ReqPropsFromUnsetAddProps1 @@ -53,10 +53,10 @@ ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | validate([Map](#reqpropsfromunsetaddpropsmapinput) arg, SchemaConfiguration configuration) | +| [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | validate([Map](#reqpropsfromunsetaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ReqPropsFromUnsetAddPropsMapInput -public class ReqPropsFromUnsetAddPropsMapInput
+## ReqPropsFromUnsetAddPropsMapBuilder +public class ReqPropsFromUnsetAddPropsMapBuilder
builder for `Map` A class that builds the Map input type @@ -77,7 +77,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | of([Map](#reqpropsfromunsetaddpropsmapinput) arg, SchemaConfiguration configuration) | +| static [ReqPropsFromUnsetAddPropsMap](#reqpropsfromunsetaddpropsmap) | of([Map](#reqpropsfromunsetaddpropsmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validName()
| | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["invalid-name"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md index 08e27b88be4..c3724d6c14c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ReturnSchema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [ReturnSchema.ReturnSchema1](#returnschema1)
schema class | -| static class | [ReturnSchema.ReturnMapInput](#returnmapinput)
builder for Map payloads | +| static class | [ReturnSchema.ReturnMapBuilder](#returnmapbuilder)
builder for Map payloads | | static class | [ReturnSchema.ReturnMap](#returnmap)
output class for Map payloads | | static class | [ReturnSchema.ReturnSchema2](#returnschema2)
schema class | @@ -39,11 +39,11 @@ Model for testing reserved words | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [ReturnMap](#returnmap) | validate([Map](#returnmapinput) arg, SchemaConfiguration configuration) | +| [ReturnMap](#returnmap) | validate([Map](#returnmapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ReturnMapInput -public class ReturnMapInput
+## ReturnMapBuilder +public class ReturnMapBuilder
builder for `Map` A class that builds the Map input type @@ -51,7 +51,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **return** | int | this is a reserved python keyword | [optional] value must be a 32 bit integer | +| **return** | Number | this is a reserved python keyword | [optional] value must be a 32 bit integer | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | ## ReturnMap @@ -63,7 +63,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ReturnMap](#returnmap) | of([Map](#returnmapinput) arg, SchemaConfiguration configuration) | +| static [ReturnMap](#returnmap) | of([Map](#returnmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["return"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md index 1a7de11570b..a5c2a12bc69 100644 --- a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md @@ -13,7 +13,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [ScaleneTriangle.ScaleneTriangle1](#scalenetriangle1)
schema class | | static class | [ScaleneTriangle.Schema1](#schema1)
schema class | -| static class | [ScaleneTriangle.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [ScaleneTriangle.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [ScaleneTriangle.Schema1Map](#schema1map)
output class for Map payloads | | static class | [ScaleneTriangle.TriangleType](#triangletype)
schema class | | enum | [ScaleneTriangle.StringTriangleTypeEnums](#stringtriangletypeenums)
String enum | @@ -85,10 +85,10 @@ ScaleneTriangle.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -108,7 +108,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | triangleType()
[optional] must be one of ["ScaleneTriangle"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md index 12c6d68898e..f81f7edf870 100644 --- a/samples/client/petstore/java/docs/components/schemas/Schema200Response.md +++ b/samples/client/petstore/java/docs/components/schemas/Schema200Response.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema200Response.Schema200Response1](#schema200response1)
schema class | -| static class | [Schema200Response.Schema200ResponseMapInput](#schema200responsemapinput)
builder for Map payloads | +| static class | [Schema200Response.Schema200ResponseMapBuilder](#schema200responsemapbuilder)
builder for Map payloads | | static class | [Schema200Response.Schema200ResponseMap](#schema200responsemap)
output class for Map payloads | | static class | [Schema200Response.ClassSchema](#classschema)
schema class | | static class | [Schema200Response.Name](#name)
schema class | @@ -40,11 +40,11 @@ model with an invalid class name for python, starts with a number | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [Schema200ResponseMap](#schema200responsemap) | validate([Map](#schema200responsemapinput) arg, SchemaConfiguration configuration) | +| [Schema200ResponseMap](#schema200responsemap) | validate([Map](#schema200responsemapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema200ResponseMapInput -public class Schema200ResponseMapInput
+## Schema200ResponseMapBuilder +public class Schema200ResponseMapBuilder
builder for `Map` A class that builds the Map input type @@ -52,7 +52,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **name** | int | | [optional] value must be a 32 bit integer | +| **name** | Number | | [optional] value must be a 32 bit integer | | **class** | String | this is a reserved python keyword | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -65,8 +65,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema200ResponseMap](#schema200responsemap) | of([Map](#schema200responsemapinput) arg, SchemaConfiguration configuration) | -| int | name()
[optional] value must be a 32 bit integer | +| static [Schema200ResponseMap](#schema200responsemap) | of([Map](#schema200responsemapbuilder) arg, SchemaConfiguration configuration) | +| Number | name()
[optional] value must be a 32 bit integer | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["class"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md index 9926ff0c4ef..1bbb0aba747 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModel1](#selfreferencingarraymodel1)
schema class | -| static class | [SelfReferencingArrayModel.SelfReferencingArrayModelListInput](#selfreferencingarraymodellistinput)
builder for List payloads | +| static class | [SelfReferencingArrayModel.SelfReferencingArrayModelListBuilder](#selfreferencingarraymodellistbuilder)
builder for List payloads | | static class | [SelfReferencingArrayModel.SelfReferencingArrayModelList](#selfreferencingarraymodellist)
output class for List payloads | ## SelfReferencingArrayModel1 @@ -38,8 +38,10 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation SelfReferencingArrayModel.SelfReferencingArrayModelList validatedPayload = SelfReferencingArrayModel.SelfReferencingArrayModel1.validate( - Arrays.asList( - ), + new SelfReferencingArrayModel.SelfReferencingArrayModelListBuilder( + Arrays.asList( + ) + ).build(), configuration ); ``` @@ -53,18 +55,25 @@ SelfReferencingArrayModel.SelfReferencingArrayModelList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | validate([List](#selfreferencingarraymodellistinput) arg, SchemaConfiguration configuration) | +| [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | validate([List](#selfreferencingarraymodellistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SelfReferencingArrayModelListInput -public class SelfReferencingArrayModelListInput
+## SelfReferencingArrayModelListBuilder +public class SelfReferencingArrayModelListBuilder
builder for `List>` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -List | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SelfReferencingArrayModelListBuilder()
Creates an empty list | +| SelfReferencingArrayModelListBuilder(List> items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SelfReferencingArrayModelListBuilder | add(List item) | +| List> | build()
Returns list input that should be used with Schema.validate | ## SelfReferencingArrayModelList public class SelfReferencingArrayModelList
@@ -75,6 +84,6 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | of([List>](#selfreferencingarraymodellistinput) arg, SchemaConfiguration configuration) | +| static [SelfReferencingArrayModelList](#selfreferencingarraymodellist) | of([List>](#selfreferencingarraymodellistbuilder) arg, SchemaConfiguration configuration) | [[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md index 6c926964494..58d5fdc46c5 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModel1](#selfreferencingobjectmodel1)
schema class | -| static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMapInput](#selfreferencingobjectmodelmapinput)
builder for Map payloads | +| static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMapBuilder](#selfreferencingobjectmodelmapbuilder)
builder for Map payloads | | static class | [SelfReferencingObjectModel.SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap)
output class for Map payloads | ## SelfReferencingObjectModel1 @@ -54,10 +54,10 @@ SelfReferencingObjectModel.SelfReferencingObjectModelMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | validate([Map](#selfreferencingobjectmodelmapinput) arg, SchemaConfiguration configuration) | +| [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | validate([Map](#selfreferencingobjectmodelmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SelfReferencingObjectModelMapInput -public class SelfReferencingObjectModelMapInput
+## SelfReferencingObjectModelMapBuilder +public class SelfReferencingObjectModelMapBuilder
builder for `Map` A class that builds the Map input type @@ -77,7 +77,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | of([Map](#selfreferencingobjectmodelmapinput) arg, SchemaConfiguration configuration) | +| static [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | of([Map](#selfreferencingobjectmodelmapbuilder) arg, SchemaConfiguration configuration) | | [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | selfRef()
[optional] | | [SelfReferencingObjectModelMap](#selfreferencingobjectmodelmap) | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md index 46814e0410c..eefec6569df 100644 --- a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md @@ -13,7 +13,7 @@ A class that contains necessary nested | ----------------- | ---------------------- | | static class | [SimpleQuadrilateral.SimpleQuadrilateral1](#simplequadrilateral1)
schema class | | static class | [SimpleQuadrilateral.Schema1](#schema1)
schema class | -| static class | [SimpleQuadrilateral.Schema1MapInput](#schema1mapinput)
builder for Map payloads | +| static class | [SimpleQuadrilateral.Schema1MapBuilder](#schema1mapbuilder)
builder for Map payloads | | static class | [SimpleQuadrilateral.Schema1Map](#schema1map)
output class for Map payloads | | static class | [SimpleQuadrilateral.QuadrilateralType](#quadrilateraltype)
schema class | | enum | [SimpleQuadrilateral.StringQuadrilateralTypeEnums](#stringquadrilateraltypeenums)
String enum | @@ -85,10 +85,10 @@ SimpleQuadrilateral.Schema1Map validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Schema1Map](#schema1map) | validate([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| [Schema1Map](#schema1map) | validate([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## Schema1MapInput -public class Schema1MapInput
+## Schema1MapBuilder +public class Schema1MapBuilder
builder for `Map` A class that builds the Map input type @@ -108,7 +108,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [Schema1Map](#schema1map) | of([Map](#schema1mapinput) arg, SchemaConfiguration configuration) | +| static [Schema1Map](#schema1map) | of([Map](#schema1mapbuilder) arg, SchemaConfiguration configuration) | | String | quadrilateralType()
[optional] must be one of ["SimpleQuadrilateral"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md index 56df6d445b8..5d6b4ba23ca 100644 --- a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md +++ b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [SpecialModelname.SpecialModelname1](#specialmodelname1)
schema class | -| static class | [SpecialModelname.SpecialModelnameMapInput](#specialmodelnamemapinput)
builder for Map payloads | +| static class | [SpecialModelname.SpecialModelnameMapBuilder](#specialmodelnamemapbuilder)
builder for Map payloads | | static class | [SpecialModelname.SpecialModelnameMap](#specialmodelnamemap)
output class for Map payloads | | static class | [SpecialModelname.A](#a)
schema class | @@ -61,10 +61,10 @@ SpecialModelname.SpecialModelnameMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SpecialModelnameMap](#specialmodelnamemap) | validate([Map](#specialmodelnamemapinput) arg, SchemaConfiguration configuration) | +| [SpecialModelnameMap](#specialmodelnamemap) | validate([Map](#specialmodelnamemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SpecialModelnameMapInput -public class SpecialModelnameMapInput
+## SpecialModelnameMapBuilder +public class SpecialModelnameMapBuilder
builder for `Map` A class that builds the Map input type @@ -84,7 +84,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SpecialModelnameMap](#specialmodelnamemap) | of([Map](#specialmodelnamemapinput) arg, SchemaConfiguration configuration) | +| static [SpecialModelnameMap](#specialmodelnamemap) | of([Map](#specialmodelnamemapbuilder) arg, SchemaConfiguration configuration) | | String | a()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md index dacc6a784a7..2bb2be72dc5 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md +++ b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [StringBooleanMap.StringBooleanMap1](#stringbooleanmap1)
schema class | -| static class | [StringBooleanMap.StringBooleanMapMapInput](#stringbooleanmapmapinput)
builder for Map payloads | +| static class | [StringBooleanMap.StringBooleanMapMapBuilder](#stringbooleanmapmapbuilder)
builder for Map payloads | | static class | [StringBooleanMap.StringBooleanMapMap](#stringbooleanmapmap)
output class for Map payloads | | static class | [StringBooleanMap.AdditionalProperties](#additionalproperties)
schema class | @@ -54,10 +54,10 @@ StringBooleanMap.StringBooleanMapMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [StringBooleanMapMap](#stringbooleanmapmap) | validate([Map](#stringbooleanmapmapinput) arg, SchemaConfiguration configuration) | +| [StringBooleanMapMap](#stringbooleanmapmap) | validate([Map](#stringbooleanmapmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## StringBooleanMapMapInput -public class StringBooleanMapMapInput
+## StringBooleanMapMapBuilder +public class StringBooleanMapMapBuilder
builder for `Map` A class that builds the Map input type @@ -76,7 +76,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [StringBooleanMapMap](#stringbooleanmapmap) | of([Map](#stringbooleanmapmapinput) arg, SchemaConfiguration configuration) | +| static [StringBooleanMapMap](#stringbooleanmapmap) | of([Map](#stringbooleanmapmapbuilder) arg, SchemaConfiguration configuration) | | boolean | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties diff --git a/samples/client/petstore/java/docs/components/schemas/Tag.md b/samples/client/petstore/java/docs/components/schemas/Tag.md index 16b591e0919..34d8142f7eb 100644 --- a/samples/client/petstore/java/docs/components/schemas/Tag.md +++ b/samples/client/petstore/java/docs/components/schemas/Tag.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Tag.Tag1](#tag1)
schema class | -| static class | [Tag.TagMapInput](#tagmapinput)
builder for Map payloads | +| static class | [Tag.TagMapBuilder](#tagmapbuilder)
builder for Map payloads | | static class | [Tag.TagMap](#tagmap)
output class for Map payloads | | static class | [Tag.Name](#name)
schema class | | static class | [Tag.Id](#id)
schema class | @@ -63,10 +63,10 @@ Tag.TagMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [TagMap](#tagmap) | validate([Map](#tagmapinput) arg, SchemaConfiguration configuration) | +| [TagMap](#tagmap) | validate([Map](#tagmapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## TagMapInput -public class TagMapInput
+## TagMapBuilder +public class TagMapBuilder
builder for `Map` A class that builds the Map input type @@ -74,7 +74,7 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **id** | long | | [optional] value must be a 64 bit integer | +| **id** | Number | | [optional] value must be a 64 bit integer | | **name** | String | | [optional] | | **anyStringName** | Object | any string name can be used but the value must be the correct type | [optional] | @@ -87,8 +87,8 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [TagMap](#tagmap) | of([Map](#tagmapinput) arg, SchemaConfiguration configuration) | -| long | id()
[optional] value must be a 64 bit integer | +| static [TagMap](#tagmap) | of([Map](#tagmapbuilder) arg, SchemaConfiguration configuration) | +| Number | id()
[optional] value must be a 64 bit integer | | String | name()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md index 8c0feb57b5e..9861c7bb2ef 100644 --- a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [TriangleInterface.TriangleInterface1](#triangleinterface1)
schema class | -| static class | [TriangleInterface.TriangleInterfaceMapInput](#triangleinterfacemapinput)
builder for Map payloads | +| static class | [TriangleInterface.TriangleInterfaceMapBuilder](#triangleinterfacemapbuilder)
builder for Map payloads | | static class | [TriangleInterface.TriangleInterfaceMap](#triangleinterfacemap)
output class for Map payloads | | static class | [TriangleInterface.TriangleType](#triangletype)
schema class | | static class | [TriangleInterface.ShapeType](#shapetype)
schema class | @@ -40,11 +40,11 @@ A schema class that validates payloads | float | validate(float arg, SchemaConfiguration configuration) | | double | validate(double arg, SchemaConfiguration configuration) | | boolean | validate(boolean arg, SchemaConfiguration configuration) | -| [TriangleInterfaceMap](#triangleinterfacemap) | validate([Map](#triangleinterfacemapinput) arg, SchemaConfiguration configuration) | +| [TriangleInterfaceMap](#triangleinterfacemap) | validate([Map](#triangleinterfacemapbuilder) arg, SchemaConfiguration configuration) | | FrozenList<@Nullable Object> | validate(List arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## TriangleInterfaceMapInput -public class TriangleInterfaceMapInput
+## TriangleInterfaceMapBuilder +public class TriangleInterfaceMapBuilder
builder for `Map` A class that builds the Map input type @@ -65,7 +65,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [TriangleInterfaceMap](#triangleinterfacemap) | of([Map](#triangleinterfacemapinput) arg, SchemaConfiguration configuration) | +| static [TriangleInterfaceMap](#triangleinterfacemap) | of([Map](#triangleinterfacemapbuilder) arg, SchemaConfiguration configuration) | | String | shapeType()
must be one of ["Triangle"] | | String | triangleType()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/components/schemas/User.md b/samples/client/petstore/java/docs/components/schemas/User.md index a7bcdd67273..ab553e405f5 100644 --- a/samples/client/petstore/java/docs/components/schemas/User.md +++ b/samples/client/petstore/java/docs/components/schemas/User.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [User.User1](#user1)
schema class | -| static class | [User.UserMapInput](#usermapinput)
builder for Map payloads | +| static class | [User.UserMapBuilder](#usermapbuilder)
builder for Map payloads | | static class | [User.UserMap](#usermap)
output class for Map payloads | | static class | [User.AnyTypePropNullable](#anytypepropnullable)
schema class | | static class | [User.AnyTypeExceptNullProp](#anytypeexceptnullprop)
schema class | @@ -103,10 +103,10 @@ User.UserMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [UserMap](#usermap) | validate([Map](#usermapinput) arg, SchemaConfiguration configuration) | +| [UserMap](#usermap) | validate([Map](#usermapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## UserMapInput -public class UserMapInput
+## UserMapBuilder +public class UserMapBuilder
builder for `Map` A class that builds the Map input type @@ -114,14 +114,14 @@ A class that builds the Map input type ## Input Map Keys | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | -| **id** | long | | [optional] value must be a 64 bit integer | +| **id** | Number | | [optional] value must be a 64 bit integer | | **username** | String | | [optional] | | **firstName** | String | | [optional] | | **lastName** | String | | [optional] | | **email** | String | | [optional] | | **password** | String | | [optional] | | **phone** | String | | [optional] | -| **userStatus** | int | User Status | [optional] value must be a 32 bit integer | +| **userStatus** | Number | User Status | [optional] value must be a 32 bit integer | | **objectWithNoDeclaredProps** | Map | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] | | **objectWithNoDeclaredPropsNullable** | ? extends @Nullable Map | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] | | **anyTypeProp** | ? extends @Nullable Object | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] | @@ -138,15 +138,15 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [UserMap](#usermap) | of([Map](#usermapinput) arg, SchemaConfiguration configuration) | -| long | id()
[optional] value must be a 64 bit integer | +| static [UserMap](#usermap) | of([Map](#usermapbuilder) arg, SchemaConfiguration configuration) | +| Number | id()
[optional] value must be a 64 bit integer | | String | username()
[optional] | | String | firstName()
[optional] | | String | lastName()
[optional] | | String | email()
[optional] | | String | password()
[optional] | | String | phone()
[optional] | -| int | userStatus()
[optional] value must be a 32 bit integer | +| Number | userStatus()
[optional] value must be a 32 bit integer | | FrozenMap | objectWithNoDeclaredProps()
[optional] | | @Nullable FrozenMap | objectWithNoDeclaredPropsNullable()
[optional] | | @Nullable Object | anyTypeProp()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/Whale.md b/samples/client/petstore/java/docs/components/schemas/Whale.md index 87bee4b166d..7efc1b2cb4d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Whale.md +++ b/samples/client/petstore/java/docs/components/schemas/Whale.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Whale.Whale1](#whale1)
schema class | -| static class | [Whale.WhaleMapInput](#whalemapinput)
builder for Map payloads | +| static class | [Whale.WhaleMapBuilder](#whalemapbuilder)
builder for Map payloads | | static class | [Whale.WhaleMap](#whalemap)
output class for Map payloads | | static class | [Whale.ClassName](#classname)
schema class | | enum | [Whale.StringClassNameEnums](#stringclassnameenums)
String enum | @@ -71,10 +71,10 @@ Whale.WhaleMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [WhaleMap](#whalemap) | validate([Map](#whalemapinput) arg, SchemaConfiguration configuration) | +| [WhaleMap](#whalemap) | validate([Map](#whalemapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## WhaleMapInput -public class WhaleMapInput
+## WhaleMapBuilder +public class WhaleMapBuilder
builder for `Map` A class that builds the Map input type @@ -96,7 +96,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [WhaleMap](#whalemap) | of([Map](#whalemapinput) arg, SchemaConfiguration configuration) | +| static [WhaleMap](#whalemap) | of([Map](#whalemapbuilder) arg, SchemaConfiguration configuration) | | String | className()
must be one of ["whale"] | | boolean | hasBaleen()
[optional] | | boolean | hasTeeth()
[optional] | diff --git a/samples/client/petstore/java/docs/components/schemas/Zebra.md b/samples/client/petstore/java/docs/components/schemas/Zebra.md index f21fe376338..e46c41ef334 100644 --- a/samples/client/petstore/java/docs/components/schemas/Zebra.md +++ b/samples/client/petstore/java/docs/components/schemas/Zebra.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Zebra.Zebra1](#zebra1)
schema class | -| static class | [Zebra.ZebraMapInput](#zebramapinput)
builder for Map payloads | +| static class | [Zebra.ZebraMapBuilder](#zebramapbuilder)
builder for Map payloads | | static class | [Zebra.ZebraMap](#zebramap)
output class for Map payloads | | static class | [Zebra.ClassName](#classname)
schema class | | enum | [Zebra.StringClassNameEnums](#stringclassnameenums)
String enum | @@ -69,10 +69,10 @@ Zebra.ZebraMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ZebraMap](#zebramap) | validate([Map](#zebramapinput) arg, SchemaConfiguration configuration) | +| [ZebraMap](#zebramap) | validate([Map](#zebramapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## ZebraMapInput -public class ZebraMapInput
+## ZebraMapBuilder +public class ZebraMapBuilder
builder for `Map` A class that builds the Map input type @@ -93,7 +93,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [ZebraMap](#zebramap) | of([Map](#zebramapinput) arg, SchemaConfiguration configuration) | +| static [ZebraMap](#zebramap) | of([Map](#zebramapbuilder) arg, SchemaConfiguration configuration) | | String | className()
must be one of ["zebra"] | | String | type()
[optional] must be one of ["plains", "mountain", "grevys"] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md index 6fbdbac42f3..2d358ed337a 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter0/Schema0.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListInput0](#schemalistinput0)
builder for List payloads | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | | static class | [Schema0.Items0](#items0)
schema class | | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | @@ -41,9 +41,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema0.SchemaList0 validatedPayload = Schema0.Schema01.validate( - Arrays.asList( - ">" - ), + new Schema0.SchemaListBuilder0( + Arrays.asList( + ">" + ) + ).build(), configuration ); ``` @@ -57,18 +59,26 @@ Schema0.SchemaList0 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput0 -public class SchemaListInput0
+## SchemaListBuilder0 +public class SchemaListBuilder0
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | must be one of [">", "$"] if omitted the server will use the default value of $ +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| SchemaListBuilder0 | add([StringItemsEnums0](#stringitemsenums0) item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList0 public class SchemaList0
@@ -79,7 +89,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md index 0a1445334b1..fc5bd22bcb1 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter2/Schema2.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema2.Schema21](#schema21)
schema class | -| static class | [Schema2.SchemaListInput2](#schemalistinput2)
builder for List payloads | +| static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | | static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | | static class | [Schema2.Items2](#items2)
schema class | | enum | [Schema2.StringItemsEnums2](#stringitemsenums2)
String enum | @@ -41,9 +41,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema2.SchemaList2 validatedPayload = Schema2.Schema21.validate( - Arrays.asList( - ">" - ), + new Schema2.SchemaListBuilder2( + Arrays.asList( + ">" + ) + ).build(), configuration ); ``` @@ -57,18 +59,26 @@ Schema2.SchemaList2 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | validate([List](#schemalistinput2) arg, SchemaConfiguration configuration) | +| [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput2 -public class SchemaListInput2
+## SchemaListBuilder2 +public class SchemaListBuilder2
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | must be one of [">", "$"] if omitted the server will use the default value of $ +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder2()
Creates an empty list | +| SchemaListBuilder2(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder2 | add(String item) | +| SchemaListBuilder2 | add([StringItemsEnums2](#stringitemsenums2) item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList2 public class SchemaList2
@@ -79,7 +89,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList2](#schemalist2) | of([List](#schemalistinput2) arg, SchemaConfiguration configuration) | +| static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.md index 9236f996b28..0a01dd60103 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.md @@ -14,12 +14,12 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.EnumFormString](#enumformstring)
schema class | | enum | [Schema.StringEnumFormStringEnums](#stringenumformstringenums)
String enum | | static class | [Schema.EnumFormStringArray](#enumformstringarray)
schema class | -| static class | [Schema.EnumFormStringArrayListInput](#enumformstringarraylistinput)
builder for List payloads | +| static class | [Schema.EnumFormStringArrayListBuilder](#enumformstringarraylistbuilder)
builder for List payloads | | static class | [Schema.EnumFormStringArrayList](#enumformstringarraylist)
output class for List payloads | | static class | [Schema.Items](#items)
schema class | | enum | [Schema.StringItemsEnums](#stringitemsenums)
String enum | @@ -73,10 +73,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -97,7 +97,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | [EnumFormStringArrayList](#enumformstringarraylist) | enum_form_string_array()
[optional] | | String | enum_form_string()
[optional] must be one of ["_abc", "-efg", "(xyz)"] if omitted the server will use the default value of -efg | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -185,9 +185,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema.EnumFormStringArrayList validatedPayload = Schema.EnumFormStringArray.validate( - Arrays.asList( - ">" - ), + new .EnumFormStringArrayListBuilder( + Arrays.asList( + ">" + ) + ).build(), configuration ); ``` @@ -201,18 +203,26 @@ Schema.EnumFormStringArrayList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [EnumFormStringArrayList](#enumformstringarraylist) | validate([List](#enumformstringarraylistinput) arg, SchemaConfiguration configuration) | +| [EnumFormStringArrayList](#enumformstringarraylist) | validate([List](#enumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## EnumFormStringArrayListInput -public class EnumFormStringArrayListInput
+## EnumFormStringArrayListBuilder +public class EnumFormStringArrayListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | must be one of [">", "$"] if omitted the server will use the default value of $ +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| EnumFormStringArrayListBuilder()
Creates an empty list | +| EnumFormStringArrayListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| EnumFormStringArrayListBuilder | add(String item) | +| EnumFormStringArrayListBuilder | add([StringItemsEnums](#stringitemsenums) item) | +| List | build()
Returns list input that should be used with Schema.validate | ## EnumFormStringArrayList public class EnumFormStringArrayList
@@ -223,7 +233,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [EnumFormStringArrayList](#enumformstringarraylist) | of([List](#enumformstringarraylistinput) arg, SchemaConfiguration configuration) | +| static [EnumFormStringArrayList](#enumformstringarraylist) | of([List](#enumformstringarraylistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.md index 737f2d41223..7bbcbd1816d 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.md +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.Callback](#callback)
schema class | | static class | [Schema.Password](#password)
schema class | @@ -124,10 +124,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -136,13 +136,13 @@ A class that builds the Map input type | Key | Type | Description | Notes | | --- | ---- | ------------ | ----- | | **byte** | String | None | | -| **double** | double | None | value must be a 64 bit float | +| **double** | Number | None | value must be a 64 bit float | | **number** | Number | None | | | **pattern_without_delimiter** | String | None | | -| **integer** | long | None | [optional] | -| **int32** | int | None | [optional] value must be a 32 bit integer | -| **int64** | long | None | [optional] value must be a 64 bit integer | -| **float** | float | None | [optional] value must be a 32 bit float | +| **integer** | Number | None | [optional] | +| **int32** | Number | None | [optional] value must be a 32 bit integer | +| **int64** | Number | None | [optional] value must be a 64 bit integer | +| **float** | Number | None | [optional] value must be a 32 bit float | | **string** | String | None | [optional] | | **binary** | String | None | [optional] | | **date** | String | None | [optional] value must conform to RFC-3339 full-date YYYY-MM-DD | @@ -160,10 +160,10 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | pattern_without_delimiter()
| -| int | int32()
[optional] value must be a 32 bit integer | -| long | int64()
[optional] value must be a 64 bit integer | +| Number | int32()
[optional] value must be a 32 bit integer | +| Number | int64()
[optional] value must be a 64 bit integer | | String | binary()
[optional] | | String | date()
[optional] value must conform to RFC-3339 full-date YYYY-MM-DD | | String | dateTime()
[optional] if omitted the server will use the default value of 2010-02-01T10:20:10.111110+01:00 value must conform to RFC-3339 date-time | diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.md index 8892b972c25..51e2046fcfe 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.AdditionalProperties](#additionalproperties)
schema class | @@ -54,10 +54,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -76,7 +76,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | getAdditionalProperty(String name)
provides type safety for additional properties | ## AdditionalProperties diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md index e11098f5337..b19d4ef72bc 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema1.Schema11](#schema11)
schema class | -| static class | [Schema1.SchemaMapInput1](#schemamapinput1)
builder for Map payloads | +| static class | [Schema1.SchemaMapBuilder1](#schemamapbuilder1)
builder for Map payloads | | static class | [Schema1.SchemaMap1](#schemamap1)
output class for Map payloads | | static class | [Schema1.SomeProp1](#someprop1)
schema class | | static class | [Schema1.Schema01](#schema01)
schema class | @@ -55,10 +55,10 @@ Schema1.SchemaMap1 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap1](#schemamap1) | validate([Map](#schemamapinput1) arg, SchemaConfiguration configuration) | +| [SchemaMap1](#schemamap1) | validate([Map](#schemamapbuilder1) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput1 -public class SchemaMapInput1
+## SchemaMapBuilder1 +public class SchemaMapBuilder1
builder for `Map` A class that builds the Map input type @@ -78,7 +78,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap1](#schemamap1) | of([Map](#schemamapinput1) arg, SchemaConfiguration configuration) | +| static [SchemaMap1](#schemamap1) | of([Map](#schemamapbuilder1) arg, SchemaConfiguration configuration) | | @Nullable Object | someProp()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.md index 9e6102ee326..8f01851b075 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.SomeProp](#someprop)
schema class | | static class | [Schema.Schema0](#schema0)
schema class | @@ -55,10 +55,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -78,7 +78,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | someProp()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.md index d852ed913fb..b03c3f2881c 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.SomeProp](#someprop)
schema class | | static class | [Schema.Schema0](#schema0)
schema class | @@ -55,10 +55,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -78,7 +78,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | someProp()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.md index 866ea726a75..c642b18548c 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.Param2](#param2)
schema class | | static class | [Schema.Param](#param)
schema class | @@ -64,10 +64,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | param()
| | String | param2()
| | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.md index d1670653154..acb10d8433c 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.A](#a)
schema class | @@ -58,10 +58,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | a()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.md index 3e5dccdc11d..a91b5ec924a 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.B](#b)
schema class | @@ -58,10 +58,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | b()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md index a21fe3a00ba..739ab9f1efd 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/parameters/parameter0/Schema0.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaMapInput0](#schemamapinput0)
builder for Map payloads | +| static class | [Schema0.SchemaMapBuilder0](#schemamapbuilder0)
builder for Map payloads | | static class | [Schema0.SchemaMap0](#schemamap0)
output class for Map payloads | | static class | [Schema0.Keyword0](#keyword0)
schema class | @@ -58,10 +58,10 @@ Schema0.SchemaMap0 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap0](#schemamap0) | validate([Map](#schemamapinput0) arg, SchemaConfiguration configuration) | +| [SchemaMap0](#schemamap0) | validate([Map](#schemamapbuilder0) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput0 -public class SchemaMapInput0
+## SchemaMapBuilder0 +public class SchemaMapBuilder0
builder for `Map` A class that builds the Map input type @@ -81,7 +81,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap0](#schemamap0) | of([Map](#schemamapinput0) arg, SchemaConfiguration configuration) | +| static [SchemaMap0](#schemamap0) | of([Map](#schemamapbuilder0) arg, SchemaConfiguration configuration) | | String | keyword()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.md index 7ba780dc5cd..70f04b7a45c 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.RequiredFile](#requiredfile)
schema class | | static class | [Schema.AdditionalMetadata](#additionalmetadata)
schema class | @@ -64,10 +64,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | requiredFile()
| | String | additionalMetadata()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md index 279865a96f9..2bb6ec61bf4 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListInput0](#schemalistinput0)
builder for List payloads | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | | static class | [Schema0.Items0](#items0)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema0.SchemaList0 validatedPayload = Schema0.Schema01.validate( - Arrays.asList( - "a" - ), + new Schema0.SchemaListBuilder0( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -55,18 +57,25 @@ Schema0.SchemaList0 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput0 -public class SchemaListInput0
+## SchemaListBuilder0 +public class SchemaListBuilder0
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList0 public class SchemaList0
@@ -77,7 +86,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md index daa0941f794..e981c5ebefd 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema1.Schema11](#schema11)
schema class | -| static class | [Schema1.SchemaListInput1](#schemalistinput1)
builder for List payloads | +| static class | [Schema1.SchemaListBuilder1](#schemalistbuilder1)
builder for List payloads | | static class | [Schema1.SchemaList1](#schemalist1)
output class for List payloads | | static class | [Schema1.Items1](#items1)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema1.SchemaList1 validatedPayload = Schema1.Schema11.validate( - Arrays.asList( - "a" - ), + new Schema1.SchemaListBuilder1( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -55,18 +57,25 @@ Schema1.SchemaList1 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList1](#schemalist1) | validate([List](#schemalistinput1) arg, SchemaConfiguration configuration) | +| [SchemaList1](#schemalist1) | validate([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput1 -public class SchemaListInput1
+## SchemaListBuilder1 +public class SchemaListBuilder1
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder1()
Creates an empty list | +| SchemaListBuilder1(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder1 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList1 public class SchemaList1
@@ -77,7 +86,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList1](#schemalist1) | of([List](#schemalistinput1) arg, SchemaConfiguration configuration) | +| static [SchemaList1](#schemalist1) | of([List](#schemalistbuilder1) arg, SchemaConfiguration configuration) | ## Items1 public static class Items1
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md index dc9662a76d7..5c0145fde53 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema2.Schema21](#schema21)
schema class | -| static class | [Schema2.SchemaListInput2](#schemalistinput2)
builder for List payloads | +| static class | [Schema2.SchemaListBuilder2](#schemalistbuilder2)
builder for List payloads | | static class | [Schema2.SchemaList2](#schemalist2)
output class for List payloads | | static class | [Schema2.Items2](#items2)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema2.SchemaList2 validatedPayload = Schema2.Schema21.validate( - Arrays.asList( - "a" - ), + new Schema2.SchemaListBuilder2( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -55,18 +57,25 @@ Schema2.SchemaList2 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList2](#schemalist2) | validate([List](#schemalistinput2) arg, SchemaConfiguration configuration) | +| [SchemaList2](#schemalist2) | validate([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput2 -public class SchemaListInput2
+## SchemaListBuilder2 +public class SchemaListBuilder2
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder2()
Creates an empty list | +| SchemaListBuilder2(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder2 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList2 public class SchemaList2
@@ -77,7 +86,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList2](#schemalist2) | of([List](#schemalistinput2) arg, SchemaConfiguration configuration) | +| static [SchemaList2](#schemalist2) | of([List](#schemalistbuilder2) arg, SchemaConfiguration configuration) | ## Items2 public static class Items2
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md index ab71d2d579e..77ef4aeaa56 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema3.Schema31](#schema31)
schema class | -| static class | [Schema3.SchemaListInput3](#schemalistinput3)
builder for List payloads | +| static class | [Schema3.SchemaListBuilder3](#schemalistbuilder3)
builder for List payloads | | static class | [Schema3.SchemaList3](#schemalist3)
output class for List payloads | | static class | [Schema3.Items3](#items3)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema3.SchemaList3 validatedPayload = Schema3.Schema31.validate( - Arrays.asList( - "a" - ), + new Schema3.SchemaListBuilder3( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -55,18 +57,25 @@ Schema3.SchemaList3 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList3](#schemalist3) | validate([List](#schemalistinput3) arg, SchemaConfiguration configuration) | +| [SchemaList3](#schemalist3) | validate([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput3 -public class SchemaListInput3
+## SchemaListBuilder3 +public class SchemaListBuilder3
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder3()
Creates an empty list | +| SchemaListBuilder3(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder3 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList3 public class SchemaList3
@@ -77,7 +86,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList3](#schemalist3) | of([List](#schemalistinput3) arg, SchemaConfiguration configuration) | +| static [SchemaList3](#schemalist3) | of([List](#schemalistbuilder3) arg, SchemaConfiguration configuration) | ## Items3 public static class Items3
diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md index 67484f2a389..c4a2eca23e5 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema4.Schema41](#schema41)
schema class | -| static class | [Schema4.SchemaListInput4](#schemalistinput4)
builder for List payloads | +| static class | [Schema4.SchemaListBuilder4](#schemalistbuilder4)
builder for List payloads | | static class | [Schema4.SchemaList4](#schemalist4)
output class for List payloads | | static class | [Schema4.Items4](#items4)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema4.SchemaList4 validatedPayload = Schema4.Schema41.validate( - Arrays.asList( - "a" - ), + new Schema4.SchemaListBuilder4( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -55,18 +57,25 @@ Schema4.SchemaList4 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList4](#schemalist4) | validate([List](#schemalistinput4) arg, SchemaConfiguration configuration) | +| [SchemaList4](#schemalist4) | validate([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput4 -public class SchemaListInput4
+## SchemaListBuilder4 +public class SchemaListBuilder4
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder4()
Creates an empty list | +| SchemaListBuilder4(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder4 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList4 public class SchemaList4
@@ -77,7 +86,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList4](#schemalist4) | of([List](#schemalistinput4) arg, SchemaConfiguration configuration) | +| static [SchemaList4](#schemalist4) | of([List](#schemalistbuilder4) arg, SchemaConfiguration configuration) | ## Items4 public static class Items4
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.md index 7a28af20f1d..cfdada7dc4e 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.File](#file)
schema class | | static class | [Schema.AdditionalMetadata](#additionalmetadata)
schema class | @@ -64,10 +64,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | file()
| | String | additionalMetadata()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.md index 7bda5b56913..436ba8d1ada 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.md @@ -13,10 +13,10 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.Files](#files)
schema class | -| static class | [Schema.FilesListInput](#fileslistinput)
builder for List payloads | +| static class | [Schema.FilesListBuilder](#fileslistbuilder)
builder for List payloads | | static class | [Schema.FilesList](#fileslist)
output class for List payloads | | static class | [Schema.Items](#items)
schema class | @@ -65,10 +65,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -88,7 +88,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | [FilesList](#fileslist) | files()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | @@ -116,9 +116,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema.FilesList validatedPayload = Schema.Files.validate( - Arrays.asList( - "a" - ), + new .FilesListBuilder( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -132,18 +134,25 @@ Schema.FilesList validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [FilesList](#fileslist) | validate([List](#fileslistinput) arg, SchemaConfiguration configuration) | +| [FilesList](#fileslist) | validate([List](#fileslistbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## FilesListInput -public class FilesListInput
+## FilesListBuilder +public class FilesListBuilder
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| FilesListBuilder()
Creates an empty list | +| FilesListBuilder(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FilesListBuilder | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## FilesList public class FilesList
@@ -154,7 +163,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [FilesList](#fileslist) | of([List](#fileslistinput) arg, SchemaConfiguration configuration) | +| static [FilesList](#fileslist) | of([List](#fileslistbuilder) arg, SchemaConfiguration configuration) | ## Items public static class Items
diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.md index 9b5f7102b8a..bdfbf476779 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | ## Schema1 @@ -62,10 +62,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -85,6 +85,6 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | get(String key)
This schema has invalid Java names so this method must be used when you access instance["string"], | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md index 92b4c71bbde..184a01f97e3 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/parameters/parameter0/Schema0.md @@ -12,7 +12,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListInput0](#schemalistinput0)
builder for List payloads | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | | static class | [Schema0.Items0](#items0)
schema class | | enum | [Schema0.StringItemsEnums0](#stringitemsenums0)
String enum | @@ -41,9 +41,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema0.SchemaList0 validatedPayload = Schema0.Schema01.validate( - Arrays.asList( - "available" - ), + new Schema0.SchemaListBuilder0( + Arrays.asList( + "available" + ) + ).build(), configuration ); ``` @@ -57,18 +59,26 @@ Schema0.SchemaList0 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput0 -public class SchemaListInput0
+## SchemaListBuilder0 +public class SchemaListBuilder0
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | must be one of ["available", "pending", "sold"] if omitted the server will use the default value of available +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| SchemaListBuilder0 | add([StringItemsEnums0](#stringitemsenums0) item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList0 public class SchemaList0
@@ -79,7 +89,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md index 7878b7c0a35..7066ce99783 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/parameters/parameter0/Schema0.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema0.Schema01](#schema01)
schema class | -| static class | [Schema0.SchemaListInput0](#schemalistinput0)
builder for List payloads | +| static class | [Schema0.SchemaListBuilder0](#schemalistbuilder0)
builder for List payloads | | static class | [Schema0.SchemaList0](#schemalist0)
output class for List payloads | | static class | [Schema0.Items0](#items0)
schema class | @@ -39,9 +39,11 @@ static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSch // List validation Schema0.SchemaList0 validatedPayload = Schema0.Schema01.validate( - Arrays.asList( - "a" - ), + new Schema0.SchemaListBuilder0( + Arrays.asList( + "a" + ) + ).build(), configuration ); ``` @@ -55,18 +57,25 @@ Schema0.SchemaList0 validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaList0](#schemalist0) | validate([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| [SchemaList0](#schemalist0) | validate([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaListInput0 -public class SchemaListInput0
+## SchemaListBuilder0 +public class SchemaListBuilder0
builder for `List` A class that builds the List input type -## Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- -String | | +## Constructor Summary +| Constructor and Description | +| --------------------------- | +| SchemaListBuilder0()
Creates an empty list | +| SchemaListBuilder0(List items)
Stores the items in a list | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| SchemaListBuilder0 | add(String item) | +| List | build()
Returns list input that should be used with Schema.validate | ## SchemaList0 public class SchemaList0
@@ -77,7 +86,7 @@ A class to store validated List payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaList0](#schemalist0) | of([List](#schemalistinput0) arg, SchemaConfiguration configuration) | +| static [SchemaList0](#schemalist0) | of([List](#schemalistbuilder0) arg, SchemaConfiguration configuration) | ## Items0 public static class Items0
diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.md index 01adb1eaad1..1040270a6d8 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.Status](#status)
schema class | | static class | [Schema.Name](#name)
schema class | @@ -63,10 +63,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -87,7 +87,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | name()
[optional] | | String | status()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.md index 6552ac459a4..679f519d552 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.md @@ -11,7 +11,7 @@ A class that contains necessary nested | Modifier and Type | Class and Description | | ----------------- | ---------------------- | | static class | [Schema.Schema1](#schema1)
schema class | -| static class | [Schema.SchemaMapInput](#schemamapinput)
builder for Map payloads | +| static class | [Schema.SchemaMapBuilder](#schemamapbuilder)
builder for Map payloads | | static class | [Schema.SchemaMap](#schemamap)
output class for Map payloads | | static class | [Schema.File](#file)
schema class | | static class | [Schema.AdditionalMetadata](#additionalmetadata)
schema class | @@ -63,10 +63,10 @@ Schema.SchemaMap validatedPayload = ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [SchemaMap](#schemamap) | validate([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| [SchemaMap](#schemamap) | validate([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | -## SchemaMapInput -public class SchemaMapInput
+## SchemaMapBuilder +public class SchemaMapBuilder
builder for `Map` A class that builds the Map input type @@ -87,7 +87,7 @@ A class to store validated Map payloads ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| static [SchemaMap](#schemamap) | of([Map](#schemamapinput) arg, SchemaConfiguration configuration) | +| static [SchemaMap](#schemamap) | of([Map](#schemamapbuilder) arg, SchemaConfiguration configuration) | | String | additionalMetadata()
[optional] | | String | file()
[optional] | | Object | getAdditionalProperty(String name)
provides type safety for additional properties | diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/Schema.java index 1cbbdeb7de6..dcab450d7d5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/Schema.java @@ -34,8 +34,26 @@ public static SchemaList of(List> arg, S } } - public static class SchemaListInput { - // class to build List> + public static class SchemaListBuilder { + // class to build List> + private final List> list; + + public SchemaListBuilder() { + list = new ArrayList<>(); + } + + public SchemaListBuilder(List> list) { + this.list = list; + } + + public SchemaListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java index f5f47a75754..91aa1a56629 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/Headers.java @@ -56,7 +56,7 @@ public String location() throws UnsetPropertyException { return getOrThrow("location"); } } - public static class HeadersMapInput { + public static class HeadersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.java index e31e2cc9f25..18661bc7b1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/Schema.java @@ -35,8 +35,26 @@ public static SchemaList of(List> arg, S } } - public static class SchemaListInput { - // class to build List> + public static class SchemaListBuilder { + // class to build List> + private final List> list; + + public SchemaListBuilder() { + list = new ArrayList<>(); + } + + public SchemaListBuilder(List> list) { + this.list = list; + } + + public SchemaListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.java index bd414f235ca..0463bb10ec7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/Schema.java @@ -34,8 +34,26 @@ public static SchemaList of(List> arg, S } } - public static class SchemaListInput { - // class to build List> + public static class SchemaListBuilder { + // class to build List> + private final List> list; + + public SchemaListBuilder() { + list = new ArrayList<>(); + } + + public SchemaListBuilder(List> list) { + this.list = list; + } + + public SchemaListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java index bd2e8915a0c..7b069a666f1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/Headers.java @@ -56,7 +56,7 @@ public String someHeader() throws UnsetPropertyException { return getOrThrow("someHeader"); } } - public static class HeadersMapInput { + public static class HeadersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/Schema.java index a147584ce8f..0622cafaa5e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/Schema.java @@ -37,21 +37,21 @@ public static AdditionalProperties getInstance() { } - public static class SchemaMap extends FrozenMap { - protected SchemaMap(FrozenMap m) { + public static class SchemaMap extends FrozenMap { + protected SchemaMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of(); - public static SchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static SchemaMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Schema1.getInstance().validate(arg, configuration); } - public int getAdditionalProperty(String name) throws UnsetPropertyException { + public Number getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map } @@ -74,7 +74,7 @@ public static Schema1 getInstance() { } public SchemaMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -90,12 +90,12 @@ public SchemaMap getNewInstance(Map arg, List pathToItem, PathToSc } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Integer)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Integer) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new SchemaMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java index e0c24c6ea5c..a0badaf93fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/Headers.java @@ -60,12 +60,12 @@ public static HeadersMap of(Map arg, SchemaC return Headers1.getInstance().validate(arg, configuration); } - public int int32() { + public Number int32() { @Nullable Object value = get("int32"); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int32"); } - return (int) value; + return (Number) value; } public String stringHeader() { @@ -86,7 +86,7 @@ public String numberHeader() throws UnsetPropertyException { return (String) value; } } - public static class HeadersMapInput { + public static class HeadersMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java index 855d345ce80..eeb1f08acfd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessage.java @@ -74,7 +74,7 @@ public String discriminator() { return get(name); } } - public static class AbstractStepMessageMapInput { + public static class AbstractStepMessageMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java index 76b951a70f4..18b42bff98f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClass.java @@ -55,7 +55,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class MapPropertyMapInput { + public static class MapPropertyMapBuilder { // Map } @@ -156,7 +156,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class AdditionalPropertiesMapInput { + public static class AdditionalPropertiesMapBuilder { // Map } @@ -246,7 +246,7 @@ public AdditionalPropertiesMap getAdditionalProperty(String name) throws UnsetPr return getOrThrow(name); } } - public static class MapOfMapPropertyMapInput { + public static class MapOfMapPropertyMapBuilder { // Map } @@ -380,7 +380,7 @@ public static MapWithUndeclaredPropertiesAnytype3Map of(Map because additionalProperties == true } @@ -476,7 +476,7 @@ public static EmptyMapMap of(Map arg, SchemaConfigurat return EmptyMap.getInstance().validate(arg, configuration); } } - public static class EmptyMapMapInput { + public static class EmptyMapMapBuilder { // empty mapping } @@ -574,7 +574,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class MapWithUndeclaredPropertiesStringMapInput { + public static class MapWithUndeclaredPropertiesStringMapBuilder { // Map } @@ -749,7 +749,7 @@ public MapWithUndeclaredPropertiesStringMap map_with_undeclared_properties_strin return get(name); } } - public static class AdditionalPropertiesClassMapInput { + public static class AdditionalPropertiesClassMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java index 946b45eb8ec..f256d71a1f0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchema.java @@ -60,7 +60,7 @@ public static Schema0Map of(Map arg, SchemaC return getOrThrow(name); } } - public static class Schema0MapInput { + public static class Schema0MapBuilder { // Map because additionalProperties == true } @@ -342,7 +342,7 @@ public static Schema1Map of(Map arg, SchemaC return getOrThrow(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map } @@ -624,7 +624,7 @@ public static Schema2Map of(Map arg, SchemaC return getOrThrow(name); } } - public static class Schema2MapInput { + public static class Schema2MapBuilder { // Map } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java index bfe03c3b6cc..0086c8539fe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnums.java @@ -36,8 +36,31 @@ public static AdditionalPropertiesList of(List arg, SchemaConfiguration } } - public static class AdditionalPropertiesListInput { + public static class AdditionalPropertiesListBuilder { // class to build List + private final List list; + + public AdditionalPropertiesListBuilder() { + list = new ArrayList<>(); + } + + public AdditionalPropertiesListBuilder(List list) { + this.list = list; + } + + public AdditionalPropertiesListBuilder add(String item) { + list.add(item); + return this; + } + + public AdditionalPropertiesListBuilder add(EnumClass.StringEnumClassEnums item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } } @@ -125,7 +148,7 @@ public AdditionalPropertiesList getAdditionalProperty(String name) throws UnsetP return (AdditionalPropertiesList) value; } } - public static class AdditionalPropertiesWithArrayOfEnumsMapInput { + public static class AdditionalPropertiesWithArrayOfEnumsMapBuilder { // Map } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java index 7ded70349be..130d8ab6285 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Address.java @@ -37,21 +37,21 @@ public static AdditionalProperties getInstance() { } - public static class AddressMap extends FrozenMap { - protected AddressMap(FrozenMap m) { + public static class AddressMap extends FrozenMap { + protected AddressMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of(); public static final Set optionalKeys = Set.of(); - public static AddressMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static AddressMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return Address1.getInstance().validate(arg, configuration); } - public long getAdditionalProperty(String name) throws UnsetPropertyException { + public Number getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class AddressMapInput { + public static class AddressMapBuilder { // Map } @@ -80,7 +80,7 @@ public static Address1 getInstance() { } public AddressMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -96,12 +96,12 @@ public AddressMap getNewInstance(Map arg, List pathToItem, PathToS } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new AddressMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java index 84b0d13602b..80ddfab9134 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Animal.java @@ -122,7 +122,7 @@ public String color() throws UnsetPropertyException { return get(name); } } - public static class AnimalMapInput { + public static class AnimalMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java index 571a49ed000..1ca927203a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnimalFarm.java @@ -33,8 +33,26 @@ public static AnimalFarmList of(List> ar } } - public static class AnimalFarmListInput { - // class to build List> + public static class AnimalFarmListBuilder { + // class to build List> + private final List> list; + + public AnimalFarmListBuilder() { + list = new ArrayList<>(); + } + + public AnimalFarmListBuilder(List> list) { + this.list = list; + } + + public AnimalFarmListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java index 5042a47c7a0..908348c8e3e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormat.java @@ -1832,7 +1832,7 @@ public static AnyTypeAndFormatMap of(Map arg return get(name); } } - public static class AnyTypeAndFormatMapInput { + public static class AnyTypeAndFormatMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java index 37eab64adc8..2f461665a52 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchema.java @@ -75,14 +75,14 @@ public static ApiResponseMap of(Map arg, Sch return ApiResponseSchema1.getInstance().validate(arg, configuration); } - public int code() throws UnsetPropertyException { + public Number code() throws UnsetPropertyException { String key = "code"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for code"); } - return (int) value; + return (Number) value; } public String type() throws UnsetPropertyException { @@ -111,7 +111,7 @@ public String message() throws UnsetPropertyException { return get(name); } } - public static class ApiResponseMapInput { + public static class ApiResponseMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java index 3a676763773..2831f8d2171 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Apple.java @@ -164,7 +164,7 @@ public String origin() throws UnsetPropertyException { return get(name); } } - public static class AppleMapInput { + public static class AppleMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java index 18826e725f8..977246f023d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AppleReq.java @@ -95,7 +95,7 @@ public boolean mealy() throws UnsetPropertyException { return (boolean) value; } } - public static class AppleReqMapInput { + public static class AppleReqMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java index c82c13f6344..0ff99e41055 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyType.java @@ -4,6 +4,7 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; @@ -43,8 +44,66 @@ public static ArrayHoldingAnyTypeList of(List arg, S } } - public static class ArrayHoldingAnyTypeListInput { - // class to build List + public static class ArrayHoldingAnyTypeListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public ArrayHoldingAnyTypeListBuilder() { + list = new ArrayList<>(); + } + + public ArrayHoldingAnyTypeListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public ArrayHoldingAnyTypeListBuilder add(Void item) { + list.add(null); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(boolean item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(String item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(int item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(float item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(long item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(double item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(List item) { + list.add(item); + return this; + } + + public ArrayHoldingAnyTypeListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java index e43dd9d5c75..89d7bb04ee4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnly.java @@ -49,8 +49,41 @@ public static ItemsList of(List arg, SchemaConfiguration configuration) } } - public static class ItemsListInput { + public static class ItemsListBuilder { // class to build List + private final List list; + + public ItemsListBuilder() { + list = new ArrayList<>(); + } + + public ItemsListBuilder(List list) { + this.list = list; + } + + public ItemsListBuilder add(int item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(float item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(long item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(double item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -129,8 +162,26 @@ public static ArrayArrayNumberList of(List> arg, SchemaConfiguratio } } - public static class ArrayArrayNumberListInput { + public static class ArrayArrayNumberListBuilder { // class to build List> + private final List> list; + + public ArrayArrayNumberListBuilder() { + list = new ArrayList<>(); + } + + public ArrayArrayNumberListBuilder(List> list) { + this.list = list; + } + + public ArrayArrayNumberListBuilder add(List item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -228,7 +279,7 @@ public ArrayArrayNumberList ArrayArrayNumber() throws UnsetPropertyException { return get(name); } } - public static class ArrayOfArrayOfNumberOnlyMapInput { + public static class ArrayOfArrayOfNumberOnlyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java index 05c9408cf69..5ccf40cdeb9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnums.java @@ -31,8 +31,41 @@ public static ArrayOfEnumsList of(List arg, SchemaCo } } - public static class ArrayOfEnumsListInput { - // class to build List + public static class ArrayOfEnumsListBuilder { + // class to build List<@Nullable String> + private final List<@Nullable String> list; + + public ArrayOfEnumsListBuilder() { + list = new ArrayList<>(); + } + + public ArrayOfEnumsListBuilder(List<@Nullable String> list) { + this.list = list; + } + + public ArrayOfEnumsListBuilder add(Void item) { + list.add(null); + return this; + } + + public ArrayOfEnumsListBuilder add(String item) { + list.add(item); + return this; + } + + public ArrayOfEnumsListBuilder add(StringEnum.StringStringEnumEnums item) { + list.add(item.value()); + return this; + } + + public ArrayOfEnumsListBuilder add(StringEnum.NullStringEnumEnums item) { + list.add(null); + return this; + } + + public List<@Nullable String> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java index ae738d70429..8faddceae64 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnly.java @@ -49,8 +49,41 @@ public static ArrayNumberList of(List arg, SchemaConfiguration configura } } - public static class ArrayNumberListInput { + public static class ArrayNumberListBuilder { // class to build List + private final List list; + + public ArrayNumberListBuilder() { + list = new ArrayList<>(); + } + + public ArrayNumberListBuilder(List list) { + this.list = list; + } + + public ArrayNumberListBuilder add(int item) { + list.add(item); + return this; + } + + public ArrayNumberListBuilder add(float item) { + list.add(item); + return this; + } + + public ArrayNumberListBuilder add(long item) { + list.add(item); + return this; + } + + public ArrayNumberListBuilder add(double item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -148,7 +181,7 @@ public ArrayNumberList ArrayNumber() throws UnsetPropertyException { return get(name); } } - public static class ArrayOfNumberOnlyMapInput { + public static class ArrayOfNumberOnlyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java index b378a1d39ca..c017d9d4c57 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayTest.java @@ -50,8 +50,26 @@ public static ArrayOfStringList of(List arg, SchemaConfiguration configu } } - public static class ArrayOfStringListInput { + public static class ArrayOfStringListBuilder { // class to build List + private final List list; + + public ArrayOfStringListBuilder() { + list = new ArrayList<>(); + } + + public ArrayOfStringListBuilder(List list) { + this.list = list; + } + + public ArrayOfStringListBuilder add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -132,17 +150,50 @@ public static Items2 getInstance() { } - public static class ItemsList extends FrozenList { - protected ItemsList(FrozenList m) { + public static class ItemsList extends FrozenList { + protected ItemsList(FrozenList m) { super(m); } - public static ItemsList of(List arg, SchemaConfiguration configuration) throws ValidationException { + public static ItemsList of(List arg, SchemaConfiguration configuration) throws ValidationException { return Items1.getInstance().validate(arg, configuration); } } - public static class ItemsListInput { - // class to build List + public static class ItemsListBuilder { + // class to build List + private final List list; + + public ItemsListBuilder() { + list = new ArrayList<>(); + } + + public ItemsListBuilder(List list) { + this.list = list; + } + + public ItemsListBuilder add(int item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(float item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(long item) { + list.add(item); + return this; + } + + public ItemsListBuilder add(double item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -165,7 +216,7 @@ public static Items1 getInstance() { @Override public ItemsList getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); + List items = new ArrayList<>(); int i = 0; for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); @@ -176,13 +227,13 @@ public ItemsList getNewInstance(List arg, List pathToItem, PathToSche } JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof Long)) { + if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - items.add((Long) itemInstance); + items.add((Number) itemInstance); i += 1; } - FrozenList newInstanceItems = new FrozenList<>(items); + FrozenList newInstanceItems = new FrozenList<>(items); return new ItemsList(newInstanceItems); } @@ -216,13 +267,31 @@ public static class ArrayArrayOfIntegerList extends FrozenList { protected ArrayArrayOfIntegerList(FrozenList m) { super(m); } - public static ArrayArrayOfIntegerList of(List> arg, SchemaConfiguration configuration) throws ValidationException { + public static ArrayArrayOfIntegerList of(List> arg, SchemaConfiguration configuration) throws ValidationException { return ArrayArrayOfInteger.getInstance().validate(arg, configuration); } } - public static class ArrayArrayOfIntegerListInput { - // class to build List> + public static class ArrayArrayOfIntegerListBuilder { + // class to build List> + private final List> list; + + public ArrayArrayOfIntegerListBuilder() { + list = new ArrayList<>(); + } + + public ArrayArrayOfIntegerListBuilder(List> list) { + this.list = list; + } + + public ArrayArrayOfIntegerListBuilder add(List item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -301,8 +370,26 @@ public static ItemsList1 of(List> arg, S } } - public static class ItemsListInput1 { - // class to build List> + public static class ItemsListBuilder1 { + // class to build List> + private final List> list; + + public ItemsListBuilder1() { + list = new ArrayList<>(); + } + + public ItemsListBuilder1(List> list) { + this.list = list; + } + + public ItemsListBuilder1 add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -381,8 +468,26 @@ public static ArrayArrayOfModelList of(List>> + public static class ArrayArrayOfModelListBuilder { + // class to build List>> + private final List>> list; + + public ArrayArrayOfModelListBuilder() { + list = new ArrayList<>(); + } + + public ArrayArrayOfModelListBuilder(List>> list) { + this.list = list; + } + + public ArrayArrayOfModelListBuilder add(List> item) { + list.add(item); + return this; + } + + public List>> build() { + return list; + } } @@ -502,7 +607,7 @@ public ArrayArrayOfModelList array_array_of_model() throws UnsetPropertyExceptio return get(name); } } - public static class ArrayTestMapInput { + public static class ArrayTestMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java index 10e82c9163b..9e0c7d32db5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItems.java @@ -89,17 +89,50 @@ public double validate(double arg, SchemaConfiguration configuration) throws Val } } - public static class ArrayWithValidationsInItemsList extends FrozenList { - protected ArrayWithValidationsInItemsList(FrozenList m) { + public static class ArrayWithValidationsInItemsList extends FrozenList { + protected ArrayWithValidationsInItemsList(FrozenList m) { super(m); } - public static ArrayWithValidationsInItemsList of(List arg, SchemaConfiguration configuration) throws ValidationException { + public static ArrayWithValidationsInItemsList of(List arg, SchemaConfiguration configuration) throws ValidationException { return ArrayWithValidationsInItems1.getInstance().validate(arg, configuration); } } - public static class ArrayWithValidationsInItemsListInput { - // class to build List + public static class ArrayWithValidationsInItemsListBuilder { + // class to build List + private final List list; + + public ArrayWithValidationsInItemsListBuilder() { + list = new ArrayList<>(); + } + + public ArrayWithValidationsInItemsListBuilder(List list) { + this.list = list; + } + + public ArrayWithValidationsInItemsListBuilder add(int item) { + list.add(item); + return this; + } + + public ArrayWithValidationsInItemsListBuilder add(float item) { + list.add(item); + return this; + } + + public ArrayWithValidationsInItemsListBuilder add(long item) { + list.add(item); + return this; + } + + public ArrayWithValidationsInItemsListBuilder add(double item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -129,7 +162,7 @@ public static ArrayWithValidationsInItems1 getInstance() { @Override public ArrayWithValidationsInItemsList getNewInstance(List arg, List pathToItem, PathToSchemasMap pathToSchemas) { - List items = new ArrayList<>(); + List items = new ArrayList<>(); int i = 0; for (Object item: arg) { List itemPathToItem = new ArrayList<>(pathToItem); @@ -140,13 +173,13 @@ public ArrayWithValidationsInItemsList getNewInstance(List arg, List } JsonSchema itemSchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object itemInstance = itemSchema.getNewInstance(item, itemPathToItem, pathToSchemas); - if (!(itemInstance instanceof Long)) { + if (!(itemInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - items.add((Long) itemInstance); + items.add((Number) itemInstance); i += 1; } - FrozenList newInstanceItems = new FrozenList<>(items); + FrozenList newInstanceItems = new FrozenList<>(items); return new ArrayWithValidationsInItemsList(newInstanceItems); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java index 6767d7e6f6d..f34ab2e957f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Banana.java @@ -64,7 +64,7 @@ public Number lengthCm() { return get(name); } } - public static class BananaMapInput { + public static class BananaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java index 1ecb9e8993d..30033273ea9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BananaReq.java @@ -95,7 +95,7 @@ public boolean sweet() throws UnsetPropertyException { return (boolean) value; } } - public static class BananaReqMapInput { + public static class BananaReqMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java index 09856b01953..08b53c8b3a9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BasquePig.java @@ -121,7 +121,7 @@ public String className() { return get(name); } } - public static class BasquePigMapInput { + public static class BasquePigMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java index a37c47835e8..9be82378b6e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Capitalization.java @@ -176,7 +176,7 @@ public String ATT_NAME() throws UnsetPropertyException { return get(name); } } - public static class CapitalizationMapInput { + public static class CapitalizationMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java index 3c4273b5008..ec0a87beca0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Cat.java @@ -75,7 +75,7 @@ public boolean declawed() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java index fac1e997880..165366b16bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Category.java @@ -106,14 +106,14 @@ public String name() { return (String) value; } - public long id() throws UnsetPropertyException { + public Number id() throws UnsetPropertyException { String key = "id"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for id"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -122,7 +122,7 @@ public long id() throws UnsetPropertyException { return get(name); } } - public static class CategoryMapInput { + public static class CategoryMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java index c89956f1411..9ef2a7d2dd0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ChildCat.java @@ -75,7 +75,7 @@ public String name() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java index cfbc3a2ad21..7b4aa89080b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ClassModel.java @@ -65,7 +65,7 @@ public static ClassModelMap of(Map arg, Sche return get(name); } } - public static class ClassModelMapInput { + public static class ClassModelMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java index 518342ad01a..acb3381ee4c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Client.java @@ -66,7 +66,7 @@ public String client() throws UnsetPropertyException { return get(name); } } - public static class ClientMapInput { + public static class ClientMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java index 9d651dafec9..87368106469 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateral.java @@ -131,7 +131,7 @@ public String quadrilateralType() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java index 84c2cb8a3e2..4469fa0add2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidations.java @@ -167,8 +167,66 @@ public static Schema9List of(List arg, SchemaConfigu } } - public static class Schema9ListInput { - // class to build List + public static class Schema9ListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public Schema9ListBuilder() { + list = new ArrayList<>(); + } + + public Schema9ListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public Schema9ListBuilder add(Void item) { + list.add(null); + return this; + } + + public Schema9ListBuilder add(boolean item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(String item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(int item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(float item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(long item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(double item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(List item) { + list.add(item); + return this; + } + + public Schema9ListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java index 6287886608a..3f3d599a35c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedArray.java @@ -4,6 +4,7 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; @@ -43,8 +44,66 @@ public static ComposedArrayList of(List arg, SchemaC } } - public static class ComposedArrayListInput { - // class to build List + public static class ComposedArrayListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public ComposedArrayListBuilder() { + list = new ArrayList<>(); + } + + public ComposedArrayListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public ComposedArrayListBuilder add(Void item) { + list.add(null); + return this; + } + + public ComposedArrayListBuilder add(boolean item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(String item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(int item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(float item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(long item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(double item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(List item) { + list.add(item); + return this; + } + + public ComposedArrayListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java index 6ef625af42d..6461fed0270 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypes.java @@ -149,8 +149,66 @@ public static Schema5List of(List arg, SchemaConfigu } } - public static class Schema5ListInput { - // class to build List + public static class Schema5ListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public Schema5ListBuilder() { + list = new ArrayList<>(); + } + + public Schema5ListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public Schema5ListBuilder add(Void item) { + list.add(null); + return this; + } + + public Schema5ListBuilder add(boolean item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(String item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(int item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(float item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(long item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(double item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(List item) { + list.add(item); + return this; + } + + public Schema5ListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java index b5f95f9b942..0e44fe68a5b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DanishPig.java @@ -121,7 +121,7 @@ public String className() { return get(name); } } - public static class DanishPigMapInput { + public static class DanishPigMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java index 8993646cca4..ab6e1381e4a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Dog.java @@ -75,7 +75,7 @@ public String breed() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java index 1259edc2e76..3afb7dc3846 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Drawing.java @@ -37,8 +37,66 @@ public static ShapesList of(List arg, SchemaConfigur } } - public static class ShapesListInput { - // class to build List + public static class ShapesListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public ShapesListBuilder() { + list = new ArrayList<>(); + } + + public ShapesListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public ShapesListBuilder add(Void item) { + list.add(null); + return this; + } + + public ShapesListBuilder add(boolean item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(String item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(int item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(float item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(long item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(double item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(List item) { + list.add(item); + return this; + } + + public ShapesListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } @@ -172,7 +230,7 @@ public ShapesList shapes() throws UnsetPropertyException { return (@Nullable Object) value; } } - public static class DrawingMapInput { + public static class DrawingMapBuilder { // optionalProperties + additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java index 1940d789e32..751c7975837 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumArrays.java @@ -175,8 +175,31 @@ public static ArrayEnumList of(List arg, SchemaConfiguration configurati } } - public static class ArrayEnumListInput { + public static class ArrayEnumListBuilder { // class to build List + private final List list; + + public ArrayEnumListBuilder() { + list = new ArrayList<>(); + } + + public ArrayEnumListBuilder(List list) { + this.list = list; + } + + public ArrayEnumListBuilder add(String item) { + list.add(item); + return this; + } + + public ArrayEnumListBuilder add(StringItemsEnums item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } } @@ -285,7 +308,7 @@ public ArrayEnumList array_enum() throws UnsetPropertyException { return get(name); } } - public static class EnumArraysMapInput { + public static class EnumArraysMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java index c15408d21de..96fa4a4d3d8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumTest.java @@ -442,24 +442,24 @@ public String enum_string() throws UnsetPropertyException { return (String) value; } - public int enum_integer() throws UnsetPropertyException { + public Number enum_integer() throws UnsetPropertyException { String key = "enum_integer"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for enum_integer"); } - return (int) value; + return (Number) value; } - public double enum_number() throws UnsetPropertyException { + public Number enum_number() throws UnsetPropertyException { String key = "enum_number"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Double)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for enum_number"); } - return (double) value; + return (Number) value; } public @Nullable String stringEnum() throws UnsetPropertyException { @@ -472,14 +472,14 @@ public double enum_number() throws UnsetPropertyException { return (@Nullable String) value; } - public long IntegerEnum() throws UnsetPropertyException { + public Number IntegerEnum() throws UnsetPropertyException { String key = "IntegerEnum"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for IntegerEnum"); } - return (long) value; + return (Number) value; } public String StringEnumWithDefaultValue() throws UnsetPropertyException { @@ -492,24 +492,24 @@ public String StringEnumWithDefaultValue() throws UnsetPropertyException { return (String) value; } - public long IntegerEnumWithDefaultValue() throws UnsetPropertyException { + public Number IntegerEnumWithDefaultValue() throws UnsetPropertyException { String key = "IntegerEnumWithDefaultValue"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for IntegerEnumWithDefaultValue"); } - return (long) value; + return (Number) value; } - public long IntegerEnumOneValue() throws UnsetPropertyException { + public Number IntegerEnumOneValue() throws UnsetPropertyException { String key = "IntegerEnumOneValue"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for IntegerEnumOneValue"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -518,7 +518,7 @@ public long IntegerEnumOneValue() throws UnsetPropertyException { return get(name); } } - public static class EnumTestMapInput { + public static class EnumTestMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java index faa94d9c85d..ea929874e89 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangle.java @@ -131,7 +131,7 @@ public String triangleType() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java index e043218976e..6a99df13b37 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/File.java @@ -66,7 +66,7 @@ public String sourceURI() throws UnsetPropertyException { return get(name); } } - public static class FileMapInput { + public static class FileMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java index 03d21ddef5e..153b9a69e5f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClass.java @@ -37,8 +37,26 @@ public static FilesList of(List> arg, Sc } } - public static class FilesListInput { - // class to build List> + public static class FilesListBuilder { + // class to build List> + private final List> list; + + public FilesListBuilder() { + list = new ArrayList<>(); + } + + public FilesListBuilder(List> list) { + this.list = list; + } + + public FilesListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -147,7 +165,7 @@ public FilesList files() throws UnsetPropertyException { return get(name); } } - public static class FileSchemaTestClassMapInput { + public static class FileSchemaTestClassMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java index 70af3da7302..2033560a35d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Foo.java @@ -54,7 +54,7 @@ public String bar() throws UnsetPropertyException { return get(name); } } - public static class FooMapInput { + public static class FooMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java index 66838ce30c8..5c918a20b94 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FormatTest.java @@ -407,8 +407,41 @@ public static ArrayWithUniqueItemsList of(List arg, SchemaConfiguration } } - public static class ArrayWithUniqueItemsListInput { + public static class ArrayWithUniqueItemsListBuilder { // class to build List + private final List list; + + public ArrayWithUniqueItemsListBuilder() { + list = new ArrayList<>(); + } + + public ArrayWithUniqueItemsListBuilder(List list) { + this.list = list; + } + + public ArrayWithUniqueItemsListBuilder add(int item) { + list.add(item); + return this; + } + + public ArrayWithUniqueItemsListBuilder add(float item) { + list.add(item); + return this; + } + + public ArrayWithUniqueItemsListBuilder add(long item) { + list.add(item); + return this; + } + + public ArrayWithUniqueItemsListBuilder add(double item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -800,54 +833,54 @@ public String password() { return (String) value; } - public int int32() throws UnsetPropertyException { + public Number int32() throws UnsetPropertyException { String key = "int32"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int32"); } - return (int) value; + return (Number) value; } - public int int32withValidations() throws UnsetPropertyException { + public Number int32withValidations() throws UnsetPropertyException { String key = "int32withValidations"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int32withValidations"); } - return (int) value; + return (Number) value; } - public long int64() throws UnsetPropertyException { + public Number int64() throws UnsetPropertyException { String key = "int64"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int64"); } - return (long) value; + return (Number) value; } - public float float32() throws UnsetPropertyException { + public Number float32() throws UnsetPropertyException { String key = "float32"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Float)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for float32"); } - return (float) value; + return (Number) value; } - public double float64() throws UnsetPropertyException { + public Number float64() throws UnsetPropertyException { String key = "float64"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Double)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for float64"); } - return (double) value; + return (Number) value; } public ArrayWithUniqueItemsList arrayWithUniqueItems() throws UnsetPropertyException { @@ -926,7 +959,7 @@ public Void noneProp() throws UnsetPropertyException { return get(name); } } - public static class FormatTestMapInput { + public static class FormatTestMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java index 499996489e1..4edd3954edb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FromSchema.java @@ -73,14 +73,14 @@ public String data() throws UnsetPropertyException { return (String) value; } - public long id() throws UnsetPropertyException { + public Number id() throws UnsetPropertyException { String key = "id"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for id"); } - return (long) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -89,7 +89,7 @@ public long id() throws UnsetPropertyException { return get(name); } } - public static class FromSchemaMapInput { + public static class FromSchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java index a83517ed39d..a6cd2471fe5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Fruit.java @@ -75,7 +75,7 @@ public String color() throws UnsetPropertyException { return get(name); } } - public static class FruitMapInput { + public static class FruitMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java index f45f2e73efd..e8187eb0a00 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GmFruit.java @@ -75,7 +75,7 @@ public String color() throws UnsetPropertyException { return get(name); } } - public static class GmFruitMapInput { + public static class GmFruitMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java index 80605ca26ed..ba8066e92eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimal.java @@ -64,7 +64,7 @@ public String pet_type() { return get(name); } } - public static class GrandparentAnimalMapInput { + public static class GrandparentAnimalMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java index 21c8f52c921..f569b3d2e76 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnly.java @@ -88,7 +88,7 @@ public String foo() throws UnsetPropertyException { return get(name); } } - public static class HasOnlyReadOnlyMapInput { + public static class HasOnlyReadOnlyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java index cc2b3611259..b6e6193b5fe 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/HealthCheckResult.java @@ -117,7 +117,7 @@ public static HealthCheckResultMap of(Map ar return get(name); } } - public static class HealthCheckResultMapInput { + public static class HealthCheckResultMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java index 06ac48cfa72..2bc0679d72a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangle.java @@ -131,7 +131,7 @@ public String triangleType() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java index a4a7184596a..86725027a7c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Items.java @@ -45,8 +45,26 @@ public static ItemsList of(List> arg, Sc } } - public static class ItemsListInput { - // class to build List> + public static class ItemsListBuilder { + // class to build List> + private final List> list; + + public ItemsListBuilder() { + list = new ArrayList<>(); + } + + public ItemsListBuilder(List> list) { + this.list = list; + } + + public ItemsListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java index 5e36088aa4f..e71b7258f47 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequest.java @@ -242,8 +242,66 @@ public static JSONPatchRequestList of(List arg, Sche } } - public static class JSONPatchRequestListInput { - // class to build List + public static class JSONPatchRequestListBuilder { + // class to build List<@Nullable Object> + private final List<@Nullable Object> list; + + public JSONPatchRequestListBuilder() { + list = new ArrayList<>(); + } + + public JSONPatchRequestListBuilder(List<@Nullable Object> list) { + this.list = list; + } + + public JSONPatchRequestListBuilder add(Void item) { + list.add(null); + return this; + } + + public JSONPatchRequestListBuilder add(boolean item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(String item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(int item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(float item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(long item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(double item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(List item) { + list.add(item); + return this; + } + + public JSONPatchRequestListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Object> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java index b5f32f7d72c..66b0bda87a2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTest.java @@ -169,7 +169,7 @@ public String path() { return getOrThrow("value"); } } - public static class JSONPatchRequestAddReplaceTestMapInput { + public static class JSONPatchRequestAddReplaceTestMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java index 53e901b2eaa..3b8774486a7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopy.java @@ -163,7 +163,7 @@ public String path() { return getOrThrow("path"); } } - public static class JSONPatchRequestMoveCopyMapInput { + public static class JSONPatchRequestMoveCopyMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java index 631bff526a1..0122357a537 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemove.java @@ -145,7 +145,7 @@ public String path() { return getOrThrow("path"); } } - public static class JSONPatchRequestRemoveMapInput { + public static class JSONPatchRequestRemoveMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java index f916e7575b4..67c5d653520 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MapTest.java @@ -57,7 +57,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class AdditionalPropertiesMapInput { + public static class AdditionalPropertiesMapBuilder { // Map } @@ -147,7 +147,7 @@ public AdditionalPropertiesMap getAdditionalProperty(String name) throws UnsetPr return getOrThrow(name); } } - public static class MapMapOfStringMapInput { + public static class MapMapOfStringMapBuilder { // Map } @@ -304,7 +304,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class MapOfEnumStringMapInput { + public static class MapOfEnumStringMapBuilder { // Map } @@ -410,7 +410,7 @@ public boolean getAdditionalProperty(String name) throws UnsetPropertyException return (boolean) value; } } - public static class DirectMapMapInput { + public static class DirectMapMapBuilder { // Map } @@ -547,7 +547,7 @@ public StringBooleanMap.StringBooleanMapMap indirect_map() throws UnsetPropertyE return get(name); } } - public static class MapTestMapInput { + public static class MapTestMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java index fa4d4a81b4c..39fe84c0678 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public Animal.AnimalMap getAdditionalProperty(String name) throws UnsetPropertyE return getOrThrow(name); } } - public static class MapMapInput { + public static class MapMapBuilder { // Map } @@ -170,7 +170,7 @@ public String dateTime() throws UnsetPropertyException { return get(name); } } - public static class MixedPropertiesAndAdditionalPropertiesClassMapInput { + public static class MixedPropertiesAndAdditionalPropertiesClassMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java index 4ead8dbcd7e..629698dc53f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Money.java @@ -80,7 +80,7 @@ public String currency() { return (String) value; } } - public static class MoneyMapInput { + public static class MoneyMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java index 3220b46d0c7..e2ac2ebd307 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/MyObjectDto.java @@ -67,7 +67,7 @@ public String id() throws UnsetPropertyException { return getOrThrow("id"); } } - public static class MyObjectDtoMapInput { + public static class MyObjectDtoMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java index 4b4eebf572d..32238727012 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Name.java @@ -85,22 +85,22 @@ public static NameMap of(Map arg, SchemaConf return Name1.getInstance().validate(arg, configuration); } - public int name() { + public Number name() { @Nullable Object value = get("name"); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for name"); } - return (int) value; + return (Number) value; } - public int snake_case() throws UnsetPropertyException { + public Number snake_case() throws UnsetPropertyException { String key = "snake_case"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for snake_case"); } - return (int) value; + return (Number) value; } public String property() throws UnsetPropertyException { @@ -119,7 +119,7 @@ public String property() throws UnsetPropertyException { return get(name); } } - public static class NameMapInput { + public static class NameMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java index 41f70d62cac..e1e96736060 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NoAdditionalProperties.java @@ -62,8 +62,8 @@ public static PetId getInstance() { } - public static class NoAdditionalPropertiesMap extends FrozenMap { - protected NoAdditionalPropertiesMap(FrozenMap m) { + public static class NoAdditionalPropertiesMap extends FrozenMap { + protected NoAdditionalPropertiesMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( @@ -72,19 +72,19 @@ protected NoAdditionalPropertiesMap(FrozenMap m) { public static final Set optionalKeys = Set.of( "petId" ); - public static NoAdditionalPropertiesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static NoAdditionalPropertiesMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return NoAdditionalProperties1.getInstance().validate(arg, configuration); } - public long id() { + public Number id() { return getOrThrow("id"); } - public long petId() throws UnsetPropertyException { + public Number petId() throws UnsetPropertyException { return getOrThrow("petId"); } } - public static class NoAdditionalPropertiesMapInput { + public static class NoAdditionalPropertiesMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } @@ -120,7 +120,7 @@ public static NoAdditionalProperties1 getInstance() { } public NoAdditionalPropertiesMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -136,12 +136,12 @@ public NoAdditionalPropertiesMap getNewInstance(Map arg, List path } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new NoAdditionalPropertiesMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java index fd27561fa48..d4574ea59d8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableClass.java @@ -547,8 +547,26 @@ public static ArrayNullablePropList of(List> + public static class ArrayNullablePropListBuilder { + // class to build List> + private final List> list; + + public ArrayNullablePropListBuilder() { + list = new ArrayList<>(); + } + + public ArrayNullablePropListBuilder(List> list) { + this.list = list; + } + + public ArrayNullablePropListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -729,8 +747,31 @@ public static ArrayAndItemsNullablePropList of(List> + public static class ArrayAndItemsNullablePropListBuilder { + // class to build List<@Nullable Map> + private final List<@Nullable Map> list; + + public ArrayAndItemsNullablePropListBuilder() { + list = new ArrayList<>(); + } + + public ArrayAndItemsNullablePropListBuilder(List<@Nullable Map> list) { + this.list = list; + } + + public ArrayAndItemsNullablePropListBuilder add(Void item) { + list.add(null); + return this; + } + + public ArrayAndItemsNullablePropListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Map> build() { + return list; + } } @@ -911,8 +952,31 @@ public static ArrayItemsNullableList of(List> + public static class ArrayItemsNullableListBuilder { + // class to build List<@Nullable Map> + private final List<@Nullable Map> list; + + public ArrayItemsNullableListBuilder() { + list = new ArrayList<>(); + } + + public ArrayItemsNullableListBuilder(List<@Nullable Map> list) { + this.list = list; + } + + public ArrayItemsNullableListBuilder add(Void item) { + list.add(null); + return this; + } + + public ArrayItemsNullableListBuilder add(Map item) { + list.add(item); + return this; + } + + public List<@Nullable Map> build() { + return list; + } } @@ -1007,7 +1071,7 @@ public FrozenMap getAdditionalProperty(String name) throws UnsetPropertyExcep return getOrThrow(name); } } - public static class ObjectNullablePropMapInput { + public static class ObjectNullablePropMapBuilder { // Map } @@ -1198,7 +1262,7 @@ public static ObjectAndItemsNullablePropMap of(Map } @@ -1389,7 +1453,7 @@ public static ObjectItemsNullableMap of(Map } @@ -1488,14 +1552,14 @@ public static NullableClassMap of(Map arg, S return NullableClass1.getInstance().validate(arg, configuration); } - public @Nullable Long integer_prop() throws UnsetPropertyException { + public @Nullable Number integer_prop() throws UnsetPropertyException { String key = "integer_prop"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value == null || value instanceof Long)) { + if (!(value == null || value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for integer_prop"); } - return (@Nullable Long) value; + return (@Nullable Number) value; } public @Nullable Number number_prop() throws UnsetPropertyException { @@ -1617,7 +1681,7 @@ public ObjectItemsNullableMap object_items_nullable() throws UnsetPropertyExcept return (@Nullable FrozenMap) value; } } - public static class NullableClassMapInput { + public static class NullableClassMapBuilder { // optionalProperties + additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java index e610f644e1f..ce42ee4739d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableString.java @@ -2,6 +2,7 @@ import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java index 881ef39febc..9bcd54b7f88 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberOnly.java @@ -66,7 +66,7 @@ public Number JustNumber() throws UnsetPropertyException { return get(name); } } - public static class NumberOnlyMapInput { + public static class NumberOnlyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java index d650ec7deed..1869adb78eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredProps.java @@ -64,7 +64,7 @@ public String a() { return get(name); } } - public static class ObjWithRequiredPropsMapInput { + public static class ObjWithRequiredPropsMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java index 60cd26e2398..3ced4879a1a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBase.java @@ -64,7 +64,7 @@ public String b() { return get(name); } } - public static class ObjWithRequiredPropsBaseMapInput { + public static class ObjWithRequiredPropsBaseMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java index 1c8d243b7df..6dc28975093 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsProperties.java @@ -84,7 +84,7 @@ public String args() { return get(name); } } - public static class ObjectModelWithArgAndArgsPropertiesMapInput { + public static class ObjectModelWithArgAndArgsPropertiesMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java index dd8661466f8..9b7c613ed1f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefProps.java @@ -76,7 +76,7 @@ public boolean myBoolean() throws UnsetPropertyException { return get(name); } } - public static class ObjectModelWithRefPropsMapInput { + public static class ObjectModelWithRefPropsMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java index eb1a7f20f4e..c0f5a02584c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.java @@ -81,7 +81,7 @@ public String name() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java index bf7996919e2..688bf26c7d1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingProperties.java @@ -88,7 +88,7 @@ public FrozenMap someprop() throws UnsetPropertyException { return get(name); } } - public static class ObjectWithCollidingPropertiesMapInput { + public static class ObjectWithCollidingPropertiesMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java index 61973fe5276..e2fc3d95071 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalProperties.java @@ -88,7 +88,7 @@ public Money.MoneyMap cost() throws UnsetPropertyException { return get(name); } } - public static class ObjectWithDecimalPropertiesMapInput { + public static class ObjectWithDecimalPropertiesMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java index 1038bfb8718..a37602711fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedProps.java @@ -83,7 +83,7 @@ public static ObjectWithDifficultlyNamedPropsMap of(Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java index a05d2129513..4c50f829f27 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionProperty.java @@ -300,7 +300,7 @@ public static ObjectWithInlineCompositionPropertyMap of(Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java index 431eb33ee7f..5347517eb28 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedProperties.java @@ -53,7 +53,7 @@ public FromSchema.FromSchemaMap from() { return get(name); } } - public static class ObjectWithInvalidNamedRefedPropertiesMapInput { + public static class ObjectWithInvalidNamedRefedPropertiesMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java index 9898c8f7c60..9f828ffc6de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValues.java @@ -81,7 +81,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException, return (String) value; } } - public static class ObjectWithNonIntersectingValuesMapInput { + public static class ObjectWithNonIntersectingValuesMapBuilder { // optionalProperties + additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java index d42816f7d19..f1aa8a241ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalProps.java @@ -96,7 +96,7 @@ public Number b() throws UnsetPropertyException { return (Number) value; } } - public static class ObjectWithOnlyOptionalPropsMapInput { + public static class ObjectWithOnlyOptionalPropsMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java index 507f925b840..bdca781cfae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestProp.java @@ -66,7 +66,7 @@ public String test() throws UnsetPropertyException { return get(name); } } - public static class ObjectWithOptionalTestPropMapInput { + public static class ObjectWithOptionalTestPropMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java index d905025ec5c..3e5279410cc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Order.java @@ -175,34 +175,34 @@ public static OrderMap of(Map arg, SchemaCon return Order1.getInstance().validate(arg, configuration); } - public long id() throws UnsetPropertyException { + public Number id() throws UnsetPropertyException { String key = "id"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for id"); } - return (long) value; + return (Number) value; } - public long petId() throws UnsetPropertyException { + public Number petId() throws UnsetPropertyException { String key = "petId"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for petId"); } - return (long) value; + return (Number) value; } - public int quantity() throws UnsetPropertyException { + public Number quantity() throws UnsetPropertyException { String key = "quantity"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for quantity"); } - return (int) value; + return (Number) value; } public String shipDate() throws UnsetPropertyException { @@ -241,7 +241,7 @@ public boolean complete() throws UnsetPropertyException { return get(name); } } - public static class OrderMapInput { + public static class OrderMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java index 12699ab048f..2afd715faee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDto.java @@ -62,8 +62,26 @@ public static ResultsList of(List> arg, SchemaConfiguration } } - public static class ResultsListInput { + public static class ResultsListBuilder { // class to build List> + private final List> list; + + public ResultsListBuilder() { + list = new ArrayList<>(); + } + + public ResultsListBuilder(List> list) { + this.list = list; + } + + public ResultsListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -146,12 +164,12 @@ public static PaginatedResultMyObjectDtoMap of(Map arg, SchemaCo return PaginatedResultMyObjectDto1.getInstance().validate(arg, configuration); } - public long count() { + public Number count() { Object value = get("count"); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for count"); } - return (long) value; + return (Number) value; } public ResultsList results() { @@ -162,7 +180,7 @@ public ResultsList results() { return (ResultsList) value; } } - public static class PaginatedResultMyObjectDtoMapInput { + public static class PaginatedResultMyObjectDtoMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java index 74c397a32aa..485631f1027 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pet.java @@ -76,8 +76,26 @@ public static PhotoUrlsList of(List arg, SchemaConfiguration configurati } } - public static class PhotoUrlsListInput { + public static class PhotoUrlsListBuilder { // class to build List + private final List list; + + public PhotoUrlsListBuilder() { + list = new ArrayList<>(); + } + + public PhotoUrlsListBuilder(List list) { + this.list = list; + } + + public PhotoUrlsListBuilder add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -225,8 +243,26 @@ public static TagsList of(List> arg, Sch } } - public static class TagsListInput { - // class to build List> + public static class TagsListBuilder { + // class to build List> + private final List> list; + + public TagsListBuilder() { + list = new ArrayList<>(); + } + + public TagsListBuilder(List> list) { + this.list = list; + } + + public TagsListBuilder add(Map item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } @@ -330,14 +366,14 @@ public PhotoUrlsList photoUrls() { return (PhotoUrlsList) value; } - public long id() throws UnsetPropertyException { + public Number id() throws UnsetPropertyException { String key = "id"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for id"); } - return (long) value; + return (Number) value; } public Category.CategoryMap category() throws UnsetPropertyException { @@ -376,7 +412,7 @@ public String status() throws UnsetPropertyException { return get(name); } } - public static class PetMapInput { + public static class PetMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java index 69f2a6f9667..c635492e6b7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Player.java @@ -77,7 +77,7 @@ public PlayerMap enemyPlayer() throws UnsetPropertyException { return get(name); } } - public static class PlayerMapInput { + public static class PlayerMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java index 5cdf189a746..d89e93c8685 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/PublicKey.java @@ -66,7 +66,7 @@ public String key() throws UnsetPropertyException { return get(name); } } - public static class PublicKeyMapInput { + public static class PublicKeyMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java index 80e29e25299..be4db8e38fa 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterface.java @@ -150,7 +150,7 @@ public String shapeType() { return get(name); } } - public static class QuadrilateralInterfaceMapInput { + public static class QuadrilateralInterfaceMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java index d3ab1379471..9abcea7d250 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirst.java @@ -88,7 +88,7 @@ public String baz() throws UnsetPropertyException { return get(name); } } - public static class ReadOnlyFirstMapInput { + public static class ReadOnlyFirstMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java index 6ffc982d97e..4f3a7241be4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddProps.java @@ -59,7 +59,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException, return getOrThrow(name); } } - public static class ReqPropsFromExplicitAddPropsMapInput { + public static class ReqPropsFromExplicitAddPropsMapBuilder { // requiredProperties + additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java index d9be8edc5fc..d635cc73a99 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddProps.java @@ -59,7 +59,7 @@ public static ReqPropsFromTrueAddPropsMap of(Map because additionalProperties == true } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java index 7d70272a780..11ee5523fb7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddProps.java @@ -48,7 +48,7 @@ public static ReqPropsFromUnsetAddPropsMap of(Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java index d4674fa9ee4..1522ae864f5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ReturnSchema.java @@ -65,7 +65,7 @@ public static ReturnMap of(Map arg, SchemaCo return get(name); } } - public static class ReturnMapInput { + public static class ReturnMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java index 79f263a6bea..ea199177cb1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangle.java @@ -131,7 +131,7 @@ public String triangleType() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java index 2d20a74b738..d74a5a597e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Schema200Response.java @@ -72,14 +72,14 @@ public static Schema200ResponseMap of(Map ar return Schema200Response1.getInstance().validate(arg, configuration); } - public int name() throws UnsetPropertyException { + public Number name() throws UnsetPropertyException { String key = "name"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for name"); } - return (int) value; + return (Number) value; } public @Nullable Object getAdditionalProperty(String name) throws UnsetPropertyException, InvalidAdditionalPropertyException { @@ -88,7 +88,7 @@ public int name() throws UnsetPropertyException { return get(name); } } - public static class Schema200ResponseMapInput { + public static class Schema200ResponseMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java index eb1c6c7c19f..092e1a8760c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModel.java @@ -4,6 +4,7 @@ import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; @@ -31,8 +32,26 @@ public static SelfReferencingArrayModelList of(List> arg, SchemaConfigur } } - public static class SelfReferencingArrayModelListInput { + public static class SelfReferencingArrayModelListBuilder { // class to build List> + private final List> list; + + public SelfReferencingArrayModelListBuilder() { + list = new ArrayList<>(); + } + + public SelfReferencingArrayModelListBuilder(List> list) { + this.list = list; + } + + public SelfReferencingArrayModelListBuilder add(List item) { + list.add(item); + return this; + } + + public List> build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java index 6b7711f3597..244304ac0af 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModel.java @@ -57,7 +57,7 @@ public SelfReferencingObjectModelMap getAdditionalProperty(String name) throws U return (SelfReferencingObjectModelMap) value; } } - public static class SelfReferencingObjectModelMapInput { + public static class SelfReferencingObjectModelMapBuilder { // optionalProperties + additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java index 334d5e662af..f592fd935cc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateral.java @@ -131,7 +131,7 @@ public String quadrilateralType() throws UnsetPropertyException { return get(name); } } - public static class Schema1MapInput { + public static class Schema1MapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java index fa29a7efc5f..6a0318d3f26 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SpecialModelname.java @@ -66,7 +66,7 @@ public String a() throws UnsetPropertyException { return get(name); } } - public static class SpecialModelnameMapInput { + public static class SpecialModelnameMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java index 8dde45c395a..feec1d939f7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringBooleanMap.java @@ -56,7 +56,7 @@ public boolean getAdditionalProperty(String name) throws UnsetPropertyException return (boolean) value; } } - public static class StringBooleanMapMapInput { + public static class StringBooleanMapMapBuilder { // Map } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java index df29df698fb..f46d876cfcf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnum.java @@ -2,6 +2,7 @@ import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java index 6c6ef9d2ba2..c43ff7a9ea3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Tag.java @@ -63,14 +63,14 @@ public static TagMap of(Map arg, SchemaConfi return Tag1.getInstance().validate(arg, configuration); } - public long id() throws UnsetPropertyException { + public Number id() throws UnsetPropertyException { String key = "id"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for id"); } - return (long) value; + return (Number) value; } public String name() throws UnsetPropertyException { @@ -89,7 +89,7 @@ public String name() throws UnsetPropertyException { return get(name); } } - public static class TagMapInput { + public static class TagMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java index 22299645bb1..ad908d3dfd1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/TriangleInterface.java @@ -150,7 +150,7 @@ public String triangleType() { return get(name); } } - public static class TriangleInterfaceMapInput { + public static class TriangleInterfaceMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java index ac1bfed4606..8f80fdc72ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/User.java @@ -476,14 +476,14 @@ public static UserMap of(Map arg, SchemaConf return User1.getInstance().validate(arg, configuration); } - public long id() throws UnsetPropertyException { + public Number id() throws UnsetPropertyException { String key = "id"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for id"); } - return (long) value; + return (Number) value; } public String username() throws UnsetPropertyException { @@ -546,14 +546,14 @@ public String phone() throws UnsetPropertyException { return (String) value; } - public int userStatus() throws UnsetPropertyException { + public Number userStatus() throws UnsetPropertyException { String key = "userStatus"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for userStatus"); } - return (int) value; + return (Number) value; } public FrozenMap objectWithNoDeclaredProps() throws UnsetPropertyException { @@ -594,7 +594,7 @@ public FrozenMap objectWithNoDeclaredProps() throws UnsetPropertyException { return get(name); } } - public static class UserMapInput { + public static class UserMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java index 492f4a4147b..9b18bdbe5fd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Whale.java @@ -167,7 +167,7 @@ public boolean hasTeeth() throws UnsetPropertyException { return get(name); } } - public static class WhaleMapInput { + public static class WhaleMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java index 1fd617da13d..e313d6572df 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Zebra.java @@ -213,7 +213,7 @@ public String type() throws UnsetPropertyException { return getOrThrow(name); } } - public static class ZebraMapInput { + public static class ZebraMapBuilder { // Map because additionalProperties == true } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java index b99f1e11040..0c5633c7e78 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/HeaderParameters.java @@ -56,7 +56,7 @@ public String someHeader() throws UnsetPropertyException { return getOrThrow("someHeader"); } } - public static class HeaderParametersMapInput { + public static class HeaderParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java index 952530d3d0d..53fdae0d7ad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/PathParameters.java @@ -56,7 +56,7 @@ public String subDir() { return getOrThrow("subDir"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java index 022a665d114..27c9efbd7ab 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/PathParameters.java @@ -56,7 +56,7 @@ public String subDir() { return getOrThrow("subDir"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java index ef1e2e29d72..e9cef5a9daf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/get/QueryParameters.java @@ -56,7 +56,7 @@ public String searchStr() throws UnsetPropertyException { return getOrThrow("searchStr"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java index f13833a84af..13270b5efdd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/HeaderParameters.java @@ -56,7 +56,7 @@ public String someHeader() throws UnsetPropertyException { return getOrThrow("someHeader"); } } - public static class HeaderParametersMapInput { + public static class HeaderParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java index 2b141f08909..645c4ab09dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/post/PathParameters.java @@ -56,7 +56,7 @@ public String subDir() { return getOrThrow("subDir"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java index daebf581f1d..3d6226cf1f6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/HeaderParameters.java @@ -73,7 +73,7 @@ public String boolean_group() throws UnsetPropertyException { return (String) value; } } - public static class HeaderParametersMapInput { + public static class HeaderParametersMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java index a656c08d3c2..89130698c3f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/QueryParameters.java @@ -59,12 +59,12 @@ public static QueryParametersMap of(Map arg, return QueryParameters1.getInstance().validate(arg, configuration); } - public long required_int64_group() { + public Number required_int64_group() { @Nullable Object value = get("required_int64_group"); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for required_int64_group"); } - return (long) value; + return (Number) value; } public String required_string_group() { @@ -75,14 +75,14 @@ public String required_string_group() { return (String) value; } - public long int64_group() throws UnsetPropertyException { + public Number int64_group() throws UnsetPropertyException { String key = "int64_group"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int64_group"); } - return (long) value; + return (Number) value; } public String string_group() throws UnsetPropertyException { @@ -95,7 +95,7 @@ public String string_group() throws UnsetPropertyException { return (String) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java index 0816243e633..d1cad969960 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/HeaderParameters.java @@ -74,7 +74,7 @@ public Schema0.SchemaList0 enum_header_string_array() throws UnsetPropertyExcept return (Schema0.SchemaList0) value; } } - public static class HeaderParametersMapInput { + public static class HeaderParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java index 23b1a954bfb..f0a99bf264b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/QueryParameters.java @@ -58,14 +58,14 @@ public static QueryParametersMap of(Map arg, return QueryParameters1.getInstance().validate(arg, configuration); } - public double enum_query_double() throws UnsetPropertyException { + public Number enum_query_double() throws UnsetPropertyException { String key = "enum_query_double"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Double)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for enum_query_double"); } - return (double) value; + return (Number) value; } public String enum_query_string() throws UnsetPropertyException { @@ -78,14 +78,14 @@ public String enum_query_string() throws UnsetPropertyException { return (String) value; } - public int enum_query_integer() throws UnsetPropertyException { + public Number enum_query_integer() throws UnsetPropertyException { String key = "enum_query_integer"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for enum_query_integer"); } - return (int) value; + return (Number) value; } public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyException { @@ -98,7 +98,7 @@ public Schema2.SchemaList2 enum_query_string_array() throws UnsetPropertyExcepti return (Schema2.SchemaList2) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java index ad226b2306e..d05ecf7a39e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter0/Schema0.java @@ -102,8 +102,31 @@ public static SchemaList0 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput0 { + public static class SchemaListBuilder0 { // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public SchemaListBuilder0 add(StringItemsEnums0 item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java index 5361a242141..9d216b5f321 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter2/Schema2.java @@ -102,8 +102,31 @@ public static SchemaList2 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput2 { + public static class SchemaListBuilder2 { // class to build List + private final List list; + + public SchemaListBuilder2() { + list = new ArrayList<>(); + } + + public SchemaListBuilder2(List list) { + this.list = list; + } + + public SchemaListBuilder2 add(String item) { + list.add(item); + return this; + } + + public SchemaListBuilder2 add(StringItemsEnums2 item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.java index 72b82ae0bef..84b53041a74 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/Schema.java @@ -108,8 +108,31 @@ public static EnumFormStringArrayList of(List arg, SchemaConfiguration c } } - public static class EnumFormStringArrayListInput { + public static class EnumFormStringArrayListBuilder { // class to build List + private final List list; + + public EnumFormStringArrayListBuilder() { + list = new ArrayList<>(); + } + + public EnumFormStringArrayListBuilder(List list) { + this.list = list; + } + + public EnumFormStringArrayListBuilder add(String item) { + list.add(item); + return this; + } + + public EnumFormStringArrayListBuilder add(StringItemsEnums item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } } @@ -287,7 +310,7 @@ public String enum_form_string() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.java index 8273085a97f..488539228eb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/Schema.java @@ -612,24 +612,24 @@ public String pattern_without_delimiter() { return (String) value; } - public int int32() throws UnsetPropertyException { + public Number int32() throws UnsetPropertyException { String key = "int32"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int32"); } - return (int) value; + return (Number) value; } - public long int64() throws UnsetPropertyException { + public Number int64() throws UnsetPropertyException { String key = "int64"; throwIfKeyNotPresent(key); @Nullable Object value = get(key); - if (!(value instanceof Long)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int64"); } - return (long) value; + return (Number) value; } public String binary() throws UnsetPropertyException { @@ -688,7 +688,7 @@ public String callback() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java index 5b1551cb7b4..1deaa87d08e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakebodywithqueryparams/put/QueryParameters.java @@ -56,7 +56,7 @@ public String query() { return getOrThrow("query"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java index 99a44332abc..3e3ded8af70 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakecasesensitiveparams/put/QueryParameters.java @@ -80,7 +80,7 @@ public String some_var() { return (String) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java index c20fcf673b0..98c31f96806 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakedeletecoffeeid/delete/PathParameters.java @@ -56,7 +56,7 @@ public String id() { return getOrThrow("id"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.java index c6cec3c85b1..9e0f0293eed 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/Schema.java @@ -51,7 +51,7 @@ public String getAdditionalProperty(String name) throws UnsetPropertyException { return getOrThrow(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java index 7e911e6784a..abe7df2d43d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/QueryParameters.java @@ -74,7 +74,7 @@ public Schema1.SchemaMap1 compositionInProperty() throws UnsetPropertyException return (Schema1.SchemaMap1) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java index 92fe1ecc27c..7be0b535287 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter1/Schema1.java @@ -300,7 +300,7 @@ public static SchemaMap1 of(Map arg, SchemaC return get(name); } } - public static class SchemaMapInput1 { + public static class SchemaMapBuilder1 { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.java index 2416e5bed55..29536e2e16d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/Schema.java @@ -300,7 +300,7 @@ public static SchemaMap of(Map arg, SchemaCo return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.java index fed08c777ad..f22bc580152 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/response200/content/multipartformdata/Schema.java @@ -300,7 +300,7 @@ public static SchemaMap of(Map arg, SchemaCo return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.java index 231f55cf636..d7e8c5d2fe9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/Schema.java @@ -84,7 +84,7 @@ public String param2() { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.java index e5767c0b8b1..9b6f33a20b6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/Schema.java @@ -66,7 +66,7 @@ public String a() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.java index 87662ae7b6e..01c85b15200 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/Schema.java @@ -66,7 +66,7 @@ public String b() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java index 47f98dfdce8..08a543cbdad 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/QueryParameters.java @@ -56,7 +56,7 @@ public Schema0.SchemaMap0 mapBean() throws UnsetPropertyException { return getOrThrow("mapBean"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java index 0ba5d25ee0e..aca189c523c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeobjinquery/get/parameters/parameter0/Schema0.java @@ -66,7 +66,7 @@ public String keyword() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput0 { + public static class SchemaMapBuilder0 { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java index 45059bbeba3..07bbbf36e85 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/CookieParameters.java @@ -90,7 +90,7 @@ public String self() throws UnsetPropertyException { return (String) value; } } - public static class CookieParametersMapInput { + public static class CookieParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java index 7fa025cc3d7..bf9f77c4981 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.java @@ -78,7 +78,7 @@ public String self() throws UnsetPropertyException { return (String) value; } } - public static class HeaderParametersMapInput { + public static class HeaderParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java index 5643ab82992..00dbfdc1ae8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/PathParameters.java @@ -84,7 +84,7 @@ public String self() { return (String) value; } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java index 075ab3ffc05..a2d3188ef0c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeparametercollisions1ababselfab/post/QueryParameters.java @@ -90,7 +90,7 @@ public String self() throws UnsetPropertyException { return (String) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java index d8243f0120b..e4a3d5c1fbf 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.java @@ -40,23 +40,23 @@ public static AdditionalProperties getInstance() { } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PathParameters1.getInstance().validate(arg, configuration); } - public long petId() { + public Number petId() { return getOrThrow("petId"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } @@ -85,7 +85,7 @@ public static PathParameters1 getInstance() { } public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -101,12 +101,12 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new PathParametersMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.java index f63e9a34459..d47147ba6d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/Schema.java @@ -88,7 +88,7 @@ public String additionalMetadata() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java index 00f54f2728d..4c57a7d8658 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.java @@ -56,7 +56,7 @@ public static QueryParametersMap of(Map arg, return getOrThrow("someParam"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java index 36da13abde9..bf095486dd5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakerefobjinquery/get/QueryParameters.java @@ -56,7 +56,7 @@ public Foo.FooMap mapBean() throws UnsetPropertyException { return getOrThrow("mapBean"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java index 204ad3995ff..2fad5e47c31 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/QueryParameters.java @@ -110,7 +110,7 @@ public Schema3.SchemaList3 url() { return (Schema3.SchemaList3) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java index ff9bc831597..ea6aa7248a1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter0/Schema0.java @@ -43,8 +43,26 @@ public static SchemaList0 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput0 { + public static class SchemaListBuilder0 { // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java index 1422c4ec2a6..538b4fe728f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter1/Schema1.java @@ -43,8 +43,26 @@ public static SchemaList1 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput1 { + public static class SchemaListBuilder1 { // class to build List + private final List list; + + public SchemaListBuilder1() { + list = new ArrayList<>(); + } + + public SchemaListBuilder1(List list) { + this.list = list; + } + + public SchemaListBuilder1 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java index 93d989afb19..d533c72e508 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter2/Schema2.java @@ -43,8 +43,26 @@ public static SchemaList2 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput2 { + public static class SchemaListBuilder2 { // class to build List + private final List list; + + public SchemaListBuilder2() { + list = new ArrayList<>(); + } + + public SchemaListBuilder2(List list) { + this.list = list; + } + + public SchemaListBuilder2 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java index b282ad5d381..c019739fa01 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter3/Schema3.java @@ -43,8 +43,26 @@ public static SchemaList3 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput3 { + public static class SchemaListBuilder3 { // class to build List + private final List list; + + public SchemaListBuilder3() { + list = new ArrayList<>(); + } + + public SchemaListBuilder3(List list) { + this.list = list; + } + + public SchemaListBuilder3 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java index 79a4d6aa6d3..276bc0183de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/faketestqueryparamters/put/parameters/parameter4/Schema4.java @@ -43,8 +43,26 @@ public static SchemaList4 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput4 { + public static class SchemaListBuilder4 { // class to build List + private final List list; + + public SchemaListBuilder4() { + list = new ArrayList<>(); + } + + public SchemaListBuilder4(List list) { + this.list = list; + } + + public SchemaListBuilder4 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.java index b0f64cb928a..25feddb0b4e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/Schema.java @@ -88,7 +88,7 @@ public String additionalMetadata() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.java index d135e1a8f39..0c703fc2cbb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/Schema.java @@ -50,8 +50,26 @@ public static FilesList of(List arg, SchemaConfiguration configuration) } } - public static class FilesListInput { + public static class FilesListBuilder { // class to build List + private final List list; + + public FilesListBuilder() { + list = new ArrayList<>(); + } + + public FilesListBuilder(List list) { + this.list = list; + } + + public FilesListBuilder add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } @@ -149,7 +167,7 @@ public FilesList files() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.java index ef6af6fdd55..07c668501bc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/responsedefault/content/applicationjson/Schema.java @@ -45,7 +45,7 @@ public static SchemaMap of(Map arg, SchemaCo return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java index 84f210890ab..31d7fcc34d7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/QueryParameters.java @@ -57,7 +57,7 @@ public Schema0.SchemaList0 status() { return getOrThrow("status"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java index a400577dfb3..101d5425fb4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/parameters/parameter0/Schema0.java @@ -104,8 +104,31 @@ public static SchemaList0 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput0 { + public static class SchemaListBuilder0 { // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public SchemaListBuilder0 add(StringItemsEnums0 item) { + list.add(item.value()); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java index deea27d09a5..d5b5cf8ce76 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/QueryParameters.java @@ -57,7 +57,7 @@ public Schema0.SchemaList0 tags() { return getOrThrow("tags"); } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java index 8c34399f346..52536907dbc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbytags/get/parameters/parameter0/Schema0.java @@ -43,8 +43,26 @@ public static SchemaList0 of(List arg, SchemaConfiguration configuration } } - public static class SchemaListInput0 { + public static class SchemaListBuilder0 { // class to build List + private final List list; + + public SchemaListBuilder0() { + list = new ArrayList<>(); + } + + public SchemaListBuilder0(List list) { + this.list = list; + } + + public SchemaListBuilder0 add(String item) { + list.add(item); + return this; + } + + public List build() { + return list; + } } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java index d6f9c899684..2845325d1fd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/HeaderParameters.java @@ -56,7 +56,7 @@ public String api_key() throws UnsetPropertyException { return getOrThrow("api_key"); } } - public static class HeaderParametersMapInput { + public static class HeaderParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java index c45a9e99691..a4098f72b70 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PathParameters.java @@ -40,23 +40,23 @@ public static AdditionalProperties getInstance() { } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PathParameters1.getInstance().validate(arg, configuration); } - public long petId() { + public Number petId() { return getOrThrow("petId"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } @@ -85,7 +85,7 @@ public static PathParameters1 getInstance() { } public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -101,12 +101,12 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new PathParametersMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java index f142900292e..83a9b96e4a5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/get/PathParameters.java @@ -40,23 +40,23 @@ public static AdditionalProperties getInstance() { } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PathParameters1.getInstance().validate(arg, configuration); } - public long petId() { + public Number petId() { return getOrThrow("petId"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } @@ -85,7 +85,7 @@ public static PathParameters1 getInstance() { } public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -101,12 +101,12 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new PathParametersMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java index ccf3bc33572..a281de34044 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PathParameters.java @@ -40,23 +40,23 @@ public static AdditionalProperties getInstance() { } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PathParameters1.getInstance().validate(arg, configuration); } - public long petId() { + public Number petId() { return getOrThrow("petId"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } @@ -85,7 +85,7 @@ public static PathParameters1 getInstance() { } public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -101,12 +101,12 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new PathParametersMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.java index aba7805e893..25050ffd93b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/Schema.java @@ -88,7 +88,7 @@ public String status() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java index c2ce8252ca6..9492e91ea52 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/PathParameters.java @@ -40,23 +40,23 @@ public static AdditionalProperties getInstance() { } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "petId" ); public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PathParameters1.getInstance().validate(arg, configuration); } - public long petId() { + public Number petId() { return getOrThrow("petId"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } @@ -85,7 +85,7 @@ public static PathParameters1 getInstance() { } public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -101,12 +101,12 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new PathParametersMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.java index 343ad6db589..8c93451de46 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/Schema.java @@ -89,7 +89,7 @@ public String file() throws UnsetPropertyException { return get(name); } } - public static class SchemaMapInput { + public static class SchemaMapBuilder { // Map because addProps is unset } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java index 1ca2e35f336..74b67ff2576 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/delete/PathParameters.java @@ -56,7 +56,7 @@ public String order_id() { return getOrThrow("order_id"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java index 3b77389cc0a..b309d37758d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/PathParameters.java @@ -40,23 +40,23 @@ public static AdditionalProperties getInstance() { } - public static class PathParametersMap extends FrozenMap { - protected PathParametersMap(FrozenMap m) { + public static class PathParametersMap extends FrozenMap { + protected PathParametersMap(FrozenMap m) { super(m); } public static final Set requiredKeys = Set.of( "order_id" ); public static final Set optionalKeys = Set.of(); - public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { + public static PathParametersMap of(Map arg, SchemaConfiguration configuration) throws ValidationException { return PathParameters1.getInstance().validate(arg, configuration); } - public long order_id() { + public Number order_id() { return getOrThrow("order_id"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } @@ -85,7 +85,7 @@ public static PathParameters1 getInstance() { } public PathParametersMap getNewInstance(Map arg, List pathToItem, PathToSchemasMap pathToSchemas) { - LinkedHashMap properties = new LinkedHashMap<>(); + LinkedHashMap properties = new LinkedHashMap<>(); for(Map.Entry entry: arg.entrySet()) { @Nullable Object entryKey = entry.getKey(); if (!(entryKey instanceof String)) { @@ -101,12 +101,12 @@ public PathParametersMap getNewInstance(Map arg, List pathToItem, } JsonSchema propertySchema = schemas.entrySet().iterator().next().getKey(); @Nullable Object propertyInstance = propertySchema.getNewInstance(value, propertyPathToItem, pathToSchemas); - if (!(propertyInstance instanceof Long)) { + if (!(propertyInstance instanceof Number)) { throw new InvalidTypeException("Invalid instantiated value"); } - properties.put(propertyName, (Long) propertyInstance); + properties.put(propertyName, (Number) propertyInstance); } - FrozenMap castProperties = new FrozenMap<>(properties); + FrozenMap castProperties = new FrozenMap<>(properties); return new PathParametersMap(castProperties); } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java index 2c24cdc4dcf..b73e371ddca 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/QueryParameters.java @@ -70,7 +70,7 @@ public String username() { return (String) value; } } - public static class QueryParametersMapInput { + public static class QueryParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java index 6d260b0dfe7..3562cfe63e2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/response200/Headers.java @@ -61,12 +61,12 @@ public static HeadersMap of(Map arg, SchemaC return Headers1.getInstance().validate(arg, configuration); } - public int int32() { + public Number int32() { @Nullable Object value = get("int32"); - if (!(value instanceof Integer)) { + if (!(value instanceof Number)) { throw new InvalidTypeException("Invalid value stored for int32"); } - return (int) value; + return (Number) value; } public String numberHeader() throws UnsetPropertyException { @@ -79,7 +79,7 @@ public String numberHeader() throws UnsetPropertyException { return (String) value; } } - public static class HeadersMapInput { + public static class HeadersMapBuilder { // requiredProperties, optionalProperties, NO additionalProperties } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java index 2c0a6b5fec8..2bf0dceeff9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/delete/PathParameters.java @@ -56,7 +56,7 @@ public String username() { return getOrThrow("username"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java index f926db9227a..e9cbee26ea8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/get/PathParameters.java @@ -56,7 +56,7 @@ public String username() { return getOrThrow("username"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java index ef0594dc9e5..d5c9ca1b2bb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userusername/put/PathParameters.java @@ -56,7 +56,7 @@ public String username() { return getOrThrow("username"); } } - public static class PathParametersMapInput { + public static class PathParametersMapBuilder { // empty mapping } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableListWithNullableItemsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableListWithNullableItemsTest.java new file mode 100644 index 00000000000..9ef0d471516 --- /dev/null +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableListWithNullableItemsTest.java @@ -0,0 +1,19 @@ +package org.openapijsonschematools.client.components.schemas; + +import org.junit.Assert; +import org.junit.Test; +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.exceptions.InvalidTypeException; +import org.openapijsonschematools.client.schemas.MapMaker; +import org.checkerframework.checker.nullness.qual.Nullable; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.AbstractMap; + +public class NullableListWithNullableItemsTest { + static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +} diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java new file mode 100644 index 00000000000..ea948baf50f --- /dev/null +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListBuilderTest.java @@ -0,0 +1,61 @@ +package org.openapijsonschematools.client.schemas; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +public class ListBuilderTest { + public static class NullableListWithNullableItemsListBuilder { + // class to build List<@Nullable List> + private final List<@Nullable List> list; + + public NullableListWithNullableItemsListBuilder() { + list = new ArrayList<>(); + } + + public NullableListWithNullableItemsListBuilder(List<@Nullable List> list) { + this.list = list; + } + + public NullableListWithNullableItemsListBuilder add(Void item) { + list.add(null); + return this; + } + + public NullableListWithNullableItemsListBuilder add(List item) { + list.add(item); + return this; + } + + public List<@Nullable List> build() { + return list; + } + } + + @Test + public void testSucceedsWithNullInput() { + List<@Nullable List> inList = new ArrayList<>(); + inList.add(null); + var builder = new NullableListWithNullableItemsListBuilder(inList); + Assert.assertEquals(inList, builder.build()); + + builder = new NullableListWithNullableItemsListBuilder(); + builder.add((Void) null); + Assert.assertEquals(inList, builder.build()); + } + + @Test + public void testSucceedsWithNonNullInput() { + List> inList = new ArrayList<>(); + inList.add(List.of(1)); + var builder = new NullableListWithNullableItemsListBuilder(inList); + Assert.assertEquals(inList, builder.build()); + + builder = new NullableListWithNullableItemsListBuilder(); + builder.add(List.of(1)); + Assert.assertEquals(inList, builder.build()); + } +} \ No newline at end of file diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 910bd2ac729..ac9e3f6718a 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -345,6 +345,7 @@ public class DefaultGenerator implements Generator { protected boolean deepestRefSchemaImportNeeded = false; protected String objectIOClassNamePiece = "Dict"; protected String arrayIOClassNamePiece = "Tuple"; + protected String arrayObjectInputClassNameSuffix = "Input"; @Override public List cliOptions() { @@ -2702,7 +2703,7 @@ public CodegenSchema fromSchema(Schema p, String sourceJsonPath, String currentJ case "00": if (property.additionalProperties != null) { // only addProps - property.mapInputJsonPathPiece = getKey(currentName + objectIOClassNamePiece + "Input", "schemaProperty", sourceJsonPath); + property.mapInputJsonPathPiece = getKey(currentName + objectIOClassNamePiece + arrayObjectInputClassNameSuffix, "schemaProperty", sourceJsonPath); // even though the definition is the same, mapOutputJsonPathPiece needs to be different // so an implementing class can be written property.mapOutputJsonPathPiece = getKey(currentName + objectIOClassNamePiece, "schemaProperty", sourceJsonPath); @@ -2710,7 +2711,7 @@ public CodegenSchema fromSchema(Schema p, String sourceJsonPath, String currentJ break; case "11": // optional + required - property.mapInputJsonPathPiece = getKey(currentName + objectIOClassNamePiece + "Input", "schemaProperty", sourceJsonPath); + property.mapInputJsonPathPiece = getKey(currentName + objectIOClassNamePiece + arrayObjectInputClassNameSuffix, "schemaProperty", sourceJsonPath); property.mapOutputJsonPathPiece = getKey(currentName + objectIOClassNamePiece, "schemaProperty", sourceJsonPath); break; case "10": @@ -2727,7 +2728,7 @@ public CodegenSchema fromSchema(Schema p, String sourceJsonPath, String currentJ } if ((property.types == null || property.types.contains("array")) && sourceJsonPath != null && property.items != null) { property.arrayOutputJsonPathPiece = getKey(currentName + arrayIOClassNamePiece, "schemaProperty", sourceJsonPath); - property.arrayInputJsonPathPiece = getKey(currentName + arrayIOClassNamePiece+"Input", "schemaProperty", sourceJsonPath); + property.arrayInputJsonPathPiece = getKey(currentName + arrayIOClassNamePiece+arrayObjectInputClassNameSuffix, "schemaProperty", sourceJsonPath); } } Schema propertyNamesSchema = p.getPropertyNames(); @@ -3972,7 +3973,7 @@ protected LinkedHashMapWithContext getOptionalProperties(LinkedHa optionalProperties.putAll(properties); optionalProperties.setAllAreInline(properties.allAreInline()); CodegenKey jsonPathPiece; - jsonPathPiece = getKey(currentName + objectIOClassNamePiece + "Input", "schemaProperty", sourceJsonPath); + jsonPathPiece = getKey(currentName + objectIOClassNamePiece + arrayObjectInputClassNameSuffix, "schemaProperty", sourceJsonPath); optionalProperties.setJsonPathPiece(jsonPathPiece); return optionalProperties; } @@ -3996,7 +3997,7 @@ protected LinkedHashMapWithContext getOptionalProperties(LinkedHa return null; } optionalProperties.setAllAreInline(allAreInline); - CodegenKey jsonPathPiece = getKey(currentName + "Optional" + objectIOClassNamePiece + "Input", "schemaProperty", sourceJsonPath); + CodegenKey jsonPathPiece = getKey(currentName + "Optional" + objectIOClassNamePiece + arrayObjectInputClassNameSuffix, "schemaProperty", sourceJsonPath); optionalProperties.setJsonPathPiece(jsonPathPiece); return optionalProperties; } @@ -5395,9 +5396,9 @@ protected LinkedHashMapWithContext getRequiredProperties(LinkedHa boolean onlyReqPropsCase2 = (requiredPropsWithDefAllFromAddProp && properties == null); boolean onlyReqPropsCase3 = (propReqProps != 0 && addPropReqProps != 0 && propReqProps + addPropReqProps == reqPropsWithDef && schemaProperties != null && required.containsAll(schemaProperties.keySet())); if (onlyReqPropsCase1 || onlyReqPropsCase2 || onlyReqPropsCase3) { - keyName = currentName + objectIOClassNamePiece + "Input"; + keyName = currentName + objectIOClassNamePiece + arrayObjectInputClassNameSuffix; } else { - keyName = currentName + "Required" + objectIOClassNamePiece + "Input"; + keyName = currentName + "Required" + objectIOClassNamePiece + arrayObjectInputClassNameSuffix; } requiredProperties.setAllAreInline(allAreInline); CodegenKey jsonPathPiece = getKey(keyName, "schemaProperty", sourceJsonPath); diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java index 7fc881054ee..6342962bc32 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/JavaClientGenerator.java @@ -180,6 +180,7 @@ public JavaClientGenerator() { sortParamsByRequiredFlag = Boolean.FALSE; objectIOClassNamePiece = "Map"; arrayIOClassNamePiece = "List"; + arrayObjectInputClassNameSuffix = "Builder"; // TODO: Move GlobalFeature.ParameterizedServer to library: jersey after moving featureSet to generatorMetadata @@ -377,6 +378,7 @@ public void processOpts() { schemaTestSupportingFiles.add("AnyTypeSchemaTest"); schemaTestSupportingFiles.add("ArrayTypeSchemaTest"); schemaTestSupportingFiles.add("BooleanSchemaTest"); + schemaTestSupportingFiles.add("ListBuilderTest"); schemaTestSupportingFiles.add("ListSchemaTest"); schemaTestSupportingFiles.add("MapSchemaTest"); schemaTestSupportingFiles.add("NullSchemaTest"); @@ -1285,6 +1287,8 @@ private Set getDeeperImports(String sourceJsonPath, CodegenSchema schema } else { imports.addAll(getDeeperImports(sourceJsonPath, ref)); } + // todo remove this when 3.1.0 ref + types is supported + return imports; } if (schema.types != null) { if (schema.types.contains("array")) { @@ -1301,6 +1305,9 @@ private Set getDeeperImports(String sourceJsonPath, CodegenSchema schema imports.addAll(getDeeperImports(sourceJsonPath, schema.mapValueSchema)); } } + } else { + imports.add("import java.util.List;"); + imports.add("import java.util.Map;"); } return imports; } @@ -1511,6 +1518,7 @@ public Set getImports(String sourceJsonPath, CodegenSchema schema, Featu } else if (schema.isSimpleAnyType()) { imports.add("import org.checkerframework.checker.nullness.qual.Nullable;"); imports.add("import "+packageName + ".schemas.AnyTypeJsonSchema;"); + // in case higher schema is ListBuilder add List + Map } else { addCustomSchemaImports(imports, schema); imports.add("import java.time.LocalDate;"); diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs index ad014e45cf5..4b86be2cdf6 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/Schema_doc.hbs @@ -168,19 +168,7 @@ A class to store validated List payloads | static [{{arrayOutputJsonPathPiece.camelCase}}](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayOutputJsonPathPiece) }}) | of([List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true }}{{/with}}>](#{{> src/main/java/packagename/components/_helper_anchor_id identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }}) arg, SchemaConfiguration configuration) | {{else}} {{#eq instanceType "arrayInputType"}} - -{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }} -public class {{arrayInputJsonPathPiece.camelCase}}
-builder for `List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true }}{{else}}Object{{/with}}>` - -A class that builds the List input type - -{{headerSize}}# Input List Items -List Item Type | Description | Notes --------------------- | ------------- | ------------- - {{#with items}} -{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true }} | {{#if description}}{{description.originalWithBr}}{{/if}} |{{> src/main/java/packagename/components/schemas/helpers/notes_msg defaultUser="server" }} - {{/with}} +{{> src/main/java/packagename/components/schemas/docschema_arrayInput }} {{else}} {{#or (eq instanceType "propertiesInputType") (eq instanceType "requiredPropertiesInputType") (eq instanceType "optionalPropertiesInputType") }} diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputAddItem.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputAddItem.hbs new file mode 100644 index 00000000000..4b58ebc20a6 --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputAddItem.hbs @@ -0,0 +1,269 @@ +{{#each types}} + {{#eq this "null"}} + {{#if forDocs }} +| {{builderClass}} | add(Void item) | + {{else}} + +public {{builderClass}} add(Void item) { + list.add(null); + return this; +} + {{/if}} + {{else}} + {{#eq this "boolean"}} + {{#if forDocs }} +| {{builderClass}} | add(boolean item) | + {{else}} + +public {{builderClass}} add(boolean item) { + list.add(item); + return this; +} + {{/if}} + {{else}} + {{#eq this "string"}} + {{#if forDocs }} +| {{builderClass}} | add(String item) | + {{else}} + +public {{builderClass}} add(String item) { + list.add(item); + return this; +} + {{/if}} + {{else}} + {{#or (eq this "integer") (eq this "number") }} + {{#if forDocs }} +| {{builderClass}} | add(int item) | +| {{builderClass}} | add(float item) | + {{#neq ../format "int32"}} +| {{builderClass}} | add(long item) | +| {{builderClass}} | add(double item) | + {{/neq}} + {{else}} + +public {{builderClass}} add(int item) { + list.add(item); + return this; +} + +public {{builderClass}} add(float item) { + list.add(item); + return this; +} + {{#neq ../format "int32"}} + +public {{builderClass}} add(long item) { + list.add(item); + return this; +} + +public {{builderClass}} add(double item) { + list.add(item); + return this; +} + {{/neq}} + {{/if}} + {{else}} + {{#eq this "array"}} + {{#if forDocs }} +| {{builderClass}} | add(List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}> item) | + {{else}} + +public {{builderClass}} add(List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}> item) { + list.add(item); + return this; +} + {{/if}} + {{else}} + {{#eq this "object"}} + {{#if forDocs }} +| {{builderClass}} | add(Map src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}> item) | + {{else}} + +public {{builderClass}} add(Map src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}> item) { + list.add(item); + return this; +} + {{/if}} + {{/eq}} + {{/eq}} + {{/or}} + {{/eq}} + {{/eq}} + {{/eq}} +{{else}} + {{! no type defined }} + {{#if forDocs }} +| {{builderClass}} | add(Void item) | +| {{builderClass}} | add(boolean item) | +| {{builderClass}} | add(String item) | +| {{builderClass}} | add(int item) | +| {{builderClass}} | add(float item) | +| {{builderClass}} | add(long item) | +| {{builderClass}} | add(double item) | +| {{builderClass}} | add(List item) | +| {{builderClass}} | add(Map item) | + {{else}} + +public {{builderClass}} add(Void item) { + list.add(null); + return this; +} + +public {{builderClass}} add(boolean item) { + list.add(item); + return this; +} + +public {{builderClass}} add(String item) { + list.add(item); + return this; +} + +public {{builderClass}} add(int item) { + list.add(item); + return this; +} + +public {{builderClass}} add(float item) { + list.add(item); + return this; +} + +public {{builderClass}} add(long item) { + list.add(item); + return this; +} + +public {{builderClass}} add(double item) { + list.add(item); + return this; +} + +public {{builderClass}} add(List item) { + list.add(item); + return this; +} + +public {{builderClass}} add(Map item) { + list.add(item); + return this; +} + {{/if}} +{{/each}} +{{#with enumInfo}} + {{#each typeToValues }} + {{#eq @key "null"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.Null{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#null{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([Null{{../jsonPathPiece.camelCase}}](#null{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}Null{{../jsonPathPiece.camelCase}} item) { + list.add(null); + return this; +} + {{/if}} + {{else}} + {{#eq @key "boolean"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.Boolean{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#boolean{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([Boolean{{../jsonPathPiece.camelCase}}](#boolean{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}Boolean{{../jsonPathPiece.camelCase}} item) { + list.add(item.value()); + return this; +} + {{/if}} + {{else}} + {{#eq @key "string"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.String{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#string{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([String{{../jsonPathPiece.camelCase}}](#string{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}String{{../jsonPathPiece.camelCase}} item) { + list.add(item.value()); + return this; +} + {{/if}} + {{else}} + {{#eq @key "Integer"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.Integer{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#integer{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([Integer{{../jsonPathPiece.camelCase}}](#integer{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}Integer{{../jsonPathPiece.camelCase}} item) { + list.add(item.value()); + return this; +} + {{/if}} + {{else}} + {{#eq @key "Long"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.Long{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#long{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([Long{{../jsonPathPiece.camelCase}}](#long{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}Long{{../jsonPathPiece.camelCase}} item) { + list.add(item.value()); + return this; +} + {{/if}} + {{else}} + {{#eq @key "Float"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.Float{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#float{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([Float{{../jsonPathPiece.camelCase}}](#float{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}Float{{../jsonPathPiece.camelCase}} item) { + list.add(item.value()); + return this; +} + {{/if}} + {{else}} + {{#eq @key "Double"}} + {{#if forDocs }} + {{#if useContainer }} +| {{builderClass}} | add([{{../../containerJsonPathPiece.camelCase}}.Double{{../jsonPathPiece.camelCase}}]({{docRoot}}{{pathFromDocRoot}}.md#double{{../jsonPathPiece.anchorPiece}}) item) | + {{else}} +| {{builderClass}} | add([Double{{../jsonPathPiece.camelCase}}](#double{{../jsonPathPiece.anchorPiece}}) item) | + {{/if}} + {{else}} + +public {{builderClass}} add({{#if useContainer}}{{../../containerJsonPathPiece.camelCase}}.{{/if}}Double{{../jsonPathPiece.camelCase}} item) { + list.add(item.value()); + return this; +} + {{/if}} + {{/eq}} + {{/eq}} + {{/eq}} + {{/eq}} + {{/eq}} + {{/eq}} + {{/eq}} + {{/each}} +{{/with}} diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputType.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputType.hbs index bffd6c9391f..7500b1a25ee 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputType.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/_arrayInputType.hbs @@ -1,6 +1,39 @@ {{#if items}} public static class {{arrayInputJsonPathPiece.camelCase}} { - // class to build List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true }}{{/with}}> + // class to build List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{/with}}> + private final List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{/with}}> list; + + public {{arrayInputJsonPathPiece.camelCase}}() { + list = new ArrayList<>(); + } + + public {{arrayInputJsonPathPiece.camelCase}}(List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{/with}}> list) { + this.list = list; + } + {{#with items}} + {{#if refInfo }} + {{#if refInfo.refModule}} + {{#with getDeepestRef }} + {{> src/main/java/packagename/components/schemas/_arrayInputAddItem builderClass=../../arrayInputJsonPathPiece.camelCase useContainer=true }} + {{/with}} + {{else}} + {{! self reference} }} + + public {{../arrayInputJsonPathPiece.camelCase}} add(List item) { + list.add(item); + return this; + } + {{/if}} + {{else}} + {{> src/main/java/packagename/components/schemas/_arrayInputAddItem builderClass=../arrayInputJsonPathPiece.camelCase }} + {{/if}} + {{else}} + {{! todo handle this, 3.1.0 document use-case }} + {{/with}} + + public List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{/with}}> build() { + return list; + } } {{/if}} diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_arrayInput.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_arrayInput.hbs new file mode 100644 index 00000000000..08a9595a9fa --- /dev/null +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_arrayInput.hbs @@ -0,0 +1,33 @@ + +{{> src/main/java/packagename/components/_helper_header_from_identifier_pieces headerSize=(join headerSize "#" "") identifierPieces=(append identifierPieces arrayInputJsonPathPiece) }} +public class {{arrayInputJsonPathPiece.camelCase}}
+builder for `List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}>` + +A class that builds the List input type + +{{headerSize}}# Constructor Summary +| Constructor and Description | +| --------------------------- | +| {{arrayInputJsonPathPiece.camelCase}}()
Creates an empty list | +| {{arrayInputJsonPathPiece.camelCase}}(List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}> items)
Stores the items in a list | + +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +{{#with items}} + {{#if refInfo }} + {{#if refInfo.refModule}} + {{#with getDeepestRef }} +{{> src/main/java/packagename/components/schemas/_arrayInputAddItem builderClass=../../arrayInputJsonPathPiece.camelCase forDocs=true useContainer=true }} + {{/with}} + {{else}} + {{! self reference} }} +| {{../arrayInputJsonPathPiece.camelCase}} | add(List item) | + {{/if}} + {{else}} +{{> src/main/java/packagename/components/schemas/_arrayInputAddItem builderClass=../arrayInputJsonPathPiece.camelCase forDocs=true }} + {{/if}} +{{else}} +{{! todo handle this, 3.1.0 document use-case }} +{{/with}} +| List<{{#with items}}{{> src/main/java/packagename/components/schemas/types/schema_input_type sourceJsonPath=../jsonPath forceNull=true noExtends=true }}{{else}}@Nullable Object{{/with}}> | build()
Returns list input that should be used with Schema.validate | diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_codeSample.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_codeSample.hbs index 76c9874a8c0..d087b5b39c8 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_codeSample.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/docschema_codeSample.hbs @@ -81,7 +81,13 @@ boolean validatedPayload = {{../../../containerJsonPathPiece.camelCase}}.{{../js {{/eq}} {{/eq}} {{#with this}} + {{#and (eq type "array") ../arrayInputJsonPathPiece.camelCase }} + new {{../containerJsonPathPiece.camelCase}}.{{../arrayInputJsonPathPiece.camelCase}}( + {{> src/main/java/packagename/components/schemas/helpers/payload_renderer endChar="" }} + ).build(), + {{else}} {{> src/main/java/packagename/components/schemas/helpers/payload_renderer endChar="," }} + {{/and}} {{/with}} configuration ); diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_input_type_base.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_input_type_base.hbs index 6b22b6802f5..0499bef0752 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_input_type_base.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_input_type_base.hbs @@ -20,67 +20,11 @@ String {{~/eq}} {{else}} {{#eq this "number"}} - {{#eq ../format null}} Number - {{~else}} - {{#eq ../format "float"}} - {{#if forceNull}} -Float - {{~else}} -float - {{~/if}} - {{else}} - {{#eq ../format "double"}} - {{#if forceNull}} -Double - {{~else}} -double - {{~/if}} - {{else}} - {{#eq ../format "int32"}} - {{#if forceNull}} -Integer - {{~else}} -int - {{~/if}} - {{else}} - {{#eq ../format "int64"}} - {{#if forceNull}} -Long - {{~else}} -long - {{~/if}} - {{/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{else}} + {{~else}} {{#eq this "integer"}} - {{#eq ../format null}} - {{#if forceNull}} -Long - {{~else}} -long - {{~/if}} - {{else}} - {{#eq ../format "int32"}} - {{#if forceNull}} -Integer - {{~else}} -int - {{~/if}} - {{else}} - {{#eq ../format "int64"}} - {{#if forceNull}} -Long - {{~else}} -long - {{~/if}} - {{/eq}} - {{/eq}} - {{/eq}} - {{else}} +Number + {{~else}} {{#eq this "array"}} {{#eq ../jsonPath sourceJsonPath}} List @@ -127,39 +71,11 @@ Map {{~/eq}} {{else}} {{#eq this "number"}} - {{#eq ../format null}} {{#unless noExtends}}? extends {{/unless}}@Nullable Number - {{~else}} - {{#eq ../format "float"}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Float - {{~else}} - {{#eq ../format "double"}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Double - {{~else}} - {{#eq ../format "int32"}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Integer - {{~else}} - {{#eq ../format "int64"}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Long - {{~/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{else}} + {{~else}} {{#eq this "integer"}} - {{#eq ../format null}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Long - {{~else}} - {{#eq ../format "int32"}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Integer - {{~else}} - {{#eq ../format "int64"}} -{{#unless noExtends}}? extends {{/unless}}@Nullable Long - {{~/eq}} - {{/eq}} - {{/eq}} - {{else}} +{{#unless noExtends}}? extends {{/unless}}@Nullable Number + {{~else}} {{#eq this "array"}} {{#eq ../jsonPath sourceJsonPath}} {{#unless noExtends}}? extends {{/unless}}@Nullable List diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_output_type_base.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_output_type_base.hbs index 4a699c782d3..9d21ef0ccaa 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_output_type_base.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/types/_schema_output_type_base.hbs @@ -20,67 +20,11 @@ String {{~/eq}} {{else}} {{#eq this "number"}} - {{#eq ../format null}} Number - {{~else}} - {{#eq ../format "float"}} - {{#if forceNull}} -Float - {{~else}} -float - {{~/if}} - {{else}} - {{#eq ../format "double"}} - {{#if forceNull}} -Double - {{~else}} -double - {{~/if}} - {{else}} - {{#eq ../format "int32"}} - {{#if forceNull}} -Integer - {{~else}} -int - {{~/if}} - {{else}} - {{#eq ../format "int64"}} - {{#if forceNull}} -Long - {{~else}} -long - {{~/if}} - {{/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{else}} + {{~else}} {{#eq this "integer"}} - {{#eq ../format null}} - {{#if forceNull}} -Long - {{~else}} -long - {{~/if}} - {{else}} - {{#eq ../format "int32"}} - {{#if forceNull}} -Integer - {{~else}} -int - {{~/if}} - {{else}} - {{#eq ../format "int64"}} - {{#if forceNull}} -Long - {{~else}} -long - {{~/if}} - {{/eq}} - {{/eq}} - {{/eq}} - {{else}} +Number + {{~else}} {{#eq this "array"}} {{#if arrayOutputJsonPathPiece}} {{#if useLink}} @@ -143,39 +87,11 @@ FrozenMap {{~/eq}} {{else}} {{#eq this "number"}} - {{#eq ../format null}} {{#unless noAnnotations}}@Nullable {{/unless}}Number - {{~else}} - {{#eq ../format "float"}} -{{#unless noAnnotations}}@Nullable {{/unless}}Float - {{~else}} - {{#eq ../format "double"}} -{{#unless noAnnotations}}@Nullable {{/unless}}Double - {{~else}} - {{#eq ../format "int32"}} -{{#unless noAnnotations}}@Nullable {{/unless}}Integer - {{~else}} - {{#eq ../format "int64"}} -{{#unless noAnnotations}}@Nullable {{/unless}}Long - {{~/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{/eq}} - {{else}} + {{~else}} {{#eq this "integer"}} - {{#eq ../format null}} -{{#unless noAnnotations}}@Nullable {{/unless}}Long - {{~else}} - {{#eq ../format "int32"}} -{{#unless noAnnotations}}@Nullable {{/unless}}Integer - {{~else}} - {{#eq ../format "int64"}} -{{#unless noAnnotations}}@Nullable {{/unless}}Long - {{~/eq}} - {{/eq}} - {{/eq}} - {{else}} +{{#unless noAnnotations}}@Nullable {{/unless}}Number + {{~else}} {{#eq this "array"}} {{#if arrayOutputJsonPathPiece}} {{#if useLink}} diff --git a/src/main/resources/java/src/test/java/packagename/components/schemas/Schema_test.hbs b/src/main/resources/java/src/test/java/packagename/components/schemas/Schema_test.hbs index 821a30b2d16..4082619bdfb 100644 --- a/src/main/resources/java/src/test/java/packagename/components/schemas/Schema_test.hbs +++ b/src/main/resources/java/src/test/java/packagename/components/schemas/Schema_test.hbs @@ -27,7 +27,13 @@ public class {{containerJsonPathPiece.camelCase}}Test { {{#if valid}} schema.validate( {{#with data}} + {{#and (eq type "array") ../arrayInputJsonPathPiece }} + new {{../containerJsonPathPiece.camelCase}}.{{../arrayInputJsonPathPiece.camelCase}}( + {{> src/main/java/packagename/components/schemas/helpers/payload_renderer endChar="" }} + ).build(), + {{else}} {{> src/main/java/packagename/components/schemas/helpers/payload_renderer endChar="," }} + {{/and}} {{/with}} configuration ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ListBuilderTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ListBuilderTest.hbs new file mode 100644 index 00000000000..e6c4f1887d1 --- /dev/null +++ b/src/main/resources/java/src/test/java/packagename/schemas/ListBuilderTest.hbs @@ -0,0 +1,61 @@ +package {{{packageName}}}.schemas; + +import org.checkerframework.checker.nullness.qual.Nullable; +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; +import java.util.List; + +public class ListBuilderTest { + public static class NullableListWithNullableItemsListBuilder { + // class to build List<@Nullable List> + private final List<@Nullable List> list; + + public NullableListWithNullableItemsListBuilder() { + list = new ArrayList<>(); + } + + public NullableListWithNullableItemsListBuilder(List<@Nullable List> list) { + this.list = list; + } + + public NullableListWithNullableItemsListBuilder add(Void item) { + list.add(null); + return this; + } + + public NullableListWithNullableItemsListBuilder add(List item) { + list.add(item); + return this; + } + + public List<@Nullable List> build() { + return list; + } + } + + @Test + public void testSucceedsWithNullInput() { + List<@Nullable List> inList = new ArrayList<>(); + inList.add(null); + var builder = new NullableListWithNullableItemsListBuilder(inList); + Assert.assertEquals(inList, builder.build()); + + builder = new NullableListWithNullableItemsListBuilder(); + builder.add((Void) null); + Assert.assertEquals(inList, builder.build()); + } + + @Test + public void testSucceedsWithNonNullInput() { + List> inList = new ArrayList<>(); + inList.add(List.of(1)); + var builder = new NullableListWithNullableItemsListBuilder(inList); + Assert.assertEquals(inList, builder.build()); + + builder = new NullableListWithNullableItemsListBuilder(); + builder.add(List.of(1)); + Assert.assertEquals(inList, builder.build()); + } +} \ No newline at end of file