diff --git a/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md b/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md index 02e74ac57a6..cc1e29df040 100644 --- a/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md +++ b/samples/client/3_0_3_unit_test/java/docs/RootServerInfo.md @@ -5,12 +5,14 @@ public class RootServerInfo A class that provides a server, and any needed server info classes - a class that is a ServerProvider +- a builder for the ServerProvider - an enum class that stores server index values ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [RootServerInfo.RootServerInfo1](#rootserverinfo1)
class that stores a server index | +| static class | [RootServerInfo.RootServerInfoBuilder](#rootserverinfobuilder)
class that stores a server index | | enum | [RootServerInfo.ServerIndex](#serverindex)
class that stores a server index | ## RootServerInfo1 @@ -21,7 +23,6 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfo1()
Creates an instance using default server variable values | | RootServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | ### Field Summary @@ -34,6 +35,21 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | +## RootServerInfoBuilder + +a builder for [RootServerInfo1](#rootserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [RootServerInfoBuilder](#rootserverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [RootServerInfo1](#rootserverinfo1) | build() | + ## ServerIndex enum ServerIndex
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 f61cc00ee2c..671b2fcfa59 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 @@ -81,7 +81,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMap validatedPayload = 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 78ef54b76b2..4b4177aa3aa 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 @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap validatedPayload = diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md index 77997f31d22..90d702e5191 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = AnyofWithBaseSchema.AnyofWithBaseSchema1.validate( 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 69f99a758cd..a7a75a7b524 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 @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList validatedPayload = diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md index 0f6912b5af3..40344018d18 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1.validate( diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md index c4d78a7d1b9..c8b731041b0 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1.validate( diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md index 83756cb95d9..633a79af9af 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumWithEscapedCharacters.EnumWithEscapedCharacters1.validate( diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md index e309a82cf25..dfbab8589b3 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // boolean validation boolean validatedPayload = EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01.validate( diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md index 86ef2406c7e..d5060d82ffb 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // boolean validation boolean validatedPayload = EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11.validate( 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 acafe3b0529..d8817265151 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 @@ -71,7 +71,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation EnumsInProperties.EnumsInPropertiesMap validatedPayload = @@ -203,7 +203,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumsInProperties.Bar.validate( @@ -282,7 +282,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumsInProperties.Foo.validate( diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md index e56421c1c03..2475a1ae723 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1.validate( 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 78597b2992a..af68244da38 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 @@ -256,7 +256,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = InvalidStringValueForDefault.Bar.validate( 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 ec496d790ea..ad403371444 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 @@ -80,7 +80,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.NestedItemsList validatedPayload = @@ -187,7 +187,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.ItemsList2 validatedPayload = @@ -292,7 +292,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.ItemsList1 validatedPayload = @@ -395,7 +395,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.ItemsList validatedPayload = 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 d949a1fb5f6..6663a4c2e36 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 @@ -220,7 +220,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NotMoreComplexSchema.NotMap validatedPayload = diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NulCharactersInStrings.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NulCharactersInStrings.md index 6c339336759..ec4d57963c7 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NulCharactersInStrings.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NulCharactersInStrings.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = NulCharactersInStrings.NulCharactersInStrings1.validate( diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md index be41973494a..48247523768 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = OneofWithBaseSchema.OneofWithBaseSchema1.validate( 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 aa6ef05c749..05f01cc6024 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 @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation RefInAdditionalproperties.RefInAdditionalpropertiesMap validatedPayload = 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 b9e45f14d30..e639fbba6ce 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 @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation RefInItems.RefInItemsList validatedPayload = diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/SimpleEnumValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/SimpleEnumValidation.md index 9bbaf301aab..365e67c9a68 100644 --- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/SimpleEnumValidation.md +++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/SimpleEnumValidation.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = SimpleEnumValidation.SimpleEnumValidation1.validate( 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 e43214a303d..080323e8b97 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 @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap validatedPayload = @@ -178,7 +178,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.Alpha.validate( diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java index 7194d05eda1..2e2c3d87885 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java @@ -9,13 +9,9 @@ public class RootServerInfo { public static class RootServerInfo1 implements ServerProvider { - public final Server0 server0; + private final Server0 server0; - public RootServerInfo1() { - server0 = new Server0(); - } - - public RootServerInfo1( + RootServerInfo1( @Nullable Server0 server0 ) { this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); @@ -27,6 +23,23 @@ public Server getServer(ServerIndex serverIndex) { } } + public static class RootServerInfoBuilder { + private @Nullable Server0 server0; + + public RootServerInfoBuilder() {} + + public RootServerInfoBuilder server0(Server0 server0) { + this.server0 = server0; + return this; + } + + public RootServerInfo1 build() { + return new RootServerInfo1( + server0 + ); + } + } + public enum ServerIndex { SERVER_0 } 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 abb7b8d36d1..c8d2e6e1e02 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 @@ -320,7 +320,7 @@ public AdditionalpropertiesAllowsASchemaWhichShouldValidateMap validate(Map> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 e9d0e2c6990..91053e6c774 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 @@ -312,7 +312,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -324,7 +324,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -336,7 +336,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -364,7 +364,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -407,7 +407,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -441,7 +441,7 @@ public AdditionalpropertiesAreAllowedByDefaultMap validate(Map arg, Schema Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 44a6b34fe91..56ea9462d47 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 @@ -157,7 +157,7 @@ public AdditionalpropertiesCanExistByItselfMap validate(Map arg, SchemaCon Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 5a1a80b1f09..e0e8acfbbb5 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 @@ -239,7 +239,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -251,7 +251,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -263,7 +263,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -291,7 +291,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -334,7 +334,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -368,7 +368,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -587,7 +587,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -599,7 +599,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -611,7 +611,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -639,7 +639,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -682,7 +682,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -719,7 +719,7 @@ public AdditionalpropertiesShouldNotLookInApplicatorsMap validate(Map arg, Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 e6ea2375397..8e7bc5d7152 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 @@ -214,7 +214,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -266,7 +266,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -309,7 +309,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -343,7 +343,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -589,7 +589,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -601,7 +601,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -613,7 +613,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -641,7 +641,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -718,7 +718,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -883,7 +883,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -895,7 +895,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -907,7 +907,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -935,7 +935,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1012,7 +1012,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java index 856d9d3abfb..fa51a189f38 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -673,7 +673,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -685,7 +685,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -697,7 +697,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -725,7 +725,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -768,7 +768,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -802,7 +802,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -972,7 +972,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -984,7 +984,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -996,7 +996,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1024,7 +1024,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1067,7 +1067,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1101,7 +1101,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java index 9ce014d0248..b97abc19703 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -681,7 +681,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -693,7 +693,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -705,7 +705,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -733,7 +733,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -776,7 +776,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -810,7 +810,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 698b971ecc6..b2d64cdcdff 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 @@ -197,7 +197,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -209,7 +209,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -221,7 +221,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -249,7 +249,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -292,7 +292,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -326,7 +326,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -572,7 +572,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -584,7 +584,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -596,7 +596,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -624,7 +624,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -667,7 +667,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -701,7 +701,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -975,7 +975,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -987,7 +987,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -999,7 +999,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1027,7 +1027,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1070,7 +1070,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1104,7 +1104,7 @@ public AllofWithBaseSchemaMap validate(Map arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java index 5d05360f9f3..09d4d5bd234 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java @@ -122,7 +122,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -146,7 +146,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -174,7 +174,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -251,7 +251,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java index 58da6606e04..5db2ddd6167 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java index ce1633d2a1f..17920aead56 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java index cb91cb50c79..3fbe112d6c6 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java @@ -134,7 +134,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -146,7 +146,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -158,7 +158,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -186,7 +186,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -229,7 +229,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -263,7 +263,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java index 66159633ae0..65d6fc3dc39 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java @@ -114,7 +114,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -138,7 +138,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -166,7 +166,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -209,7 +209,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -243,7 +243,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -408,7 +408,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -420,7 +420,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -432,7 +432,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -460,7 +460,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -503,7 +503,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -537,7 +537,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 d0c90282afe..713f9fcbc2e 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 @@ -214,7 +214,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -266,7 +266,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -309,7 +309,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -343,7 +343,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -589,7 +589,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -601,7 +601,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -613,7 +613,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -641,7 +641,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -718,7 +718,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -883,7 +883,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -895,7 +895,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -907,7 +907,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -935,7 +935,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1012,7 +1012,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java index 59378958342..dd8146a6928 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -650,7 +650,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java index c8613b132f2..70fdcfb67c3 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 55ad72ad773..f4b856dfc20 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 @@ -166,7 +166,7 @@ public ArrayTypeMatchesArraysList validate(List arg, SchemaConfiguration conf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java index 8fe59faa883..f068cfabace 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java @@ -109,7 +109,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -121,7 +121,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -133,7 +133,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -238,7 +238,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java index 93433de2ebf..97d970fdd86 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java @@ -109,7 +109,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -121,7 +121,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -133,7 +133,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -238,7 +238,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java index 404a15c9aaa..130bc06e809 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java @@ -109,7 +109,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -121,7 +121,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -133,7 +133,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -238,7 +238,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java index a8a45bb6723..219115ccc98 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java index 8f6d32fe0bc..d8ac7adf0b6 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java index e762044b002..ce8177a6387 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java @@ -124,7 +124,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java index 0924081d382..14e53f54528 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java @@ -124,7 +124,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java index 5567fdd3228..84f60e4b1e1 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java @@ -80,7 +80,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java index afd6b062012..ab70ac2e4a4 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java @@ -76,7 +76,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java index df89d7cd7ac..75c2fb6c18b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java @@ -76,7 +76,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 7b05dad2aab..d13e758b416 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 @@ -82,7 +82,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -171,7 +171,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -390,7 +390,7 @@ public EnumsInPropertiesMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 8982d39f0f7..97ae41e88ad 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 @@ -234,7 +234,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -246,7 +246,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -258,7 +258,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -286,7 +286,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -329,7 +329,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -363,7 +363,7 @@ public ForbiddenPropertyMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java index 94bf4a17b61..ee4cf4c4a3a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java index e171937eb35..4a6188552e0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.java @@ -66,7 +66,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 8b3fbbc5256..e1ae5c798c4 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 @@ -75,7 +75,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -256,7 +256,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -268,7 +268,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -280,7 +280,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -308,7 +308,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -351,7 +351,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -385,7 +385,7 @@ public InvalidStringValueForDefaultMap validate(Map arg, SchemaConfigurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java index 23dac5af28c..041f24fa89d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java index 01da7d38593..5be6b143d1e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java index fa8749c26d6..ccbf3584790 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java index aa726fc1d7c..0071fbe9542 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java index 8b9f476e860..c27fc00aaac 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java index 4c4efef907a..095abc7f17f 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java index c93a08ffe0b..5d521cad3ad 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java index ea6e8963c47..8ba35949219 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java index 468b9336092..35c87d6efd2 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java index eefb6bdaa0b..66a94e848ca 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java index 33543c9daf1..476d28f9ef7 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java index b933bb806b4..c7d92b84196 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java index 02e7fe8cac3..0971242b614 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java index a04af48e3f5..e9c30d878b8 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java index be402dca36e..f05f987e5e5 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -409,7 +409,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -433,7 +433,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -461,7 +461,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -504,7 +504,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -538,7 +538,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java index fdca504a464..4b123ad5b55 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -409,7 +409,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -433,7 +433,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -461,7 +461,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -504,7 +504,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -538,7 +538,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 a85dac715e0..94ba5d02996 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 @@ -137,7 +137,7 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -259,7 +259,7 @@ public ItemsList1 validate(List arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -381,7 +381,7 @@ public ItemsList2 validate(List arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -509,7 +509,7 @@ public NestedItemsList validate(List arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java index 489c92daf72..096f3d30b79 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -409,7 +409,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -433,7 +433,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -461,7 +461,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -504,7 +504,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -538,7 +538,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java index 15045fcbc96..56e58519e7d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 6947755b346..2d64dcfa61b 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 @@ -172,7 +172,7 @@ public NotMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -281,7 +281,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -293,7 +293,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -305,7 +305,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -333,7 +333,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -376,7 +376,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -410,7 +410,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java index 89f32a64c25..489f9633dd5 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java @@ -78,7 +78,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 6eda0789786..c1008840dae 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 @@ -247,7 +247,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -259,7 +259,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -271,7 +271,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -299,7 +299,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -342,7 +342,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -376,7 +376,7 @@ public ObjectPropertiesValidationMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java index d649859a696..2472dd24499 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java @@ -114,7 +114,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -138,7 +138,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -166,7 +166,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -209,7 +209,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -243,7 +243,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -408,7 +408,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -420,7 +420,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -432,7 +432,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -460,7 +460,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -503,7 +503,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -537,7 +537,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 c6eab7c1eef..97370cd35ac 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 @@ -214,7 +214,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -266,7 +266,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -309,7 +309,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -343,7 +343,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -589,7 +589,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -601,7 +601,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -613,7 +613,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -641,7 +641,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -718,7 +718,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -883,7 +883,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -895,7 +895,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -907,7 +907,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -935,7 +935,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1012,7 +1012,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java index e5fa1ac5522..619be52f3e2 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -650,7 +650,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java index 4c9debae918..6a2499aefa6 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 b1a56e9ea64..4dde715b451 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 @@ -326,7 +326,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -338,7 +338,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -350,7 +350,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -378,7 +378,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -455,7 +455,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -834,7 +834,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -846,7 +846,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -858,7 +858,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -886,7 +886,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -929,7 +929,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -963,7 +963,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1116,7 +1116,7 @@ public static OneofWithRequired1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java index e0493ed1d41..af38501cc30 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java index 9027293703c..dce49a7decd 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 78e2eecd84c..064c5108ab0 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 @@ -428,7 +428,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -452,7 +452,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -480,7 +480,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -523,7 +523,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -557,7 +557,7 @@ public PropertiesWithEscapedCharactersMap validate(Map arg, SchemaConfigur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 ee776b80ce2..b39bb639be9 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 @@ -180,7 +180,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -192,7 +192,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -232,7 +232,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -275,7 +275,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -309,7 +309,7 @@ public PropertyNamedRefThatIsNotAReferenceMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 36322a4c226..73e22ca8578 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 @@ -196,7 +196,7 @@ public RefInAdditionalpropertiesMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java index 4a14a8d4ab9..cc263675e51 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAllof.java @@ -110,7 +110,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -122,7 +122,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -162,7 +162,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -205,7 +205,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -239,7 +239,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java index 43670024c8c..01e1a1990e8 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInAnyof.java @@ -110,7 +110,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -122,7 +122,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -162,7 +162,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -205,7 +205,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -239,7 +239,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 69295c9edac..cabdc6a6619 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 @@ -157,7 +157,7 @@ public RefInItemsList validate(List arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java index cdd3c31828e..6da154b57bc 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInNot.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java index ca637115104..1036b7c6fc9 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RefInOneof.java @@ -110,7 +110,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -122,7 +122,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -162,7 +162,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -205,7 +205,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -239,7 +239,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 b6a3529b6ac..f5158648591 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 @@ -226,7 +226,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -250,7 +250,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -278,7 +278,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -321,7 +321,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -355,7 +355,7 @@ public RefInPropertyMap validate(Map arg, SchemaConfiguration configuratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 3d0de2d7315..6727cd84b8b 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 @@ -232,7 +232,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -244,7 +244,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -256,7 +256,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -284,7 +284,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -327,7 +327,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -361,7 +361,7 @@ public RequiredDefaultValidationMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 d8d395a931a..17db95a39f5 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 @@ -330,7 +330,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -342,7 +342,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -354,7 +354,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -425,7 +425,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -459,7 +459,7 @@ public RequiredValidationMap validate(Map arg, SchemaConfiguration configu Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 02037113e85..50ff889bf6e 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 @@ -232,7 +232,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -244,7 +244,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -256,7 +256,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -284,7 +284,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -327,7 +327,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -361,7 +361,7 @@ public RequiredWithEmptyArrayMap validate(Map arg, SchemaConfiguration con Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 05018eb695c..cb109437f5e 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 @@ -1728,7 +1728,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1740,7 +1740,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1752,7 +1752,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1780,7 +1780,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1823,7 +1823,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1857,7 +1857,7 @@ public RequiredWithEscapedCharactersMap validate(Map arg, SchemaConfigurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java index 798c779beed..1d431b7c9c9 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java @@ -134,7 +134,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 0685c66ccda..80b0e02358f 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 @@ -70,7 +70,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -267,7 +267,7 @@ public TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap validate(Map< Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java index 078f29b8bbf..874886522e4 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java index 71f3ddc3708..016742613f0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java index 6b23d7035f4..47a3707cda3 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java index dea06a51577..db347e91deb 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java index 598b74632e2..c251a26b386 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 90fa50e06e4..8eb5fd403ff 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -16,8 +16,8 @@ public class ApiConfiguration { private final @Nullable Duration timeout; public ApiConfiguration() { - serverInfo = new ServerInfo(); - serverIndexInfo = new ServerIndexInfo(); + serverInfo = new ServerInfoBuilder().build(); + serverIndexInfo = new ServerIndexInfoBuilder().build(); timeout = null; } @@ -28,36 +28,61 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, } public static class ServerInfo { - protected final RootServerInfo.RootServerInfo1 rootServerInfo; + final RootServerInfo.RootServerInfo1 rootServerInfo; - public ServerInfo() { - rootServerInfo = new RootServerInfo.RootServerInfo1(); - } - - public ServerInfo( + ServerInfo( RootServerInfo. @Nullable RootServerInfo1 rootServerInfo ) { - this.rootServerInfo = Objects.requireNonNullElseGet(rootServerInfo, RootServerInfo.RootServerInfo1::new); + this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); + } + } + + public static class ServerInfoBuilder { + private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; + public ServerInfoBuilder() {} + + public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { + this.rootServerInfo = rootServerInfo; + return this; + } + + public ServerInfo build() { + return new ServerInfo( + rootServerInfo + ); } } public static class ServerIndexInfo { - protected RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; - public ServerIndexInfo() {} + final RootServerInfo.ServerIndex rootServerInfoServerIndex; + + ServerIndexInfo( + RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex + ) { + this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); + } + } + + public static class ServerIndexInfoBuilder { + private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; + public ServerIndexInfoBuilder() {} - public ServerIndexInfo rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { + public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { this.rootServerInfoServerIndex = serverIndex; return this; } + + public ServerIndexInfo build() { + return new ServerIndexInfo( + rootServerInfoServerIndex + ); + } } public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { var serverProvider = serverInfo.rootServerInfo; if (serverIndex == null) { - RootServerInfo. @Nullable ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; - if (configServerIndex == null) { - throw new RuntimeException("rootServerInfoServerIndex is unset"); - } + RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java index df97d799ff0..1223c57764c 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java @@ -44,94 +44,6 @@ public record JsonSchemaKeywordFlags( boolean unevaluatedProperties ) { - public static JsonSchemaKeywordFlags ofNone() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - - public static JsonSchemaKeywordFlags onlyFormat() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - public LinkedHashSet getKeywords() { LinkedHashSet enabledKeywords = new LinkedHashSet<>(); if (additionalProperties) { enabledKeywords.add("additionalProperties"); } @@ -175,4 +87,248 @@ public LinkedHashSet getKeywords() { if (unevaluatedProperties) { enabledKeywords.add("unevaluatedProperties"); } return enabledKeywords; } + + public static class Builder { + private boolean additionalProperties; + private boolean allOf; + private boolean anyOf; + private boolean const_; + private boolean contains; + private boolean dependentRequired; + private boolean dependentSchemas; + private boolean discriminator; + private boolean else_; + private boolean enum_; + private boolean exclusiveMaximum; + private boolean exclusiveMinimum; + private boolean format; + private boolean if_; + private boolean maximum; + private boolean minimum; + private boolean items; + private boolean maxContains; + private boolean maxItems; + private boolean maxLength; + private boolean maxProperties; + private boolean minContains; + private boolean minItems; + private boolean minLength; + private boolean minProperties; + private boolean multipleOf; + private boolean not; + private boolean oneOf; + private boolean pattern; + private boolean patternProperties; + private boolean prefixItems; + private boolean properties; + private boolean propertyNames; + private boolean required; + private boolean then; + private boolean type; + private boolean uniqueItems; + private boolean unevaluatedItems; + private boolean unevaluatedProperties; + + public Builder() {} + + public Builder additionalProperties() { + additionalProperties = true; + return this; + } + public Builder allOf() { + allOf = true; + return this; + } + public Builder anyOf() { + anyOf = true; + return this; + } + public Builder const_() { + const_ = true; + return this; + } + public Builder contains() { + contains = true; + return this; + } + public Builder dependentRequired() { + dependentRequired = true; + return this; + } + public Builder dependentSchemas() { + dependentSchemas = true; + return this; + } + public Builder discriminator() { + discriminator = true; + return this; + } + public Builder else_() { + else_ = true; + return this; + } + public Builder enum_() { + enum_ = true; + return this; + } + public Builder exclusiveMaximum() { + exclusiveMaximum = true; + return this; + } + public Builder exclusiveMinimum() { + exclusiveMinimum = true; + return this; + } + public Builder format() { + format = true; + return this; + } + public Builder if_() { + if_ = true; + return this; + } + public Builder maximum() { + maximum = true; + return this; + } + public Builder minimum() { + minimum = true; + return this; + } + public Builder items() { + items = true; + return this; + } + public Builder maxContains() { + maxContains = true; + return this; + } + public Builder maxItems() { + maxItems = true; + return this; + } + public Builder maxLength() { + maxLength = true; + return this; + } + public Builder maxProperties() { + maxProperties = true; + return this; + } + public Builder minContains() { + minContains = true; + return this; + } + public Builder minItems() { + minItems = true; + return this; + } + public Builder minLength() { + minLength = true; + return this; + } + public Builder minProperties() { + minProperties = true; + return this; + } + public Builder multipleOf() { + multipleOf = true; + return this; + } + public Builder not() { + not = true; + return this; + } + public Builder oneOf() { + oneOf = true; + return this; + } + public Builder pattern() { + pattern = true; + return this; + } + public Builder patternProperties() { + patternProperties = true; + return this; + } + public Builder prefixItems() { + prefixItems = true; + return this; + } + public Builder properties() { + properties = true; + return this; + } + public Builder propertyNames() { + propertyNames = true; + return this; + } + public Builder required() { + required = true; + return this; + } + public Builder then() { + then = true; + return this; + } + public Builder type() { + type = true; + return this; + } + public Builder uniqueItems() { + uniqueItems = true; + return this; + } + public Builder unevaluatedItems() { + unevaluatedItems = true; + return this; + } + public Builder unevaluatedProperties() { + unevaluatedProperties = true; + return this; + } + public JsonSchemaKeywordFlags build() { + return new JsonSchemaKeywordFlags( + additionalProperties, + allOf, + anyOf, + const_, + contains, + dependentRequired, + dependentSchemas, + discriminator, + else_, + enum_, + exclusiveMaximum, + exclusiveMinimum, + format, + if_, + maximum, + minimum, + items, + maxContains, + maxItems, + maxLength, + maxProperties, + minContains, + minItems, + minLength, + minProperties, + multipleOf, + not, + oneOf, + pattern, + patternProperties, + prefixItems, + properties, + propertyNames, + required, + then, + type, + uniqueItems, + unevaluatedItems, + unevaluatedProperties + ); + } + } } \ No newline at end of file diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 7990efaa995..6b374aebbe1 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -89,7 +89,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -101,7 +101,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -113,7 +113,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -141,7 +141,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -183,7 +183,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 12af2ba8196..86598ab393d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -47,7 +47,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 4853a27dee8..9e795318d67 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index a5b4f50d788..3304924e331 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index 6651aa44497..f9e3f6a6f3b 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -49,7 +49,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 9bcb31d2068..c45d985d95d 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -49,7 +49,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 101b2ea1f57..06a918eecb0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -49,7 +49,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index 2938d08bf21..b31b7688b58 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -52,7 +52,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index c17217a89ab..4ea9603434e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -54,7 +54,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 34b79da8f66..a89a70c02c5 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -54,7 +54,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 8135ed020cf..bce36256ac6 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -69,7 +69,7 @@ public static ListJsonSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 85396cda11a..02f18d8ba8a 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -74,7 +74,7 @@ public static MapJsonSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 7a1a3367d78..1b5160638ff 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -91,7 +91,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -103,7 +103,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -143,7 +143,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -185,7 +185,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index af32938007e..293807e5c12 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -48,7 +48,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 57629ac9557..260d4e15a44 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -53,7 +53,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 7185ac28496..92570628dd0 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 2502602642f..c9ccef0420e 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 8e17449eb27..8608632a6dd 100644 --- a/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/3_0_3_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -76,7 +76,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -88,7 +88,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -100,7 +100,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -170,7 +170,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 6061b2a35b4..06929db3b7c 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesAllowsASchemaWhichShouldValidateTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNoAdditionalPropertiesIsValidPasses() throws ValidationException { 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 cc313aecdc7..f28cfca5dfb 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesAreAllowedByDefaultTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAdditionalPropertiesAreAllowedPasses() throws ValidationException { 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 511ed766816..3c5b384083e 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesCanExistByItselfTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnAdditionalValidPropertyIsValidPasses() throws ValidationException { 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 8837b307146..11127a7553c 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesShouldNotLookInApplicatorsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertiesDefinedInAllofAreNotExaminedFails() { 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 0a0b984f2a9..b7ab9e5a841 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofCombinedWithAnyofOneofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllofFalseAnyofFalseOneofTrueFails() { 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 a1674088c48..1c987f29ab8 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofSimpleTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchOneFails() { 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 dd860fd7933..75aab7bd208 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchSecondFails() { 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 6ecb6d11785..e2957afa467 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithBaseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchBaseSchemaFails() { 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 b9789ef7a07..df1d1bfead6 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithOneEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnyDataIsValidPasses() throws ValidationException { 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 8ca39f6230c..8309b3c7779 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithTheFirstEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testStringIsInvalidFails() { 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 8dd9396f839..e33c141d0e3 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithTheLastEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testStringIsInvalidFails() { 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 de5acdab7e0..07bea5fdec3 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithTwoEmptySchemasTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnyDataIsValidPasses() throws ValidationException { 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 16f9ce46d75..e2a398b9032 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofComplexTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSecondAnyofValidComplexPasses() throws ValidationException { 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 8862d6c0537..b5c54e4a337 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBothAnyofValidPasses() throws ValidationException { 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 ba43a0f6796..eb63cce962e 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofWithBaseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchBaseSchemaFails() { 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 dd35d31abde..2f99332b656 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofWithOneEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumberIsValidPasses() throws ValidationException { 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 3f66f6dd7d7..19022726098 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ArrayTypeMatchesArraysTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testABooleanIsNotAnArrayFails() { 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 87d8cd62521..c74c1e204d7 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class BooleanTypeMatchesBooleansTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAFloatIsNotABooleanFails() { 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 74374bb8c74..a76cb7bbcae 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ByIntTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testIntByIntFailFails() { 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 4e7853023c6..98e8265e712 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ByNumberTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void test35IsNotMultipleOf15Fails() { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java index 49412ed2b66..014d95ee133 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class BySmallNumberTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void test000751IsNotMultipleOf00001Fails() { 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 ec39814b9e5..46841ac511b 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DateTimeFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 3c2655ad339..dde77c6f756 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EmailFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 41bd273b265..4dbef3064c9 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWith0DoesNotMatchFalseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFloatZeroIsValidPasses() throws ValidationException { 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 68149695cb4..fd612319e62 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWith1DoesNotMatchTrueTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testTrueIsInvalidFails() { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java index 824c69b9e52..d0c9650f367 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnotherStringIsInvalidFails() { 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 2ebf7b16a0b..c83eade9a73 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWithFalseDoesNotMatch0Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFloatZeroIsInvalidFails() { 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 126722f76af..5ef4d1b21b0 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWithTrueDoesNotMatch1Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFloatOneIsInvalidFails() { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java index 6ae3209d9ab..e59dfd7a829 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumsInPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testWrongBarValueFails() { 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 f4abf2a98e7..37f48241628 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ForbiddenPropertyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyPresentFails() { 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 5363089e46a..449634d25bc 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class HostnameFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 4feb92f8419..2a9cc349419 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IntegerTypeMatchesIntegersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnObjectIsNotAnIntegerFails() { 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 08a2ebb0375..eb129fee5dd 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAlwaysInvalidButNaiveImplementationsMayRaiseAnOverflowErrorFails() { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefaultTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefaultTest.java index 8ba96984479..db8b17b5f6e 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefaultTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/InvalidStringValueForDefaultTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class InvalidStringValueForDefaultTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidWhenPropertyIsSpecifiedPasses() throws ValidationException { 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 ef0437cb7a5..46a7ae48fb5 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class Ipv4FormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 f31ff138716..d8d89c8ffbf 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class Ipv6FormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 6c3cfa7e875..63e78210fd9 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class JsonPointerFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java index b1dff24361b..1dfc1820ee2 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaximumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAboveTheMaximumIsInvalidFails() { 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 cb8878f3a0b..e60c201fe63 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaximumValidationWithUnsignedIntegerTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAboveTheMaximumIsInvalidFails() { 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 d3f0f0840f7..9a32e9089e9 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxitemsValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testShorterIsValidPasses() throws ValidationException { 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 85afd54340c..a349fcebd6d 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxlengthValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testShorterIsValidPasses() throws ValidationException { 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 677ee68f23c..e382257f333 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class Maxproperties0MeansTheObjectIsEmptyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOnePropertyIsInvalidFails() { 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 3dfdc1f8f4a..04955424208 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxpropertiesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testShorterIsValidPasses() throws ValidationException { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java index f56d91c9459..ba79a520280 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinimumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBoundaryPointIsValidPasses() throws ValidationException { 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 1f8d353e533..4dc63ece57a 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinimumValidationWithSignedIntegerTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBoundaryPointWithFloatIsValidPasses() throws ValidationException { 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 64106617015..77f806995ba 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinitemsValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testExactLengthIsValidPasses() throws ValidationException { 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 07b264a5c82..c3012ffd07b 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinlengthValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testExactLengthIsValidPasses() throws ValidationException { 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 172344eb28b..af92a38a793 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinpropertiesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testExactLengthIsValidPasses() throws ValidationException { 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 5495226a1ba..fcd5ccda43b 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedAllofToCheckValidationSemanticsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsValidPasses() throws ValidationException { 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 ef87267b15b..4525b8b5977 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedAnyofToCheckValidationSemanticsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsValidPasses() throws ValidationException { 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 40475304a3d..b7010fedc16 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNestedArrayWithInvalidTypeFails() { 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 9fe66b0503e..999c983a12d 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedOneofToCheckValidationSemanticsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsValidPasses() throws ValidationException { 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 bbfe9858805..422c8e31360 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NotMoreComplexSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOtherMatchPasses() throws ValidationException { 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 ab90c86cd0f..40cf53ddc53 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NotTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testDisallowedFails() { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java index ebb974de6e5..9e80c0eee7d 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NulCharactersInStringsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchStringWithNulPasses() throws ValidationException { 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 a45c6ec610b..ba73175631c 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NullTypeMatchesOnlyTheNullObjectTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testZeroIsNotNullFails() { 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 ff6e9d37dce..b255ca91e2c 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NumberTypeMatchesNumbersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAFloatIsANumberPasses() throws ValidationException { 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 49a367ac58d..79edace447b 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ObjectPropertiesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBothPropertiesPresentAndValidIsValidPasses() throws ValidationException { 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 85587d1cd10..76686323e38 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ObjectTypeMatchesObjectsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnObjectIsAnObjectPasses() throws ValidationException { 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 e94f9277dce..f5d1d725439 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofComplexTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSecondOneofValidComplexPasses() throws ValidationException { 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 50252968f84..7357ea6ee5d 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBothOneofValidFails() { 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 ea57fe7c2bd..1c63778cdbd 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofWithBaseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchBaseSchemaFails() { 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 5113d359187..c977b3e95db 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofWithEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOneValidValidPasses() throws ValidationException { 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 db5b73fd386..5ea13f4c049 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofWithRequiredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFirstValidValidPasses() throws ValidationException { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java index 0f3306d9ed7..a5861dbe98f 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PatternIsNotAnchoredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchesASubstringPasses() throws ValidationException { 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 b9cbe91112a..6216a6b7709 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PatternValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testIgnoresBooleansPasses() throws ValidationException { 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 9708c6d0a96..89e7ac3f35e 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertiesWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testObjectWithAllNumbersIsValidPasses() throws ValidationException { 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 3daa2b69f6f..985921c741c 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertyNamedRefThatIsNotAReferenceTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 f87c4096442..c17362fc319 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInAdditionalpropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 e60e3d09821..60efe30ac7f 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInAllofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 3465e0518ed..b610cfa2ea6 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInAnyofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 171e2a6c1d0..d6dc545fd62 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 fa8ce496346..738458ca643 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInNotTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 f4048ec8ed3..99965086051 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInOneofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { 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 e00319809fb..bf39f35340e 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RefInPropertyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java index f02f348d3c7..04e062c7aea 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredDefaultValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNotRequiredByDefaultPasses() throws ValidationException { 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 6c3326cf9eb..237b9f7bf78 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPresentRequiredPropertyIsValidPasses() throws ValidationException { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java index ab0c3b23704..21850ab1148 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredWithEmptyArrayTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNotRequiredPasses() throws ValidationException { 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 4d0f295d05a..51377e07b82 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testObjectWithSomePropertiesMissingIsInvalidFails() { 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 26dda5efa38..e9096e379ea 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class SimpleEnumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSomethingElseIsInvalidFails() { 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 af3c4c287bd..c901b0179e6 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class StringTypeMatchesStringsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAStringIsStillAStringEvenIfItLooksLikeANumberPasses() throws ValidationException { 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 a5bb3c8dc7b..58efc771fb5 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMissingPropertiesAreNotFilledInWithTheDefaultPasses() throws ValidationException { 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 ec0b6a01bd8..2814b7ab7f2 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UniqueitemsFalseValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumbersAreUniqueIfMathematicallyUnequalPasses() throws ValidationException { 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 737a03d30aa..0dddb701634 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UniqueitemsValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNonUniqueArrayOfMoreThanTwoIntegersIsInvalidFails() { 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 5d909143906..6727a89186e 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UriFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 46ecb7c2b34..97018441727 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UriReferenceFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { 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 b1a756104cd..89d3ee16b84 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 @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UriTemplateFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java index 476dab2c3da..b16e6ddb941 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java @@ -90,7 +90,7 @@ public void testSerialization() throws ValidationException, NotImplementedExcept true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; class ApplicationJsonMediaType implements MediaType { @Override diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java index b1dc30975ab..6f2c8ce93cf 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java @@ -86,7 +86,7 @@ public void testSerialization() throws ValidationException, NotImplementedExcept true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; for (ParamTestCase testCase: testCases) { var header = new SchemaHeader( @@ -128,7 +128,7 @@ private void assertNull(@Nullable Object object) { @Test public void testDeserialization() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); SchemaHeader header = getHeader(NullJsonSchema.NullJsonSchema1.getInstance()); @Nullable Object deserialized = header.deserialize(List.of(""), false, configuration); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 93a5adb916a..b44c2e57a4e 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -96,7 +96,7 @@ private String getJsonBody(SerializedRequestBody requestBody) { @Test public void testSerializeApplicationJson() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); String jsonBody; SerializedRequestBody requestBody = serializer.serialize( @@ -167,7 +167,7 @@ public void testSerializeApplicationJson() throws ValidationException, NotImplem @Test public void testSerializeTextPlain() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); SerializedRequestBody requestBody = serializer.serialize( new TextplainRequestBody( diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index e4656ecbbc3..8ead62eb4d8 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -155,7 +155,7 @@ public void testDeserializeApplicationJsonNull() throws ValidationException, Api var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -171,7 +171,7 @@ public void testDeserializeApplicationJsonTrue() throws ValidationException, Api var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -187,7 +187,7 @@ public void testDeserializeApplicationJsonFalse() throws ValidationException, Ap var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -203,7 +203,7 @@ public void testDeserializeApplicationJsonInt() throws ValidationException, ApiE var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -219,7 +219,7 @@ public void testDeserializeApplicationJsonFloat() throws ValidationException, Ap var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -235,7 +235,7 @@ public void testDeserializeApplicationJsonString() throws ValidationException, A var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java index 206c683cd50..ef64ccf8f8b 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java @@ -18,7 +18,7 @@ public class AnyTypeSchemaTest { static final AnyTypeJsonSchema.AnyTypeJsonSchema1 schema = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance(); - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); @SuppressWarnings("nullness") private Void assertNull(@Nullable Object object) { diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index 0ca5e56ecd2..297432ee456 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -22,7 +22,7 @@ import java.util.Set; public class ArrayTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -69,7 +69,7 @@ public FrozenList validate(List arg, SchemaConfiguration configuratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -155,7 +155,7 @@ public ArrayWithOutputClsSchemaList validate(List arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java index 7ac24fbeaa2..d2990773fa7 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class BooleanSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 booleanJsonSchema = BooleanJsonSchema.BooleanJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java index 17d5f35dcbe..15967a549cc 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java @@ -16,7 +16,7 @@ import java.util.List; public class ListSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ListJsonSchema.ListJsonSchema1 listJsonSchema = ListJsonSchema.ListJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java index 5b03fec8609..68c00adfc8e 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java @@ -18,7 +18,7 @@ import java.util.Map; public class MapSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java index eb1c70ef049..a4f96beb7ca 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NullSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NullJsonSchema.NullJsonSchema1 nullJsonSchema = NullJsonSchema.NullJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java index fcde27495e3..46e3454809f 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NumberSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NumberJsonSchema.NumberJsonSchema1 numberJsonSchema = NumberJsonSchema.NumberJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index fad3d574369..28dc7c066ef 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -24,7 +24,7 @@ import java.util.Set; public class ObjectTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -82,7 +82,7 @@ public static ObjectWithPropsSchema getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -169,7 +169,7 @@ public FrozenMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -255,7 +255,7 @@ public static ObjectWithPropsAndAddpropsSchema getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -350,7 +350,7 @@ public ObjectWithOutputTypeSchemaMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java index d3cba69fb20..23b73510e3f 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java @@ -17,7 +17,7 @@ public static class RefBooleanSchema { public static class RefBooleanSchema1 extends BooleanJsonSchema.BooleanJsonSchema1 {} } - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 refBooleanJsonSchema = RefBooleanSchema.RefBooleanSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java index ea3ec6ae8c3..f0049b7e93f 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java @@ -74,7 +74,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -109,7 +109,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -129,7 +129,7 @@ public void testIncorrectPropertyValueFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java index cb03bcf8f5b..ca2ec5a1299 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java @@ -23,7 +23,7 @@ public class FormatValidatorTest { static final ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java index 5b70aada50c..391888f03ec 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java @@ -58,7 +58,7 @@ public void testCorrectItemsSucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -92,7 +92,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -112,7 +112,7 @@ public void testIncorrectItemFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index c1cc4c84e9e..302ae7eeeec 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -61,7 +61,7 @@ public void testValidateSucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java index e35b145e721..0112b383f84 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java @@ -63,7 +63,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -96,7 +96,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -116,7 +116,7 @@ public void testIncorrectPropertyValueFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java index 58c160a0499..72d044cf4cf 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java @@ -58,7 +58,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -81,7 +81,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -101,7 +101,7 @@ public void testIncorrectPropertyFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java index c31855af4ff..01378dd4d41 100644 --- a/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java +++ b/samples/client/3_0_3_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java @@ -22,7 +22,7 @@ public void testValidateSucceeds() throws ValidationException { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -41,7 +41,7 @@ public void testValidateFailsIntIsNotString() { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 892b199e48a..8c6b8553d40 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) +[**additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidate**](../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDictInput](../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedictinput), [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) | [additionalproperties_allows_a_schema_which_should_validate.AdditionalpropertiesAllowsASchemaWhichShouldValidateDict](../../../../../../../components/schema/additionalproperties_allows_a_schema_which_should_validate.md#additionalpropertiesallowsaschemawhichshouldvalidatedict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fe252e45111..97404c9ba73 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 50f45e8ea64..cd7300a1e34 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) +[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b30dcd8b61e..ac548c5f87d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators**](../../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicators**](../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md) | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDictInput](../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdictinput), [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_should_not_look_in_applicators.AdditionalpropertiesShouldNotLookInApplicatorsDict](../../../../../../../components/schema/additionalproperties_should_not_look_in_applicators.md#additionalpropertiesshouldnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 19b46d31352..607ab49d6ea 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../../../../../../../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../../../../../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 32b6d630248..498deea5fc1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof.Allof**](../../../../../../../../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof.Allof**](../../../../../../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 1a90ecee743..c32f4daa8e2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_simple_types.AllofSimpleTypes**](../../../../../../../../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_simple_types.AllofSimpleTypes**](../../../../../../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b3e6f88af1d..6d88dbd19bf 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_base_schema.AllofWithBaseSchema**](../../../../../../../../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_base_schema.AllofWithBaseSchema**](../../../../../../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b23725993d2..e682450cf0a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../../../../../../../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../../../../../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e48147c6487..3b259024bb0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../../../../../../../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../../../../../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 88c0b381263..3fc81b0a707 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../../../../../../../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../../../../../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 16da3191853..99c259b26b3 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../../../../../../../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../../../../../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0aec2828b4d..7d9c824d9f2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof_complex_types.AnyofComplexTypes**](../../../../../../../../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**anyof_complex_types.AnyofComplexTypes**](../../../../../../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fa714626c57..80347c140a4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof.Anyof**](../../../../../../../../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**anyof.Anyof**](../../../../../../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7b95963b5b0..a26409301b4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof_with_base_schema.AnyofWithBaseSchema**](../../../../../../../../../components/schema/anyof_with_base_schema.md) | str | str +[**anyof_with_base_schema.AnyofWithBaseSchema**](../../../../../../../components/schema/anyof_with_base_schema.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 3eb0d3595ab..bd5d5cb2ab0 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../../../../../../../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../../../../../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 885d6789812..eede790e3a7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../../../../../../../../components/schema/array_type_matches_arrays.md) | [array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) +[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../../../../../../components/schema/array_type_matches_arrays.md) | [array_type_matches_arrays.ArrayTypeMatchesArraysTupleInput](../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystupleinput), [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) | [array_type_matches_arrays.ArrayTypeMatchesArraysTuple](../../../../../../../components/schema/array_type_matches_arrays.md#arraytypematchesarraystuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b6138613cd4..8aff1ed419a 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../../../../../../../../components/schema/boolean_type_matches_booleans.md) | bool | bool +[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../../../../../../components/schema/boolean_type_matches_booleans.md) | bool | bool diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7dc0f9e261d..1681067de6d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**by_int.ByInt**](../../../../../../../../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**by_int.ByInt**](../../../../../../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 6709cfef805..0b0a0d5b245 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**by_number.ByNumber**](../../../../../../../../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**by_number.ByNumber**](../../../../../../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0ce716c20dc..03fbf135421 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**by_small_number.BySmallNumber**](../../../../../../../../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**by_small_number.BySmallNumber**](../../../../../../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7a48e60d913..ab8468fcad5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**date_time_format.DateTimeFormat**](../../../../../../../../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**date_time_format.DateTimeFormat**](../../../../../../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f625c430f1f..be684b0256b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**email_format.EmailFormat**](../../../../../../../../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**email_format.EmailFormat**](../../../../../../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c1ff5ba781a..d6830b123f1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../../../../../../../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int +[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../../../../../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9ded70949ae..75f4e0d2e07 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../../../../../../../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int +[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../../../../../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 58dc2e0606a..3fca70a2f0e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../../../../../../../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] +[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../../../../../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index bfdf8373736..e20c7195016 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../../../../../../../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] +[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../../../../../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ad93c5d1833..0937211d4ad 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../../../../../../../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] +[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../../../../../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 5d4d058684b..8b49e07cd7d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enums_in_properties.EnumsInProperties**](../../../../../../../../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) +[**enums_in_properties.EnumsInProperties**](../../../../../../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 21879f369ec..e52bf6d359b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**forbidden_property.ForbiddenProperty**](../../../../../../../../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**forbidden_property.ForbiddenProperty**](../../../../../../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f478ae304a3..97751eaa479 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**hostname_format.HostnameFormat**](../../../../../../../../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**hostname_format.HostnameFormat**](../../../../../../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index af473574d47..8fc687e22aa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../../../../../../../../components/schema/integer_type_matches_integers.md) | int | int +[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../../../../../../components/schema/integer_type_matches_integers.md) | int | int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b282fc22044..3a0a919bdff 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../../../../../../../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int +[**invalid_instance_should_not_raise_error_when_float_division_inf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf**](../../../../../../../components/schema/invalid_instance_should_not_raise_error_when_float_division_inf.md) | int | int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7a4cb50acef..26bbc33d45d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**invalid_string_value_for_default.InvalidStringValueForDefault**](../../../../../../../../../components/schema/invalid_string_value_for_default.md) | [invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**invalid_string_value_for_default.InvalidStringValueForDefault**](../../../../../../../components/schema/invalid_string_value_for_default.md) | [invalid_string_value_for_default.InvalidStringValueForDefaultDictInput](../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdictinput), [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [invalid_string_value_for_default.InvalidStringValueForDefaultDict](../../../../../../../components/schema/invalid_string_value_for_default.md#invalidstringvaluefordefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9ca17fe22b9..ea9f60b18e6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ipv4_format.Ipv4Format**](../../../../../../../../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ipv4_format.Ipv4Format**](../../../../../../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a21761129b6..2e132b2a004 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ipv6_format.Ipv6Format**](../../../../../../../../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ipv6_format.Ipv6Format**](../../../../../../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f25ebecd721..0f54838f683 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**json_pointer_format.JsonPointerFormat**](../../../../../../../../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**json_pointer_format.JsonPointerFormat**](../../../../../../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 6cd6a4042eb..589da0516fe 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maximum_validation.MaximumValidation**](../../../../../../../../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maximum_validation.MaximumValidation**](../../../../../../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 930037cdcce..6840ed42a5b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../../../../../../../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../../../../../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a74a5072598..4cfe56e232c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxitems_validation.MaxitemsValidation**](../../../../../../../../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxitems_validation.MaxitemsValidation**](../../../../../../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index db0a773e511..7a43b90bf85 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxlength_validation.MaxlengthValidation**](../../../../../../../../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxlength_validation.MaxlengthValidation**](../../../../../../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0c9dda94aff..d3f77385483 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../../../../../../../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../../../../../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 44439f7aadb..cb40b7cf6d2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxproperties_validation.MaxpropertiesValidation**](../../../../../../../../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxproperties_validation.MaxpropertiesValidation**](../../../../../../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 4ff9828c628..44819265c26 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minimum_validation.MinimumValidation**](../../../../../../../../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minimum_validation.MinimumValidation**](../../../../../../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d1f8d87c2d1..19f3ed9032c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../../../../../../../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../../../../../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 19b77a4b50b..e646114aaee 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minitems_validation.MinitemsValidation**](../../../../../../../../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minitems_validation.MinitemsValidation**](../../../../../../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index afbee812dc7..ba84d5dedd6 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minlength_validation.MinlengthValidation**](../../../../../../../../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minlength_validation.MinlengthValidation**](../../../../../../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a1e0e68125c..a9f0c2203cf 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minproperties_validation.MinpropertiesValidation**](../../../../../../../../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minproperties_validation.MinpropertiesValidation**](../../../../../../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 21c09244788..43660eb78d5 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../../../../../../../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../../../../../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f08d2e14573..94442176b5f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../../../../../../../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../../../../../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ec4ebdf7828..6841c1b39b8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_items.NestedItems**](../../../../../../../../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../../../../../../../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../../../../../../../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../../../../../../../../components/schema/nested_items.md#nesteditemstuple) +[**nested_items.NestedItems**](../../../../../../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../../../../../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../../../../../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../../../../../../components/schema/nested_items.md#nesteditemstuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index cdbf0e29d19..fc67bb2d367 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../../../../../../../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../../../../../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fe70ceab114..0d8ca42e87e 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**not_more_complex_schema.NotMoreComplexSchema**](../../../../../../../../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**not_more_complex_schema.NotMoreComplexSchema**](../../../../../../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 8e2c20a7acd..e821bba20a4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**_not._Not**](../../../../../../../../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**_not._Not**](../../../../../../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 851b0279134..9c604f3157d 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nul_characters_in_strings.NulCharactersInStrings**](../../../../../../../../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] +[**nul_characters_in_strings.NulCharactersInStrings**](../../../../../../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 774e194f496..1fc27f732eb 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../../../../../../../../components/schema/null_type_matches_only_the_null_object.md) | None | None +[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../../../../../../components/schema/null_type_matches_only_the_null_object.md) | None | None diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c4533099bfe..2f5989e5b48 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../../../../../../../../components/schema/number_type_matches_numbers.md) | float, int | float, int +[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../../../../../../components/schema/number_type_matches_numbers.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 5e4becdb428..36dc6fe6eaa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**object_properties_validation.ObjectPropertiesValidation**](../../../../../../../../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**object_properties_validation.ObjectPropertiesValidation**](../../../../../../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 5be41cddd91..26ba7dda7c8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../../../../../../../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict +[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../../../../../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 945e85c5cc7..26490cc0ac4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_complex_types.OneofComplexTypes**](../../../../../../../../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**oneof_complex_types.OneofComplexTypes**](../../../../../../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c464a2a20ae..a92da1bd06b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof.Oneof**](../../../../../../../../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**oneof.Oneof**](../../../../../../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 857a161f178..b07790bb0ef 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_with_base_schema.OneofWithBaseSchema**](../../../../../../../../../components/schema/oneof_with_base_schema.md) | str | str +[**oneof_with_base_schema.OneofWithBaseSchema**](../../../../../../../components/schema/oneof_with_base_schema.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index cdc642640fe..b1152ac0d3c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_with_empty_schema.OneofWithEmptySchema**](../../../../../../../../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**oneof_with_empty_schema.OneofWithEmptySchema**](../../../../../../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 409e860a45a..79210ca3a29 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_with_required.OneofWithRequired**](../../../../../../../../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict +[**oneof_with_required.OneofWithRequired**](../../../../../../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9cba5a5500e..f8318e101e2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**pattern_is_not_anchored.PatternIsNotAnchored**](../../../../../../../../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**pattern_is_not_anchored.PatternIsNotAnchored**](../../../../../../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index dcd7259313c..10f43cc2aea 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**pattern_validation.PatternValidation**](../../../../../../../../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**pattern_validation.PatternValidation**](../../../../../../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fba16738b78..dd10364bae7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../../../../../../../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../../../../../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c97e5e2e8bd..b5470f55cf7 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c13fea2628a..f440ec638a2 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_additionalproperties.RefInAdditionalproperties**](../../../../../../../../../components/schema/ref_in_additionalproperties.md) | [ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) +[**ref_in_additionalproperties.RefInAdditionalproperties**](../../../../../../../components/schema/ref_in_additionalproperties.md) | [ref_in_additionalproperties.RefInAdditionalpropertiesDictInput](../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdictinput), [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) | [ref_in_additionalproperties.RefInAdditionalpropertiesDict](../../../../../../../components/schema/ref_in_additionalproperties.md#refinadditionalpropertiesdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 549d1a357e2..328e16b818c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_allof.RefInAllof**](../../../../../../../../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ref_in_allof.RefInAllof**](../../../../../../../components/schema/ref_in_allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 8c0cdfaeb4b..cfca4951828 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_anyof.RefInAnyof**](../../../../../../../../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ref_in_anyof.RefInAnyof**](../../../../../../../components/schema/ref_in_anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9e66bfb2bcc..c70801c667c 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_items.RefInItems**](../../../../../../../../../components/schema/ref_in_items.md) | [ref_in_items.RefInItemsTupleInput](../../../../../../../../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../../../../../../../../components/schema/ref_in_items.md#refinitemstuple) | [ref_in_items.RefInItemsTuple](../../../../../../../../../components/schema/ref_in_items.md#refinitemstuple) +[**ref_in_items.RefInItems**](../../../../../../../components/schema/ref_in_items.md) | [ref_in_items.RefInItemsTupleInput](../../../../../../../components/schema/ref_in_items.md#refinitemstupleinput), [ref_in_items.RefInItemsTuple](../../../../../../../components/schema/ref_in_items.md#refinitemstuple) | [ref_in_items.RefInItemsTuple](../../../../../../../components/schema/ref_in_items.md#refinitemstuple) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 411b5686d56..1e3b6242522 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_not.RefInNot**](../../../../../../../../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ref_in_not.RefInNot**](../../../../../../../components/schema/ref_in_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2019f3b565e..ab3ed7784e1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_oneof.RefInOneof**](../../../../../../../../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ref_in_oneof.RefInOneof**](../../../../../../../components/schema/ref_in_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 77d079c2e94..9a24f791d67 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_ref_in_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_in_property.RefInProperty**](../../../../../../../../../components/schema/ref_in_property.md) | [ref_in_property.RefInPropertyDictInput](../../../../../../../../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../../../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ref_in_property.RefInPropertyDict](../../../../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**ref_in_property.RefInProperty**](../../../../../../../components/schema/ref_in_property.md) | [ref_in_property.RefInPropertyDictInput](../../../../../../../components/schema/ref_in_property.md#refinpropertydictinput), [ref_in_property.RefInPropertyDict](../../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [ref_in_property.RefInPropertyDict](../../../../../../../components/schema/ref_in_property.md#refinpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 72118450cdf..a083a020b96 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_default_validation.RequiredDefaultValidation**](../../../../../../../../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_default_validation.RequiredDefaultValidation**](../../../../../../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 82f262d3305..63157b3c68b 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_validation.RequiredValidation**](../../../../../../../../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../../../../../../../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_validation.RequiredValidation**](../../../../../../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../../../../../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b4f37c2b976..3095bb4d873 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_with_empty_array.RequiredWithEmptyArray**](../../../../../../../../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_with_empty_array.RequiredWithEmptyArray**](../../../../../../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d7a5602b34e..3b23ca63c80 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../../../../../../../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../../../../../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index cb726fbe8bc..fb0c5cf72da 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**simple_enum_validation.SimpleEnumValidation**](../../../../../../../../../components/schema/simple_enum_validation.md) | float, int | float, int +[**simple_enum_validation.SimpleEnumValidation**](../../../../../../../components/schema/simple_enum_validation.md) | float, int | float, int diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 42b79e9921d..4727d0e2530 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**string_type_matches_strings.StringTypeMatchesStrings**](../../../../../../../../../components/schema/string_type_matches_strings.md) | str | str +[**string_type_matches_strings.StringTypeMatchesStrings**](../../../../../../../components/schema/string_type_matches_strings.md) | str | str diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b2ea1623fd8..2238dc216e8 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) +[**the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing**](../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDictInput](../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdictinput), [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) | [the_default_keyword_does_not_do_anything_if_the_property_is_missing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict](../../../../../../../components/schema/the_default_keyword_does_not_do_anything_if_the_property_is_missing.md#thedefaultkeyworddoesnotdoanythingifthepropertyismissingdict) diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 1acfba31049..089a82bddaa 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../../../../../../../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../../../../../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 923d467a8d0..94124666ff4 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uniqueitems_validation.UniqueitemsValidation**](../../../../../../../../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uniqueitems_validation.UniqueitemsValidation**](../../../../../../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 8f9988b379e..0686a094ae1 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uri_format.UriFormat**](../../../../../../../../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uri_format.UriFormat**](../../../../../../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 3d773b3f718..0d4cf1c286f 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uri_reference_format.UriReferenceFormat**](../../../../../../../../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uri_reference_format.UriReferenceFormat**](../../../../../../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 6a13a02355d..2f3e0e8e378 100644 --- a/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_0_3_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uri_template_format.UriTemplateFormat**](../../../../../../../../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uri_template_format.UriTemplateFormat**](../../../../../../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md b/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md index 02e74ac57a6..cc1e29df040 100644 --- a/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md +++ b/samples/client/3_1_0_unit_test/java/docs/RootServerInfo.md @@ -5,12 +5,14 @@ public class RootServerInfo A class that provides a server, and any needed server info classes - a class that is a ServerProvider +- a builder for the ServerProvider - an enum class that stores server index values ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [RootServerInfo.RootServerInfo1](#rootserverinfo1)
class that stores a server index | +| static class | [RootServerInfo.RootServerInfoBuilder](#rootserverinfobuilder)
class that stores a server index | | enum | [RootServerInfo.ServerIndex](#serverindex)
class that stores a server index | ## RootServerInfo1 @@ -21,7 +23,6 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfo1()
Creates an instance using default server variable values | | RootServerInfo1(@Nullable [Server0](servers/Server0.md) server0)
Creates an instance using passed in servers | ### Field Summary @@ -34,6 +35,21 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | +## RootServerInfoBuilder + +a builder for [RootServerInfo1](#rootserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [RootServerInfoBuilder](#rootserverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [RootServerInfo1](#rootserverinfo1) | build() | + ## ServerIndex enum ServerIndex
diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md index 78ef54b76b2..4b4177aa3aa 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md index 87be8eab3a7..6695fe35a49 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalpropertiesWithNullValuedInstanceProperties.AdditionalpropertiesWithNullValuedInstancePropertiesMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md index da99967ebd8..8cc723bb7e6 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AdditionalpropertiesWithSchema.md @@ -81,7 +81,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalpropertiesWithSchema.AdditionalpropertiesWithSchemaMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md index 77997f31d22..90d702e5191 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/AnyofWithBaseSchema.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = AnyofWithBaseSchema.AnyofWithBaseSchema1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md index 64c7e6ce911..b2cb24f5ce9 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.md @@ -416,7 +416,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation DependentSchemasDependentSubschemaIncompatibleWithRoot.FooMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md index 0f6912b5af3..40344018d18 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md index c4d78a7d1b9..c8b731041b0 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWith1DoesNotMatchTrue.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md index 83756cb95d9..633a79af9af 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithEscapedCharacters.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumWithEscapedCharacters.EnumWithEscapedCharacters1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md index e309a82cf25..dfbab8589b3 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithFalseDoesNotMatch0.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // boolean validation boolean validatedPayload = EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md index 86ef2406c7e..d5060d82ffb 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumWithTrueDoesNotMatch1.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // boolean validation boolean validatedPayload = EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md index acafe3b0529..d8817265151 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/EnumsInProperties.md @@ -71,7 +71,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation EnumsInProperties.EnumsInPropertiesMap validatedPayload = @@ -203,7 +203,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumsInProperties.Bar.validate( @@ -282,7 +282,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumsInProperties.Foo.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md index 3a9c795a6ab..3c961a255fc 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/FloatDivisionInf.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = FloatDivisionInf.FloatDivisionInf1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md index f31d677355e..ce3c0ad26f3 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsContains.md @@ -78,7 +78,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ItemsContains.ItemsContainsList validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md index 467f7f15132..70b39df59f3 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.md @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ItemsDoesNotLookInApplicatorsValidCase.ItemsDoesNotLookInApplicatorsValidCaseList validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md index 879612b39f5..e0801cd8a5a 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/ItemsWithNullInstanceElements.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ItemsWithNullInstanceElements.ItemsWithNullInstanceElementsList validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md index 20934ae547c..06690dbdf66 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.md @@ -77,7 +77,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = MultipleTypesCanBeSpecifiedInAnArray.MultipleTypesCanBeSpecifiedInAnArray1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md index ec496d790ea..ad403371444 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NestedItems.md @@ -80,7 +80,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.NestedItemsList validatedPayload = @@ -187,7 +187,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.ItemsList2 validatedPayload = @@ -292,7 +292,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.ItemsList1 validatedPayload = @@ -395,7 +395,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NestedItems.ItemsList validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md index b75a21a7512..6a63f2af1d2 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NonAsciiPatternWithAdditionalproperties.md @@ -78,7 +78,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NonAsciiPatternWithAdditionalproperties.NonAsciiPatternWithAdditionalpropertiesMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md index d949a1fb5f6..6663a4c2e36 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMoreComplexSchema.md @@ -220,7 +220,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NotMoreComplexSchema.NotMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md index b2629f80ac7..bc0434cc3ef 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NotMultipleTypes.md @@ -232,7 +232,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = NotMultipleTypes.Not.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md index 6c339336759..ec4d57963c7 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/NulCharactersInStrings.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = NulCharactersInStrings.NulCharactersInStrings1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md index be41973494a..48247523768 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/OneofWithBaseSchema.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = OneofWithBaseSchema.OneofWithBaseSchema1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md index 9889694934c..3e224cac359 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation PrefixitemsValidationAdjustsTheStartingIndexForItems.PrefixitemsValidationAdjustsTheStartingIndexForItemsList validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md index 4479165fc09..bf391634266 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.md @@ -79,7 +79,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PropertiesPatternpropertiesAdditionalpropertiesInteraction.PropertiesPatternpropertiesAdditionalpropertiesInteractionMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md index 5ad5310ab9e..abdbb806289 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/PropertynamesValidation.md @@ -213,7 +213,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = PropertynamesValidation.PropertyNames.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md index 9bbaf301aab..365e67c9a68 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SimpleEnumValidation.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = SimpleEnumValidation.SimpleEnumValidation1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md index f643b7c30e4..62c43b97063 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/SmallMultipleOfLargeInteger.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = SmallMultipleOfLargeInteger.SmallMultipleOfLargeInteger1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md index df1eeaed335..0a9655e6820 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/TypeArrayObjectOrNull.md @@ -96,7 +96,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = TypeArrayObjectOrNull.TypeArrayObjectOrNull1.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md index dfb8c0267a6..60a1ad340b8 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluateditemsWithItems.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation UnevaluateditemsWithItems.UnevaluateditemsWithItemsList validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md index 21110a26061..0eac3865a05 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.md @@ -252,7 +252,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNames.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md index a861736f6ea..bae10cae359 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesSchema.md @@ -105,7 +105,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = UnevaluatedpropertiesSchema.UnevaluatedProperties.validate( diff --git a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md index eee0f79a51a..b0158a7076f 100644 --- a/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md +++ b/samples/client/3_1_0_unit_test/java/docs/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.md @@ -81,7 +81,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation UnevaluatedpropertiesWithAdjacentAdditionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap validatedPayload = diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java index 7194d05eda1..2e2c3d87885 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java @@ -9,13 +9,9 @@ public class RootServerInfo { public static class RootServerInfo1 implements ServerProvider { - public final Server0 server0; + private final Server0 server0; - public RootServerInfo1() { - server0 = new Server0(); - } - - public RootServerInfo1( + RootServerInfo1( @Nullable Server0 server0 ) { this.server0 = Objects.requireNonNullElseGet(server0, Server0::new); @@ -27,6 +23,23 @@ public Server getServer(ServerIndex serverIndex) { } } + public static class RootServerInfoBuilder { + private @Nullable Server0 server0; + + public RootServerInfoBuilder() {} + + public RootServerInfoBuilder server0(Server0 server0) { + this.server0 = server0; + return this; + } + + public RootServerInfo1 build() { + return new RootServerInfo1( + server0 + ); + } + } + public enum ServerIndex { SERVER_0 } diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java index 5b9fcad174a..b491cdd3e85 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitems.java @@ -207,7 +207,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -231,7 +231,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -259,7 +259,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -302,7 +302,7 @@ public ASchemaGivenForPrefixitemsList validate(List arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -336,7 +336,7 @@ public ASchemaGivenForPrefixitemsList validate(List arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java index c0218e81492..b1c02721d02 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefault.java @@ -194,7 +194,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -218,7 +218,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -246,7 +246,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -289,7 +289,7 @@ public AdditionalItemsAreAllowedByDefaultList validate(List arg, SchemaConfig Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -323,7 +323,7 @@ public AdditionalItemsAreAllowedByDefaultList validate(List arg, SchemaConfig Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java index e9d0e2c6990..91053e6c774 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefault.java @@ -312,7 +312,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -324,7 +324,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -336,7 +336,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -364,7 +364,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -407,7 +407,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -441,7 +441,7 @@ public AdditionalpropertiesAreAllowedByDefaultMap validate(Map arg, Schema Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java index 44a6b34fe91..56ea9462d47 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItself.java @@ -157,7 +157,7 @@ public AdditionalpropertiesCanExistByItselfMap validate(Map arg, SchemaCon Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java index 6a539c2b37a..507dbc069ab 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicators.java @@ -239,7 +239,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -251,7 +251,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -263,7 +263,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -291,7 +291,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -334,7 +334,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -368,7 +368,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -587,7 +587,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -599,7 +599,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -611,7 +611,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -639,7 +639,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -682,7 +682,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -719,7 +719,7 @@ public AdditionalpropertiesDoesNotLookInApplicatorsMap validate(Map arg, S Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java index e87afc994e0..740b238eae4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstanceProperties.java @@ -152,7 +152,7 @@ public AdditionalpropertiesWithNullValuedInstancePropertiesMap validate(Map> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java index 4443caea1de..092e731f097 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchema.java @@ -320,7 +320,7 @@ public AdditionalpropertiesWithSchemaMap validate(Map arg, SchemaConfigura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java index e6ea2375397..8e7bc5d7152 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Allof.java @@ -214,7 +214,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -266,7 +266,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -309,7 +309,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -343,7 +343,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -589,7 +589,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -601,7 +601,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -613,7 +613,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -641,7 +641,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -718,7 +718,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -883,7 +883,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -895,7 +895,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -907,7 +907,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -935,7 +935,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1012,7 +1012,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java index 856d9d3abfb..fa51a189f38 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneof.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -673,7 +673,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -685,7 +685,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -697,7 +697,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -725,7 +725,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -768,7 +768,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -802,7 +802,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -972,7 +972,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -984,7 +984,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -996,7 +996,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1024,7 +1024,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1067,7 +1067,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1101,7 +1101,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java index 9ce014d0248..b97abc19703 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypes.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -681,7 +681,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -693,7 +693,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -705,7 +705,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -733,7 +733,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -776,7 +776,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -810,7 +810,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java index 698b971ecc6..b2d64cdcdff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchema.java @@ -197,7 +197,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -209,7 +209,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -221,7 +221,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -249,7 +249,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -292,7 +292,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -326,7 +326,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -572,7 +572,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -584,7 +584,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -596,7 +596,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -624,7 +624,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -667,7 +667,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -701,7 +701,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -975,7 +975,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -987,7 +987,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -999,7 +999,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1027,7 +1027,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1070,7 +1070,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1104,7 +1104,7 @@ public AllofWithBaseSchemaMap validate(Map arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java index 5d05360f9f3..09d4d5bd234 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchema.java @@ -122,7 +122,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -146,7 +146,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -174,7 +174,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -251,7 +251,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java index 58da6606e04..5db2ddd6167 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java index ce1633d2a1f..17920aead56 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java index cb91cb50c79..3fbe112d6c6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemas.java @@ -134,7 +134,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -146,7 +146,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -158,7 +158,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -186,7 +186,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -229,7 +229,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -263,7 +263,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java index 66159633ae0..65d6fc3dc39 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Anyof.java @@ -114,7 +114,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -138,7 +138,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -166,7 +166,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -209,7 +209,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -243,7 +243,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -408,7 +408,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -420,7 +420,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -432,7 +432,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -460,7 +460,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -503,7 +503,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -537,7 +537,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java index d0c90282afe..713f9fcbc2e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypes.java @@ -214,7 +214,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -266,7 +266,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -309,7 +309,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -343,7 +343,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -589,7 +589,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -601,7 +601,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -613,7 +613,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -641,7 +641,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -718,7 +718,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -883,7 +883,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -895,7 +895,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -907,7 +907,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -935,7 +935,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1012,7 +1012,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java index 59378958342..dd8146a6928 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchema.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -650,7 +650,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java index c8613b132f2..70fdcfb67c3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java index 8fe59faa883..f068cfabace 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByInt.java @@ -109,7 +109,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -121,7 +121,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -133,7 +133,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -238,7 +238,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java index 93433de2ebf..97d970fdd86 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ByNumber.java @@ -109,7 +109,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -121,7 +121,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -133,7 +133,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -238,7 +238,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java index 404a15c9aaa..130bc06e809 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/BySmallNumber.java @@ -109,7 +109,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -121,7 +121,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -133,7 +133,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -238,7 +238,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java index 406c120805b..da5cdff000e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStrings.java @@ -122,7 +122,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -146,7 +146,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -174,7 +174,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -251,7 +251,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java index 5b1f5093892..949cae3d48a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidation.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -393,7 +393,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -405,7 +405,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -417,7 +417,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -445,7 +445,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -488,7 +488,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -522,7 +522,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java index 97d9abb81d0..9c6f7b5c3b2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElements.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java index c8b360a3a99..0959b80eb33 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java index a8a45bb6723..219115ccc98 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java index fd03924fda5..9b892813b90 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharacters.java @@ -104,7 +104,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -116,7 +116,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -156,7 +156,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -199,7 +199,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -233,7 +233,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -505,7 +505,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -517,7 +517,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -529,7 +529,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -557,7 +557,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -600,7 +600,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -634,7 +634,7 @@ public FoobarMap validate(Map arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -799,7 +799,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -811,7 +811,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -823,7 +823,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -851,7 +851,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -894,7 +894,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -928,7 +928,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java index 4ed83aa1f7d..32e5df8f20d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRoot.java @@ -220,7 +220,7 @@ public FooMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -453,7 +453,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -477,7 +477,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -505,7 +505,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -548,7 +548,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -582,7 +582,7 @@ public DependentSchemasDependentSubschemaIncompatibleWithRootMap validate(Map> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java index eaa33eadb20..d9e1113b886 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependency.java @@ -258,7 +258,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -270,7 +270,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -282,7 +282,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -310,7 +310,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -353,7 +353,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -387,7 +387,7 @@ public BarMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -551,7 +551,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -563,7 +563,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -575,7 +575,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -603,7 +603,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -646,7 +646,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -680,7 +680,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java index 987e5bded08..0c13de03254 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/DurationFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java index 8f6d32fe0bc..d8ac7adf0b6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmailFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java index f0a6280acb6..c236d656e60 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EmptyDependents.java @@ -117,7 +117,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -129,7 +129,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -141,7 +141,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -169,7 +169,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -212,7 +212,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -246,7 +246,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java index e762044b002..ce8177a6387 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalse.java @@ -124,7 +124,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java index 0924081d382..14e53f54528 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrue.java @@ -124,7 +124,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java index 5567fdd3228..84f60e4b1e1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharacters.java @@ -80,7 +80,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java index afd6b062012..ab70ac2e4a4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0.java @@ -76,7 +76,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java index df89d7cd7ac..75c2fb6c18b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1.java @@ -76,7 +76,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java index 7b05dad2aab..d13e758b416 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumsInProperties.java @@ -82,7 +82,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -171,7 +171,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -390,7 +390,7 @@ public EnumsInPropertiesMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java index 8cadc733d31..b076d86580a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java index 349291eb553..de7663616bb 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java index 4b13c4581cf..baf48371c7c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInf.java @@ -66,7 +66,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java index 7d72c39a7c8..dcffcc4c62b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ForbiddenProperty.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -517,7 +517,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -529,7 +529,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -541,7 +541,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -569,7 +569,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -612,7 +612,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -646,7 +646,7 @@ public ForbiddenPropertyMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java index 94bf4a17b61..ee4cf4c4a3a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/HostnameFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java index 0347818971b..8aa4cbbdfd7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java index 76e7459a8ce..7c0e54a86e4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java index b8a7fad4fb1..6ee6e0267b7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThen.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -680,7 +680,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -692,7 +692,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -704,7 +704,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -732,7 +732,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -775,7 +775,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -809,7 +809,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java index a443ce4cd58..fddb84b0700 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElse.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -679,7 +679,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -691,7 +691,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -703,7 +703,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -731,7 +731,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -774,7 +774,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -808,7 +808,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java index 6da815fd975..d85b4e67f5c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -401,7 +401,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -413,7 +413,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -425,7 +425,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -453,7 +453,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -496,7 +496,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -530,7 +530,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -698,7 +698,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -710,7 +710,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -722,7 +722,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -750,7 +750,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -793,7 +793,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -827,7 +827,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -991,7 +991,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1003,7 +1003,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1015,7 +1015,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1043,7 +1043,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1086,7 +1086,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1120,7 +1120,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java index 2223140a8bb..69f39db1275 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIf.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -407,7 +407,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -419,7 +419,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -431,7 +431,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -459,7 +459,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -502,7 +502,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -536,7 +536,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java index a6935324925..354d6ae455f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElse.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -407,7 +407,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -419,7 +419,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -431,7 +431,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -459,7 +459,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -502,7 +502,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -536,7 +536,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java index 873076a7d35..a07c9b0106a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIf.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -407,7 +407,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -419,7 +419,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -431,7 +431,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -459,7 +459,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -502,7 +502,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -536,7 +536,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java index 23dac5af28c..041f24fa89d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv4Format.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java index 01da7d38593..5be6b143d1e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Ipv6Format.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java index 013f2c9d75e..23b705042e9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java index 81429726542..77b76859460 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java index c2fd01f3e93..45bab1564ad 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsContains.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -738,7 +738,7 @@ public ItemsContainsList validate(List arg, SchemaConfiguration configuration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java index a073a0dfedf..e69bab3d791 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCase.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -451,7 +451,7 @@ public ItemsDoesNotLookInApplicatorsValidCaseList validate(List arg, SchemaCo Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java index 5e4361be6fa..229daf72585 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElements.java @@ -128,7 +128,7 @@ public ItemsWithNullInstanceElementsList validate(List arg, SchemaConfigurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java index fa8749c26d6..ccbf3584790 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java index c2eabb90feb..d0996f8a9ea 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnored.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java index aa726fc1d7c..0071fbe9542 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java index 8b9f476e860..c27fc00aaac 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedInteger.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java index 4c4efef907a..095abc7f17f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java index c93a08ffe0b..5d521cad3ad 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java index ea6e8963c47..8ba35949219 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmpty.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java index 468b9336092..35c87d6efd2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java index 0fc53a0ee87..75372296e65 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnored.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java index eefb6bdaa0b..66a94e848ca 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java index 33543c9daf1..476d28f9ef7 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedInteger.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java index b933bb806b4..c7d92b84196 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinitemsValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java index 02e7fe8cac3..0971242b614 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinlengthValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java index a04af48e3f5..e9c30d878b8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java index 05561731433..fb85e2124e8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequired.java @@ -119,7 +119,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -131,7 +131,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -143,7 +143,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -171,7 +171,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -214,7 +214,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -248,7 +248,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java index 60776eb34ea..9b14a9048fe 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidated.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -410,7 +410,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -434,7 +434,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -462,7 +462,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -505,7 +505,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -539,7 +539,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java index 4c6ef81ac46..f31b8d65717 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArray.java @@ -74,7 +74,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -101,7 +101,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java index be402dca36e..f05f987e5e5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemantics.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -409,7 +409,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -433,7 +433,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -461,7 +461,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -504,7 +504,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -538,7 +538,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java index fdca504a464..4b123ad5b55 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemantics.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -409,7 +409,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -433,7 +433,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -461,7 +461,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -504,7 +504,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -538,7 +538,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java index a85dac715e0..94ba5d02996 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedItems.java @@ -137,7 +137,7 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -259,7 +259,7 @@ public ItemsList1 validate(List arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -381,7 +381,7 @@ public ItemsList2 validate(List arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -509,7 +509,7 @@ public NestedItemsList validate(List arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java index 489c92daf72..096f3d30b79 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemantics.java @@ -116,7 +116,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -140,7 +140,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -168,7 +168,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -211,7 +211,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -409,7 +409,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -433,7 +433,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -461,7 +461,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -504,7 +504,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -538,7 +538,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java index 156ad105802..3a1d5df8000 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalproperties.java @@ -143,7 +143,7 @@ public NonAsciiPatternWithAdditionalpropertiesMap validate(Map arg, Schema Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java index bf5d6ee54b1..a1deb5096f1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemas.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -673,7 +673,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -685,7 +685,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -697,7 +697,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -725,7 +725,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -768,7 +768,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -802,7 +802,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -958,7 +958,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -970,7 +970,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -982,7 +982,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1010,7 +1010,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1053,7 +1053,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1087,7 +1087,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1243,7 +1243,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1255,7 +1255,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1267,7 +1267,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1295,7 +1295,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1338,7 +1338,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1372,7 +1372,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1528,7 +1528,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1540,7 +1540,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1552,7 +1552,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1580,7 +1580,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1623,7 +1623,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1657,7 +1657,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1823,7 +1823,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1835,7 +1835,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1847,7 +1847,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1875,7 +1875,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1918,7 +1918,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1952,7 +1952,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java index 15045fcbc96..56e58519e7d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Not.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java index 6947755b346..2d64dcfa61b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchema.java @@ -172,7 +172,7 @@ public NotMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -281,7 +281,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -293,7 +293,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -305,7 +305,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -333,7 +333,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -376,7 +376,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -410,7 +410,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java index 4dd805fff73..96e8199a74e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypes.java @@ -82,7 +82,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -109,7 +109,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -229,7 +229,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -241,7 +241,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -253,7 +253,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -281,7 +281,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -324,7 +324,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -358,7 +358,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java index 89f32a64c25..489f9633dd5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStrings.java @@ -78,7 +78,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java index 6eda0789786..c1008840dae 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidation.java @@ -247,7 +247,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -259,7 +259,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -271,7 +271,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -299,7 +299,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -342,7 +342,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -376,7 +376,7 @@ public ObjectPropertiesValidationMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java index d649859a696..2472dd24499 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/Oneof.java @@ -114,7 +114,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -138,7 +138,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -166,7 +166,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -209,7 +209,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -243,7 +243,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -408,7 +408,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -420,7 +420,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -432,7 +432,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -460,7 +460,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -503,7 +503,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -537,7 +537,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java index c6eab7c1eef..97370cd35ac 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypes.java @@ -214,7 +214,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -238,7 +238,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -266,7 +266,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -309,7 +309,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -343,7 +343,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -589,7 +589,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -601,7 +601,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -613,7 +613,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -641,7 +641,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -718,7 +718,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -883,7 +883,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -895,7 +895,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -907,7 +907,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -935,7 +935,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1012,7 +1012,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java index e5fa1ac5522..619be52f3e2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchema.java @@ -102,7 +102,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -114,7 +114,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -126,7 +126,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -154,7 +154,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -197,7 +197,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -231,7 +231,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -387,7 +387,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -399,7 +399,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -411,7 +411,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -439,7 +439,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -482,7 +482,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -516,7 +516,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -650,7 +650,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java index 4c9debae918..6a2499aefa6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchema.java @@ -135,7 +135,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -147,7 +147,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -159,7 +159,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -264,7 +264,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java index b1a56e9ea64..4dde715b451 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/OneofWithRequired.java @@ -326,7 +326,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -338,7 +338,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -350,7 +350,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -378,7 +378,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -421,7 +421,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -455,7 +455,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -834,7 +834,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -846,7 +846,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -858,7 +858,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -886,7 +886,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -929,7 +929,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -963,7 +963,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1116,7 +1116,7 @@ public static OneofWithRequired1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java index e0493ed1d41..af38501cc30 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchored.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java index 9027293703c..dce49a7decd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternValidation.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java index 070e2d2a816..43f64b5a9a1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegex.java @@ -124,7 +124,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -136,7 +136,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -148,7 +148,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -176,7 +176,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -253,7 +253,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java index b068c18a706..41695f92258 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstanceProperties.java @@ -124,7 +124,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -136,7 +136,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -148,7 +148,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -176,7 +176,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -253,7 +253,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java index 125a47da8d4..e7b33e30e18 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItems.java @@ -163,7 +163,7 @@ public PrefixitemsValidationAdjustsTheStartingIndexForItemsList validate(List Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java index 0947f2b33f3..77b420354d5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElements.java @@ -194,7 +194,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -218,7 +218,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -246,7 +246,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -289,7 +289,7 @@ public PrefixitemsWithNullInstanceElementsList validate(List arg, SchemaConfi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -323,7 +323,7 @@ public PrefixitemsWithNullInstanceElementsList validate(List arg, SchemaConfi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java index 4e574420c49..539e323c402 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteraction.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -391,7 +391,7 @@ public static Foo getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -636,7 +636,7 @@ public PropertiesPatternpropertiesAdditionalpropertiesInteractionMap validate(Ma Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java index dc5ccc4df36..d751523546f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNames.java @@ -196,7 +196,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -208,7 +208,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -220,7 +220,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -248,7 +248,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -291,7 +291,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -325,7 +325,7 @@ public ToStringMap validate(Map arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -684,7 +684,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -696,7 +696,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -708,7 +708,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -736,7 +736,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -779,7 +779,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -813,7 +813,7 @@ public PropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap validate(Map> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java index 78e2eecd84c..064c5108ab0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharacters.java @@ -428,7 +428,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -452,7 +452,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -480,7 +480,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -523,7 +523,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -557,7 +557,7 @@ public PropertiesWithEscapedCharactersMap validate(Map arg, SchemaConfigur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java index 4121898f8f2..8f1d61b2398 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstanceProperties.java @@ -190,7 +190,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -202,7 +202,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -214,7 +214,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -242,7 +242,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -285,7 +285,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -319,7 +319,7 @@ public PropertiesWithNullValuedInstancePropertiesMap validate(Map arg, Sch Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java index ee776b80ce2..b39bb639be9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReference.java @@ -180,7 +180,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -192,7 +192,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -232,7 +232,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -275,7 +275,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -309,7 +309,7 @@ public PropertyNamedRefThatIsNotAReferenceMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java index 64e1db202bc..f8789054b92 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidation.java @@ -71,7 +71,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -178,7 +178,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -190,7 +190,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -202,7 +202,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -230,7 +230,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -273,7 +273,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -307,7 +307,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java index 7b66d3734ff..7367441a879 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java index fe38777bf74..26d67ae8ee4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitive.java @@ -137,7 +137,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -149,7 +149,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -161,7 +161,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -189,7 +189,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -266,7 +266,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java index 7afaca672e6..4d56cac9fbf 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java index 3d0de2d7315..6727cd84b8b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidation.java @@ -232,7 +232,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -244,7 +244,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -256,7 +256,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -284,7 +284,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -327,7 +327,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -361,7 +361,7 @@ public RequiredDefaultValidationMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java index 1260dc5219b..0ba4a54153f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames.java @@ -450,7 +450,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -462,7 +462,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -474,7 +474,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -502,7 +502,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -545,7 +545,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -579,7 +579,7 @@ public RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesMap validate( Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java index d8d395a931a..17db95a39f5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredValidation.java @@ -330,7 +330,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -342,7 +342,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -354,7 +354,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -425,7 +425,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -459,7 +459,7 @@ public RequiredValidationMap validate(Map arg, SchemaConfiguration configu Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java index 02037113e85..50ff889bf6e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArray.java @@ -232,7 +232,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -244,7 +244,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -256,7 +256,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -284,7 +284,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -327,7 +327,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -361,7 +361,7 @@ public RequiredWithEmptyArrayMap validate(Map arg, SchemaConfiguration con Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java index 05018eb695c..cb109437f5e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharacters.java @@ -1728,7 +1728,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1740,7 +1740,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1752,7 +1752,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1780,7 +1780,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1823,7 +1823,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1857,7 +1857,7 @@ public RequiredWithEscapedCharactersMap validate(Map arg, SchemaConfigurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java index 798c779beed..1d431b7c9c9 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidation.java @@ -134,7 +134,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java index ed420a8867c..40ff54e1bd2 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SingleDependency.java @@ -118,7 +118,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -130,7 +130,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -142,7 +142,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -170,7 +170,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -213,7 +213,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -247,7 +247,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java index 545f7e592bc..73719cec0ad 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeInteger.java @@ -66,7 +66,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java index 5cc90b85f6d..9d8bdc190e4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TimeFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java index f4fb52660d7..2cc66efcc79 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNull.java @@ -104,7 +104,7 @@ public static TypeArrayObjectOrNull1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -137,7 +137,7 @@ public static TypeArrayObjectOrNull1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -149,7 +149,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java index 27e876b3a56..85c313900ee 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObject.java @@ -95,7 +95,7 @@ public static TypeArrayOrObject1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -128,7 +128,7 @@ public static TypeArrayOrObject1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java index 0aa9f826cdf..9d31ca88335 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchema.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java index 20c008ada91..f6cb087b4e8 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContains.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -673,7 +673,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -685,7 +685,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -697,7 +697,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -725,7 +725,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -768,7 +768,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -802,7 +802,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -958,7 +958,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -970,7 +970,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -982,7 +982,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1010,7 +1010,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1053,7 +1053,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1087,7 +1087,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1243,7 +1243,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1255,7 +1255,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1267,7 +1267,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1295,7 +1295,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1338,7 +1338,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1372,7 +1372,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1538,7 +1538,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1550,7 +1550,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1562,7 +1562,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1590,7 +1590,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1633,7 +1633,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1667,7 +1667,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java index dc21168b587..501449426a6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItems.java @@ -156,7 +156,7 @@ public UnevaluateditemsWithItemsList validate(List arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java index 2905d689044..113ee0feac5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElements.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java index e79590d214c..bbd8cc4effe 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynames.java @@ -72,7 +72,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -191,7 +191,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -243,7 +243,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -286,7 +286,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -320,7 +320,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java index 8b8a70e3eac..1c84743419f 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchema.java @@ -63,7 +63,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -158,7 +158,7 @@ public static UnevaluatedpropertiesSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java index e212359ad3d..906232cfcae 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalproperties.java @@ -264,7 +264,7 @@ public UnevaluatedpropertiesWithAdjacentAdditionalpropertiesMap validate(Map> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java index af6f46c0755..ac4fc07d001 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstanceProperties.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java index 078f29b8bbf..874886522e4 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java index 6fe3839c5b9..a26f986cc41 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItems.java @@ -207,7 +207,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -231,7 +231,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -259,7 +259,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -302,7 +302,7 @@ public UniqueitemsFalseWithAnArrayOfItemsList validate(List arg, SchemaConfig Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -336,7 +336,7 @@ public UniqueitemsFalseWithAnArrayOfItemsList validate(List arg, SchemaConfig Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java index 71f3ddc3708..016742613f0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidation.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java index a9e14cc23a5..d5c0eb2491c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItems.java @@ -207,7 +207,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -231,7 +231,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -259,7 +259,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -302,7 +302,7 @@ public UniqueitemsWithAnArrayOfItemsList validate(List arg, SchemaConfigurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -336,7 +336,7 @@ public UniqueitemsWithAnArrayOfItemsList validate(List arg, SchemaConfigurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java index 6b23d7035f4..47a3707cda3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java index dea06a51577..db347e91deb 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java index 598b74632e2..c251a26b386 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java index 59608501fb4..69c634e8bee 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/UuidFormat.java @@ -108,7 +108,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -120,7 +120,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -160,7 +160,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -203,7 +203,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -237,7 +237,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java index 807502a3134..5def190d1a3 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElse.java @@ -103,7 +103,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -127,7 +127,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -155,7 +155,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -232,7 +232,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -400,7 +400,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -412,7 +412,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -440,7 +440,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -483,7 +483,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -517,7 +517,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -673,7 +673,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -685,7 +685,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -697,7 +697,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -725,7 +725,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -768,7 +768,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -802,7 +802,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -966,7 +966,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -978,7 +978,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -990,7 +990,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1018,7 +1018,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1061,7 +1061,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1095,7 +1095,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 90fa50e06e4..8eb5fd403ff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -16,8 +16,8 @@ public class ApiConfiguration { private final @Nullable Duration timeout; public ApiConfiguration() { - serverInfo = new ServerInfo(); - serverIndexInfo = new ServerIndexInfo(); + serverInfo = new ServerInfoBuilder().build(); + serverIndexInfo = new ServerIndexInfoBuilder().build(); timeout = null; } @@ -28,36 +28,61 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, } public static class ServerInfo { - protected final RootServerInfo.RootServerInfo1 rootServerInfo; + final RootServerInfo.RootServerInfo1 rootServerInfo; - public ServerInfo() { - rootServerInfo = new RootServerInfo.RootServerInfo1(); - } - - public ServerInfo( + ServerInfo( RootServerInfo. @Nullable RootServerInfo1 rootServerInfo ) { - this.rootServerInfo = Objects.requireNonNullElseGet(rootServerInfo, RootServerInfo.RootServerInfo1::new); + this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); + } + } + + public static class ServerInfoBuilder { + private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; + public ServerInfoBuilder() {} + + public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { + this.rootServerInfo = rootServerInfo; + return this; + } + + public ServerInfo build() { + return new ServerInfo( + rootServerInfo + ); } } public static class ServerIndexInfo { - protected RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; - public ServerIndexInfo() {} + final RootServerInfo.ServerIndex rootServerInfoServerIndex; + + ServerIndexInfo( + RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex + ) { + this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); + } + } + + public static class ServerIndexInfoBuilder { + private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; + public ServerIndexInfoBuilder() {} - public ServerIndexInfo rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { + public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { this.rootServerInfoServerIndex = serverIndex; return this; } + + public ServerIndexInfo build() { + return new ServerIndexInfo( + rootServerInfoServerIndex + ); + } } public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { var serverProvider = serverInfo.rootServerInfo; if (serverIndex == null) { - RootServerInfo. @Nullable ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; - if (configServerIndex == null) { - throw new RuntimeException("rootServerInfoServerIndex is unset"); - } + RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java index df97d799ff0..1223c57764c 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java @@ -44,94 +44,6 @@ public record JsonSchemaKeywordFlags( boolean unevaluatedProperties ) { - public static JsonSchemaKeywordFlags ofNone() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - - public static JsonSchemaKeywordFlags onlyFormat() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - public LinkedHashSet getKeywords() { LinkedHashSet enabledKeywords = new LinkedHashSet<>(); if (additionalProperties) { enabledKeywords.add("additionalProperties"); } @@ -175,4 +87,248 @@ public LinkedHashSet getKeywords() { if (unevaluatedProperties) { enabledKeywords.add("unevaluatedProperties"); } return enabledKeywords; } + + public static class Builder { + private boolean additionalProperties; + private boolean allOf; + private boolean anyOf; + private boolean const_; + private boolean contains; + private boolean dependentRequired; + private boolean dependentSchemas; + private boolean discriminator; + private boolean else_; + private boolean enum_; + private boolean exclusiveMaximum; + private boolean exclusiveMinimum; + private boolean format; + private boolean if_; + private boolean maximum; + private boolean minimum; + private boolean items; + private boolean maxContains; + private boolean maxItems; + private boolean maxLength; + private boolean maxProperties; + private boolean minContains; + private boolean minItems; + private boolean minLength; + private boolean minProperties; + private boolean multipleOf; + private boolean not; + private boolean oneOf; + private boolean pattern; + private boolean patternProperties; + private boolean prefixItems; + private boolean properties; + private boolean propertyNames; + private boolean required; + private boolean then; + private boolean type; + private boolean uniqueItems; + private boolean unevaluatedItems; + private boolean unevaluatedProperties; + + public Builder() {} + + public Builder additionalProperties() { + additionalProperties = true; + return this; + } + public Builder allOf() { + allOf = true; + return this; + } + public Builder anyOf() { + anyOf = true; + return this; + } + public Builder const_() { + const_ = true; + return this; + } + public Builder contains() { + contains = true; + return this; + } + public Builder dependentRequired() { + dependentRequired = true; + return this; + } + public Builder dependentSchemas() { + dependentSchemas = true; + return this; + } + public Builder discriminator() { + discriminator = true; + return this; + } + public Builder else_() { + else_ = true; + return this; + } + public Builder enum_() { + enum_ = true; + return this; + } + public Builder exclusiveMaximum() { + exclusiveMaximum = true; + return this; + } + public Builder exclusiveMinimum() { + exclusiveMinimum = true; + return this; + } + public Builder format() { + format = true; + return this; + } + public Builder if_() { + if_ = true; + return this; + } + public Builder maximum() { + maximum = true; + return this; + } + public Builder minimum() { + minimum = true; + return this; + } + public Builder items() { + items = true; + return this; + } + public Builder maxContains() { + maxContains = true; + return this; + } + public Builder maxItems() { + maxItems = true; + return this; + } + public Builder maxLength() { + maxLength = true; + return this; + } + public Builder maxProperties() { + maxProperties = true; + return this; + } + public Builder minContains() { + minContains = true; + return this; + } + public Builder minItems() { + minItems = true; + return this; + } + public Builder minLength() { + minLength = true; + return this; + } + public Builder minProperties() { + minProperties = true; + return this; + } + public Builder multipleOf() { + multipleOf = true; + return this; + } + public Builder not() { + not = true; + return this; + } + public Builder oneOf() { + oneOf = true; + return this; + } + public Builder pattern() { + pattern = true; + return this; + } + public Builder patternProperties() { + patternProperties = true; + return this; + } + public Builder prefixItems() { + prefixItems = true; + return this; + } + public Builder properties() { + properties = true; + return this; + } + public Builder propertyNames() { + propertyNames = true; + return this; + } + public Builder required() { + required = true; + return this; + } + public Builder then() { + then = true; + return this; + } + public Builder type() { + type = true; + return this; + } + public Builder uniqueItems() { + uniqueItems = true; + return this; + } + public Builder unevaluatedItems() { + unevaluatedItems = true; + return this; + } + public Builder unevaluatedProperties() { + unevaluatedProperties = true; + return this; + } + public JsonSchemaKeywordFlags build() { + return new JsonSchemaKeywordFlags( + additionalProperties, + allOf, + anyOf, + const_, + contains, + dependentRequired, + dependentSchemas, + discriminator, + else_, + enum_, + exclusiveMaximum, + exclusiveMinimum, + format, + if_, + maximum, + minimum, + items, + maxContains, + maxItems, + maxLength, + maxProperties, + minContains, + minItems, + minLength, + minProperties, + multipleOf, + not, + oneOf, + pattern, + patternProperties, + prefixItems, + properties, + propertyNames, + required, + then, + type, + uniqueItems, + unevaluatedItems, + unevaluatedProperties + ); + } + } } \ No newline at end of file diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 7990efaa995..6b374aebbe1 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -89,7 +89,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -101,7 +101,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -113,7 +113,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -141,7 +141,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -183,7 +183,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 12af2ba8196..86598ab393d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -47,7 +47,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 4853a27dee8..9e795318d67 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index a5b4f50d788..3304924e331 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index 6651aa44497..f9e3f6a6f3b 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -49,7 +49,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 9bcb31d2068..c45d985d95d 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -49,7 +49,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 101b2ea1f57..06a918eecb0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -49,7 +49,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index 2938d08bf21..b31b7688b58 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -52,7 +52,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index c17217a89ab..4ea9603434e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -54,7 +54,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 34b79da8f66..a89a70c02c5 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -54,7 +54,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 8135ed020cf..bce36256ac6 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -69,7 +69,7 @@ public static ListJsonSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 85396cda11a..02f18d8ba8a 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -74,7 +74,7 @@ public static MapJsonSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 7a1a3367d78..1b5160638ff 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -91,7 +91,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -103,7 +103,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -143,7 +143,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -185,7 +185,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index af32938007e..293807e5c12 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -48,7 +48,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 57629ac9557..260d4e15a44 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -53,7 +53,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 7185ac28496..92570628dd0 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 2502602642f..c9ccef0420e 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 8e17449eb27..8608632a6dd 100644 --- a/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/3_1_0_unit_test/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -76,7 +76,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -88,7 +88,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -100,7 +100,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -170,7 +170,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitemsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitemsTest.java index ff1a139293b..5f65b551fe5 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitemsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ASchemaGivenForPrefixitemsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ASchemaGivenForPrefixitemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testCorrectTypesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefaultTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefaultTest.java index 6f3b3d7e7cf..5bd1de31242 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefaultTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalItemsAreAllowedByDefaultTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalItemsAreAllowedByDefaultTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOnlyTheFirstItemIsValidatedPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java index cc313aecdc7..f28cfca5dfb 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesAreAllowedByDefaultTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesAreAllowedByDefaultTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAdditionalPropertiesAreAllowedPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java index 511ed766816..3c5b384083e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesCanExistByItselfTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesCanExistByItselfTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnAdditionalValidPropertyIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicatorsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicatorsTest.java index f09a9c8225e..1e715e55753 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicatorsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesDoesNotLookInApplicatorsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesDoesNotLookInApplicatorsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertiesDefinedInAllofAreNotExaminedFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstancePropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstancePropertiesTest.java index f85074f23d3..1ce357eca5e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstancePropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithNullValuedInstancePropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesWithNullValuedInstancePropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullValuesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchemaTest.java index f35e5425807..23781d25fb8 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalpropertiesWithSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AdditionalpropertiesWithSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNoAdditionalPropertiesIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java index 0a0b984f2a9..b7ab9e5a841 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofCombinedWithAnyofOneofTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofCombinedWithAnyofOneofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllofFalseAnyofFalseOneofTrueFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java index a1674088c48..1c987f29ab8 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofSimpleTypesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofSimpleTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchOneFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java index dd860fd7933..75aab7bd208 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchSecondFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java index 6ecb6d11785..e2957afa467 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithBaseSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithBaseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchBaseSchemaFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java index b9789ef7a07..df1d1bfead6 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithOneEmptySchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithOneEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnyDataIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java index 8ca39f6230c..8309b3c7779 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheFirstEmptySchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithTheFirstEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testStringIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java index 8dd9396f839..e33c141d0e3 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTheLastEmptySchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithTheLastEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testStringIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java index de5acdab7e0..07bea5fdec3 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AllofWithTwoEmptySchemasTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AllofWithTwoEmptySchemasTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnyDataIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java index 16f9ce46d75..e2a398b9032 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofComplexTypesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofComplexTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSecondAnyofValidComplexPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java index 8862d6c0537..b5c54e4a337 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBothAnyofValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java index ba43a0f6796..eb63cce962e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithBaseSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofWithBaseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchBaseSchemaFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java index dd35d31abde..2f99332b656 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyofWithOneEmptySchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class AnyofWithOneEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumberIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java index 11db0660547..fcd02daa661 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTypeMatchesArraysTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ArrayTypeMatchesArraysTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testABooleanIsNotAnArrayFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java index 87d8cd62521..c74c1e204d7 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanTypeMatchesBooleansTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class BooleanTypeMatchesBooleansTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAFloatIsNotABooleanFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java index 74374bb8c74..a76cb7bbcae 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByIntTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ByIntTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testIntByIntFailFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java index 4e7853023c6..98e8265e712 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ByNumberTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ByNumberTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void test35IsNotMultipleOf15Fails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java index 49412ed2b66..014d95ee133 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/BySmallNumberTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class BySmallNumberTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void test000751IsNotMultipleOf00001Fails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStringsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStringsTest.java index f69ab37c041..51af7d71495 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStringsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ConstNulCharactersInStringsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ConstNulCharactersInStringsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchStringWithNulPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidationTest.java index fcb2a5fcd1f..6b03e2a393c 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsKeywordValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ContainsKeywordValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testArrayWithTwoItemsMatchingSchema56IsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElementsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElementsTest.java index 6f2a8e7eb04..ef047ee18be 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElementsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ContainsWithNullInstanceElementsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ContainsWithNullInstanceElementsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullItemsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateFormatTest.java index ed02708dd02..ccd613faaca 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DateFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java index 99cfc33382a..c6b165a9fc9 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DateTimeFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharactersTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharactersTest.java index 121cdd4dab9..56e6b106408 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharactersTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependenciesWithEscapedCharactersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DependentSchemasDependenciesWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testQuotedQuoteInvalidUnderDependentSchemaFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRootTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRootTest.java index 06d74b83b46..d98a7e15ed1 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRootTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasDependentSubschemaIncompatibleWithRootTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DependentSchemasDependentSubschemaIncompatibleWithRootTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchesRootFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependencyTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependencyTest.java index 45d72027fdb..81a303e5fa3 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependencyTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DependentSchemasSingleDependencyTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DependentSchemasSingleDependencyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testWrongTypeFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DurationFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DurationFormatTest.java index d63978f88ab..b8df2e56fca 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DurationFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/DurationFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class DurationFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java index 9277a3c898d..8a6bf07873a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmailFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EmailFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmptyDependentsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmptyDependentsTest.java index b44fbb68c1b..17b68858360 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmptyDependentsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EmptyDependentsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EmptyDependentsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testEmptyObjectPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java index 41bd273b265..4dbef3064c9 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith0DoesNotMatchFalseTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWith0DoesNotMatchFalseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFloatZeroIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java index 68149695cb4..fd612319e62 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWith1DoesNotMatchTrueTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWith1DoesNotMatchTrueTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testTrueIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java index 824c69b9e52..d0c9650f367 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithEscapedCharactersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnotherStringIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java index 2ebf7b16a0b..c83eade9a73 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithFalseDoesNotMatch0Test.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWithFalseDoesNotMatch0Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFloatZeroIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java index 126722f76af..5ef4d1b21b0 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumWithTrueDoesNotMatch1Test.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumWithTrueDoesNotMatch1Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFloatOneIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java index 6ae3209d9ab..e59dfd7a829 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumsInPropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class EnumsInPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testWrongBarValueFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidationTest.java index f83179be9f4..6bcc097379b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusivemaximumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ExclusivemaximumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBelowTheExclusivemaximumIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidationTest.java index 265482a812a..b39ed0aa7f1 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ExclusiveminimumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ExclusiveminimumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBelowTheExclusiveminimumIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInfTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInfTest.java index 33d5b5155ce..826171785c2 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInfTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/FloatDivisionInfTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class FloatDivisionInfTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAlwaysInvalidButNaiveImplementationsMayRaiseAnOverflowErrorFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java index f4abf2a98e7..37f48241628 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ForbiddenPropertyTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ForbiddenPropertyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyPresentFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java index d60fec65aea..7368457634a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/HostnameFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class HostnameFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormatTest.java index f4d18eacb63..fa04cdf353a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnEmailFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IdnEmailFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormatTest.java index 577d58e5260..27d8b67ba2a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IdnHostnameFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IdnHostnameFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThenTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThenTest.java index 72898162d8e..10ade594d5d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThenTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndElseWithoutThenTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IfAndElseWithoutThenTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidWhenIfTestPassesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElseTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElseTest.java index 9e62b44648d..0da8c241e57 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElseTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAndThenWithoutElseTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IfAndThenWithoutElseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidThroughThenPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequenceTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequenceTest.java index 1237406e198..00e348f9f06 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequenceTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IfAppearsAtTheEndWhenSerializedKeywordProcessingSequenceTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IfAppearsAtTheEndWhenSerializedKeywordProcessingSequenceTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testInvalidRedirectsToElseAndFailsFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIfTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIfTest.java index c840f937ff5..b3f80dfff4c 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIfTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreElseWithoutIfTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IgnoreElseWithoutIfTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidWhenInvalidAgainstLoneElsePasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElseTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElseTest.java index 182952547c9..c27f35a7c5f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElseTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreIfWithoutThenOrElseTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IgnoreIfWithoutThenOrElseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidWhenInvalidAgainstLoneIfPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIfTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIfTest.java index df38e3dbd08..fd1f951c7fb 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIfTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IgnoreThenWithoutIfTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IgnoreThenWithoutIfTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidWhenValidAgainstLoneThenPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java index 4feb92f8419..2a9cc349419 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerTypeMatchesIntegersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IntegerTypeMatchesIntegersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnObjectIsNotAnIntegerFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java index ea0360a448f..67ef9b45233 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv4FormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class Ipv4FormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java index e8048a31bc2..e85621994d0 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Ipv6FormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class Ipv6FormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriFormatTest.java index 9974ad6f161..edd434441f2 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IriFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormatTest.java index 6e93ea9fbd4..2b3ef20e0d5 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/IriReferenceFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class IriReferenceFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsContainsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsContainsTest.java index e8a60941cbd..7d13b0c97d6 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsContainsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsContainsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ItemsContainsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchesItemsDoesNotMatchContainsFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCaseTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCaseTest.java index 4d3ca7c8e9b..703a73e82da 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCaseTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsDoesNotLookInApplicatorsValidCaseTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ItemsDoesNotLookInApplicatorsValidCaseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPrefixitemsInAllofDoesNotConstrainItemsValidCasePasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElementsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElementsTest.java index 3ad346560b5..7322d0fa17d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElementsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsWithNullInstanceElementsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ItemsWithNullInstanceElementsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullElementsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java index ed61871f3d4..0a0cecc5a76 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/JsonPointerFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class JsonPointerFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnoredTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnoredTest.java index 441a08def86..681eebb80ac 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnoredTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxcontainsWithoutContainsIsIgnoredTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxcontainsWithoutContainsIsIgnoredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testTwoItemsStillValidAgainstLoneMaxcontainsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java index b1dff24361b..1dfc1820ee2 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaximumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAboveTheMaximumIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java index cb8878f3a0b..e60c201fe63 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaximumValidationWithUnsignedIntegerTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaximumValidationWithUnsignedIntegerTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAboveTheMaximumIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java index d3f0f0840f7..9a32e9089e9 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxitemsValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxitemsValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testShorterIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java index 85afd54340c..a349fcebd6d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxlengthValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxlengthValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testShorterIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java index 677ee68f23c..e382257f333 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/Maxproperties0MeansTheObjectIsEmptyTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class Maxproperties0MeansTheObjectIsEmptyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOnePropertyIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java index 3dfdc1f8f4a..04955424208 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MaxpropertiesValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MaxpropertiesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testShorterIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnoredTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnoredTest.java index aac3d8ea3b2..4cf5d8399be 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnoredTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MincontainsWithoutContainsIsIgnoredTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MincontainsWithoutContainsIsIgnoredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOneItemValidAgainstLoneMincontainsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java index f56d91c9459..ba79a520280 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinimumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBoundaryPointIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java index 1f8d353e533..4dc63ece57a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinimumValidationWithSignedIntegerTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinimumValidationWithSignedIntegerTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBoundaryPointWithFloatIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java index 64106617015..77f806995ba 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinitemsValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinitemsValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testExactLengthIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java index 07b264a5c82..c3012ffd07b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinlengthValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinlengthValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testExactLengthIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java index 172344eb28b..af92a38a793 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MinpropertiesValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MinpropertiesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testExactLengthIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequiredTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequiredTest.java index c10084aa744..2d0e1d5782e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequiredTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleDependentsRequiredTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MultipleDependentsRequiredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNondependantsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidatedTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidatedTest.java index dfb21c061a1..2746d0e355a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidatedTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleSimultaneousPatternpropertiesAreValidatedTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MultipleSimultaneousPatternpropertiesAreValidatedTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testASimultaneousMatchIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArrayTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArrayTest.java index 3fce40e3a6c..2998702cacb 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArrayTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/MultipleTypesCanBeSpecifiedInAnArrayTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class MultipleTypesCanBeSpecifiedInAnArrayTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java index 5495226a1ba..fcd5ccda43b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAllofToCheckValidationSemanticsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedAllofToCheckValidationSemanticsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java index ef87267b15b..4525b8b5977 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedAnyofToCheckValidationSemanticsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedAnyofToCheckValidationSemanticsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java index 40475304a3d..b7010fedc16 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedItemsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNestedArrayWithInvalidTypeFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java index 9fe66b0503e..999c983a12d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NestedOneofToCheckValidationSemanticsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NestedOneofToCheckValidationSemanticsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNullIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalpropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalpropertiesTest.java index 1e77b7151fc..70007bce620 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalpropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonAsciiPatternWithAdditionalpropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NonAsciiPatternWithAdditionalpropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNotMatchingThePatternIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemasTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemasTest.java index aca45a9f49e..4b4d8f4446b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemasTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NonInterferenceAcrossCombinedSchemasTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NonInterferenceAcrossCombinedSchemasTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidButWouldHaveBeenInvalidThroughElsePasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java index bbfe9858805..422c8e31360 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMoreComplexSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NotMoreComplexSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOtherMatchPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypesTest.java index 25763e3b907..78cec2f919d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotMultipleTypesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NotMultipleTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOtherMismatchFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java index ab90c86cd0f..40cf53ddc53 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NotTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NotTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testDisallowedFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java index ebb974de6e5..9e80c0eee7d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NulCharactersInStringsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NulCharactersInStringsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchStringWithNulPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java index a45c6ec610b..ba73175631c 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullTypeMatchesOnlyTheNullObjectTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NullTypeMatchesOnlyTheNullObjectTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testZeroIsNotNullFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java index ff6e9d37dce..b255ca91e2c 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberTypeMatchesNumbersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class NumberTypeMatchesNumbersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAFloatIsANumberPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java index 49a367ac58d..79edace447b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectPropertiesValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ObjectPropertiesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBothPropertiesPresentAndValidIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java index 85587d1cd10..76686323e38 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectTypeMatchesObjectsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ObjectTypeMatchesObjectsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnObjectIsAnObjectPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java index e94f9277dce..f5d1d725439 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofComplexTypesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofComplexTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSecondOneofValidComplexPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java index 50252968f84..7357ea6ee5d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testBothOneofValidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java index ea57fe7c2bd..1c63778cdbd 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithBaseSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofWithBaseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMismatchBaseSchemaFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java index 5113d359187..c977b3e95db 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithEmptySchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofWithEmptySchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testOneValidValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java index db5b73fd386..5ea13f4c049 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/OneofWithRequiredTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class OneofWithRequiredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFirstValidValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java index 0f3306d9ed7..a5861dbe98f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternIsNotAnchoredTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PatternIsNotAnchoredTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMatchesASubstringPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java index b9cbe91112a..6216a6b7709 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PatternValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testIgnoresBooleansPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegexTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegexTest.java index 46e86960311..2294138171f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegexTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesValidatesPropertiesMatchingARegexTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PatternpropertiesValidatesPropertiesMatchingARegexTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testMultipleInvalidMatchesIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstancePropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstancePropertiesTest.java index 8dcbd5f0bf5..5c7f6fcb2e4 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstancePropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PatternpropertiesWithNullValuedInstancePropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PatternpropertiesWithNullValuedInstancePropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullValuesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItemsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItemsTest.java index 0a3bb0b2be0..ad1c9221682 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItemsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsValidationAdjustsTheStartingIndexForItemsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PrefixitemsValidationAdjustsTheStartingIndexForItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidItemsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElementsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElementsTest.java index 6cd65892ebf..93f2c6b8171 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElementsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PrefixitemsWithNullInstanceElementsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PrefixitemsWithNullInstanceElementsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullElementsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteractionTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteractionTest.java index 67849f0c820..9462e95df38 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteractionTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesPatternpropertiesAdditionalpropertiesInteractionTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertiesPatternpropertiesAdditionalpropertiesInteractionTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyValidatesPropertyPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java index 704cd759d28..54c75f6f44f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testProtoNotValidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java index 9708c6d0a96..89e7ac3f35e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithEscapedCharactersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertiesWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testObjectWithAllNumbersIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstancePropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstancePropertiesTest.java index 07a7cdaa79c..02716b0cd5a 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstancePropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertiesWithNullValuedInstancePropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertiesWithNullValuedInstancePropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullValuesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java index 3daa2b69f6f..985921c741c 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertyNamedRefThatIsNotAReferenceTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertyNamedRefThatIsNotAReferenceTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNamedRefValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidationTest.java index b878c02399c..2d89b21bc32 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/PropertynamesValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class PropertynamesValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSomePropertyNamesInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexFormatTest.java index 37ebc7e67ba..0d3b92a554d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RegexFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitiveTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitiveTest.java index 94caaa2f2bb..9810c49641d 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitiveTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RegexesAreNotAnchoredByDefaultAndAreCaseSensitiveTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RegexesAreNotAnchoredByDefaultAndAreCaseSensitiveTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testRegexesAreCaseSensitivePasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormatTest.java index 02cfc5fd51f..e36d16ced42 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RelativeJsonPointerFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RelativeJsonPointerFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java index f02f348d3c7..04e062c7aea 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredDefaultValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredDefaultValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNotRequiredByDefaultPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java index 006ab9e96c4..203b63a067b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testTostringPresentFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java index 6c3326cf9eb..237b9f7bf78 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPresentRequiredPropertyIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java index ab0c3b23704..21850ab1148 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEmptyArrayTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredWithEmptyArrayTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testPropertyNotRequiredPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java index 4d0f295d05a..51377e07b82 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/RequiredWithEscapedCharactersTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class RequiredWithEscapedCharactersTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testObjectWithSomePropertiesMissingIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java index 26dda5efa38..e9096e379ea 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleEnumValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class SimpleEnumValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testSomethingElseIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SingleDependencyTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SingleDependencyTest.java index 7558d84ea2e..2ab33c64080 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SingleDependencyTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SingleDependencyTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class SingleDependencyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNondependantPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeIntegerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeIntegerTest.java index cf0eb86a694..751dd2c1000 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeIntegerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/SmallMultipleOfLargeIntegerTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class SmallMultipleOfLargeIntegerTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAnyIntegerIsAMultipleOf1E8Passes() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java index af3c4c287bd..c901b0179e6 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringTypeMatchesStringsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class StringTypeMatchesStringsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAStringIsStillAStringEvenIfItLooksLikeANumberPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TimeFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TimeFormatTest.java index 90796cbcb03..17d49c84ab0 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TimeFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TimeFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class TimeFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNullTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNullTest.java index ddc4912ef1f..b0d3b3555b1 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNullTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayObjectOrNullTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class TypeArrayObjectOrNullTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumberIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObjectTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObjectTest.java index 2f84d222da8..35637c06ddf 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObjectTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeArrayOrObjectTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class TypeArrayOrObjectTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumberIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeAsArrayWithOneItemTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeAsArrayWithOneItemTest.java index 8a4dc06bb51..4363602ba18 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeAsArrayWithOneItemTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/TypeAsArrayWithOneItemTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class TypeAsArrayWithOneItemTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumberIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchemaTest.java index d6866eb82a2..08d9e9edbb7 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsAsSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluateditemsAsSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testWithValidUnevaluatedItemsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContainsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContainsTest.java index d594c2cc908..192d6f11049 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContainsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsDependsOnMultipleNestedContainsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluateditemsDependsOnMultipleNestedContainsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void test7NotEvaluatedFailsUnevaluateditemsFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItemsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItemsTest.java index ecf8f79771a..5cdddb58aac 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItemsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithItemsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluateditemsWithItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testInvalidUnderItemsFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElementsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElementsTest.java index b800400ea07..cc00cf277d7 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElementsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluateditemsWithNullInstanceElementsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluateditemsWithNullInstanceElementsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullElementsPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynamesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynamesTest.java index 05efdd07b81..cf3ae349814 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynamesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesNotAffectedByPropertynamesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluatedpropertiesNotAffectedByPropertynamesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsOnlyNumberPropertiesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchemaTest.java index 0d4c66818be..a345c2549cf 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesSchemaTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluatedpropertiesSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testWithInvalidUnevaluatedPropertiesFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalpropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalpropertiesTest.java index 13972401d0f..7d2cd995755 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalpropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithAdjacentAdditionalpropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluatedpropertiesWithAdjacentAdditionalpropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testWithAdditionalPropertiesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstancePropertiesTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstancePropertiesTest.java index 410fa197289..032692c1bef 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstancePropertiesTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UnevaluatedpropertiesWithNullValuedInstancePropertiesTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UnevaluatedpropertiesWithNullValuedInstancePropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllowsNullValuedPropertiesPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java index ec0b6a01bd8..2814b7ab7f2 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UniqueitemsFalseValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNumbersAreUniqueIfMathematicallyUnequalPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItemsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItemsTest.java index 4fb621b2bc1..e971c9753b6 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItemsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsFalseWithAnArrayOfItemsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UniqueitemsFalseWithAnArrayOfItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testFalseFalseFromItemsArrayIsValidPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java index 03ba6533f13..3539de0e968 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsValidationTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UniqueitemsValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testNonUniqueArrayOfMoreThanTwoIntegersIsInvalidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItemsTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItemsTest.java index cb31e897af8..beabcbe367f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItemsTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UniqueitemsWithAnArrayOfItemsTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UniqueitemsWithAnArrayOfItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testTrueTrueFromItemsArrayIsNotValidFails() { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java index abb3604960d..7f2b847f251 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UriFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java index ba47ee8e61f..e842eb0b721 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriReferenceFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UriReferenceFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java index a55ae7d86aa..32e582a41dd 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UriTemplateFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UriTemplateFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UuidFormatTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UuidFormatTest.java index e3c5341617b..d68ecb76d47 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UuidFormatTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/UuidFormatTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class UuidFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testAllStringFormatsIgnoreIntegersPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElseTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElseTest.java index 186895289c3..ddca75a1bb8 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElseTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/components/schemas/ValidateAgainstCorrectBranchThenVsElseTest.java @@ -14,7 +14,7 @@ import java.util.AbstractMap; public class ValidateAgainstCorrectBranchThenVsElseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); @Test public void testValidThroughThenPasses() throws ValidationException { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java index 476dab2c3da..b16e6ddb941 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java @@ -90,7 +90,7 @@ public void testSerialization() throws ValidationException, NotImplementedExcept true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; class ApplicationJsonMediaType implements MediaType { @Override diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java index b1dc30975ab..6f2c8ce93cf 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java @@ -86,7 +86,7 @@ public void testSerialization() throws ValidationException, NotImplementedExcept true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; for (ParamTestCase testCase: testCases) { var header = new SchemaHeader( @@ -128,7 +128,7 @@ private void assertNull(@Nullable Object object) { @Test public void testDeserialization() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); SchemaHeader header = getHeader(NullJsonSchema.NullJsonSchema1.getInstance()); @Nullable Object deserialized = header.deserialize(List.of(""), false, configuration); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 93a5adb916a..b44c2e57a4e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -96,7 +96,7 @@ private String getJsonBody(SerializedRequestBody requestBody) { @Test public void testSerializeApplicationJson() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); String jsonBody; SerializedRequestBody requestBody = serializer.serialize( @@ -167,7 +167,7 @@ public void testSerializeApplicationJson() throws ValidationException, NotImplem @Test public void testSerializeTextPlain() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); SerializedRequestBody requestBody = serializer.serialize( new TextplainRequestBody( diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index e4656ecbbc3..8ead62eb4d8 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -155,7 +155,7 @@ public void testDeserializeApplicationJsonNull() throws ValidationException, Api var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -171,7 +171,7 @@ public void testDeserializeApplicationJsonTrue() throws ValidationException, Api var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -187,7 +187,7 @@ public void testDeserializeApplicationJsonFalse() throws ValidationException, Ap var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -203,7 +203,7 @@ public void testDeserializeApplicationJsonInt() throws ValidationException, ApiE var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -219,7 +219,7 @@ public void testDeserializeApplicationJsonFloat() throws ValidationException, Ap var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -235,7 +235,7 @@ public void testDeserializeApplicationJsonString() throws ValidationException, A var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java index 206c683cd50..ef64ccf8f8b 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java @@ -18,7 +18,7 @@ public class AnyTypeSchemaTest { static final AnyTypeJsonSchema.AnyTypeJsonSchema1 schema = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance(); - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); @SuppressWarnings("nullness") private Void assertNull(@Nullable Object object) { diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index 0ca5e56ecd2..297432ee456 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -22,7 +22,7 @@ import java.util.Set; public class ArrayTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -69,7 +69,7 @@ public FrozenList validate(List arg, SchemaConfiguration configuratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -155,7 +155,7 @@ public ArrayWithOutputClsSchemaList validate(List arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java index 7ac24fbeaa2..d2990773fa7 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class BooleanSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 booleanJsonSchema = BooleanJsonSchema.BooleanJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java index 17d5f35dcbe..15967a549cc 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java @@ -16,7 +16,7 @@ import java.util.List; public class ListSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ListJsonSchema.ListJsonSchema1 listJsonSchema = ListJsonSchema.ListJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java index 5b03fec8609..68c00adfc8e 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java @@ -18,7 +18,7 @@ import java.util.Map; public class MapSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java index eb1c70ef049..a4f96beb7ca 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NullSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NullJsonSchema.NullJsonSchema1 nullJsonSchema = NullJsonSchema.NullJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java index fcde27495e3..46e3454809f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NumberSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NumberJsonSchema.NumberJsonSchema1 numberJsonSchema = NumberJsonSchema.NumberJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index fad3d574369..28dc7c066ef 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -24,7 +24,7 @@ import java.util.Set; public class ObjectTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -82,7 +82,7 @@ public static ObjectWithPropsSchema getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -169,7 +169,7 @@ public FrozenMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -255,7 +255,7 @@ public static ObjectWithPropsAndAddpropsSchema getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -350,7 +350,7 @@ public ObjectWithOutputTypeSchemaMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java index d3cba69fb20..23b73510e3f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java @@ -17,7 +17,7 @@ public static class RefBooleanSchema { public static class RefBooleanSchema1 extends BooleanJsonSchema.BooleanJsonSchema1 {} } - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 refBooleanJsonSchema = RefBooleanSchema.RefBooleanSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java index ea3ec6ae8c3..f0049b7e93f 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java @@ -74,7 +74,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -109,7 +109,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -129,7 +129,7 @@ public void testIncorrectPropertyValueFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java index cb03bcf8f5b..ca2ec5a1299 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java @@ -23,7 +23,7 @@ public class FormatValidatorTest { static final ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java index 5b70aada50c..391888f03ec 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java @@ -58,7 +58,7 @@ public void testCorrectItemsSucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -92,7 +92,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -112,7 +112,7 @@ public void testIncorrectItemFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index c1cc4c84e9e..302ae7eeeec 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -61,7 +61,7 @@ public void testValidateSucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java index e35b145e721..0112b383f84 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java @@ -63,7 +63,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -96,7 +96,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -116,7 +116,7 @@ public void testIncorrectPropertyValueFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java index 58c160a0499..72d044cf4cf 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java @@ -58,7 +58,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -81,7 +81,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -101,7 +101,7 @@ public void testIncorrectPropertyFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java index c31855af4ff..01378dd4d41 100644 --- a/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java +++ b/samples/client/3_1_0_unit_test/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java @@ -22,7 +22,7 @@ public void testValidateSucceeds() throws ValidationException { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -41,7 +41,7 @@ public void testValidateFailsIntIsNotString() { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2fefe8ab04f..07162fcb5fa 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_a_schema_given_for_prefixitems_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems**](../../../../../../../../../components/schema/a_schema_given_for_prefixitems.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTupleInput](../../../../../../../../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstupleinput), [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../../../../../../../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../../../../../../../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO +[**a_schema_given_for_prefixitems.ASchemaGivenForPrefixitems**](../../../../../../../components/schema/a_schema_given_for_prefixitems.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTupleInput](../../../../../../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstupleinput), [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../../../../../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [a_schema_given_for_prefixitems.ASchemaGivenForPrefixitemsTuple](../../../../../../../components/schema/a_schema_given_for_prefixitems.md#aschemagivenforprefixitemstuple), bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d307d7d2b21..8cb14e77d6d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additional_items_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault**](../../../../../../../../../components/schema/additional_items_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTupleInput](../../../../../../../../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttupleinput), [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../../../../../../../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../../../../../../../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO +[**additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefault**](../../../../../../../components/schema/additional_items_are_allowed_by_default.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTupleInput](../../../../../../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttupleinput), [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../../../../../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [additional_items_are_allowed_by_default.AdditionalItemsAreAllowedByDefaultTuple](../../../../../../../components/schema/additional_items_are_allowed_by_default.md#additionalitemsareallowedbydefaulttuple), bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ecbb7a7bc3d..cd7af129545 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefault**](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md) | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDictInput](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdictinput), [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_are_allowed_by_default.AdditionalpropertiesAreAllowedByDefaultDict](../../../../../../../components/schema/additionalproperties_are_allowed_by_default.md#additionalpropertiesareallowedbydefaultdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 561f130149f..a1511fc50f9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) +[**additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItself**](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDictInput](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdictinput), [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) | [additionalproperties_can_exist_by_itself.AdditionalpropertiesCanExistByItselfDict](../../../../../../../components/schema/additionalproperties_can_exist_by_itself.md#additionalpropertiescanexistbyitselfdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d2a88fcc639..14f9c246c5a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_does_not_look_in_applicators_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicators**](../../../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md) | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDictInput](../../../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdictinput), [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicators**](../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md) | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDictInput](../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdictinput), [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [additionalproperties_does_not_look_in_applicators.AdditionalpropertiesDoesNotLookInApplicatorsDict](../../../../../../../components/schema/additionalproperties_does_not_look_in_applicators.md#additionalpropertiesdoesnotlookinapplicatorsdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2f70270b9cc..fda8426997e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstanceProperties**](../../../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDictInput](../../../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdictinput), [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) +[**additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstanceProperties**](../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDictInput](../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdictinput), [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) | [additionalproperties_with_null_valued_instance_properties.AdditionalpropertiesWithNullValuedInstancePropertiesDict](../../../../../../../components/schema/additionalproperties_with_null_valued_instance_properties.md#additionalpropertieswithnullvaluedinstancepropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ae24979e08e..bddde9449a0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_additionalproperties_with_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additionalproperties_with_schema.AdditionalpropertiesWithSchema**](../../../../../../../../../components/schema/additionalproperties_with_schema.md) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDictInput](../../../../../../../../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadictinput), [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../../../../../../../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../../../../../../../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) +[**additionalproperties_with_schema.AdditionalpropertiesWithSchema**](../../../../../../../components/schema/additionalproperties_with_schema.md) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDictInput](../../../../../../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadictinput), [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../../../../../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) | [additionalproperties_with_schema.AdditionalpropertiesWithSchemaDict](../../../../../../../components/schema/additionalproperties_with_schema.md#additionalpropertieswithschemadict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f51f5b23951..8cb8214d9e4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../../../../../../../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_combined_with_anyof_oneof.AllofCombinedWithAnyofOneof**](../../../../../../../components/schema/allof_combined_with_anyof_oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2fcb59ee0ce..80c0381d942 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof.Allof**](../../../../../../../../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof.Allof**](../../../../../../../components/schema/allof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 8007344349e..80d2c2a44c5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_simple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_simple_types.AllofSimpleTypes**](../../../../../../../../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_simple_types.AllofSimpleTypes**](../../../../../../../components/schema/allof_simple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 68859eb72fe..d43ae5e7d8c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_base_schema.AllofWithBaseSchema**](../../../../../../../../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_base_schema.AllofWithBaseSchema**](../../../../../../../components/schema/allof_with_base_schema.md) | [allof_with_base_schema.AllofWithBaseSchemaDictInput](../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadictinput), [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [allof_with_base_schema.AllofWithBaseSchemaDict](../../../../../../../components/schema/allof_with_base_schema.md#allofwithbaseschemadict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c9769f2c192..8314f88a577 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../../../../../../../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_one_empty_schema.AllofWithOneEmptySchema**](../../../../../../../components/schema/allof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0f5204310dd..da3a1d2c9ee 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../../../../../../../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_the_first_empty_schema.AllofWithTheFirstEmptySchema**](../../../../../../../components/schema/allof_with_the_first_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e54a153d784..6be962b0182 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../../../../../../../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_the_last_empty_schema.AllofWithTheLastEmptySchema**](../../../../../../../components/schema/allof_with_the_last_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 31bd28aaa19..c57f1477a78 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../../../../../../../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**allof_with_two_empty_schemas.AllofWithTwoEmptySchemas**](../../../../../../../components/schema/allof_with_two_empty_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e775ca6dc03..508ec31d240 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof_complex_types.AnyofComplexTypes**](../../../../../../../../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**anyof_complex_types.AnyofComplexTypes**](../../../../../../../components/schema/anyof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index aeb09075c89..f9957405abd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof.Anyof**](../../../../../../../../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**anyof.Anyof**](../../../../../../../components/schema/anyof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 00fd41070bd..b763a336df9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof_with_base_schema.AnyofWithBaseSchema**](../../../../../../../../../components/schema/anyof_with_base_schema.md) | str | str +[**anyof_with_base_schema.AnyofWithBaseSchema**](../../../../../../../components/schema/anyof_with_base_schema.md) | str | str diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ef4a10b7c0f..ffe117b0a89 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../../../../../../../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**anyof_with_one_empty_schema.AnyofWithOneEmptySchema**](../../../../../../../components/schema/anyof_with_one_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 4b3a89c2241..a736ec47156 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../../../../../../../../components/schema/array_type_matches_arrays.md) | list, tuple | tuple +[**array_type_matches_arrays.ArrayTypeMatchesArrays**](../../../../../../../components/schema/array_type_matches_arrays.md) | list, tuple | tuple diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 89b22174a72..d5ae0f44820 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../../../../../../../../components/schema/boolean_type_matches_booleans.md) | bool | bool +[**boolean_type_matches_booleans.BooleanTypeMatchesBooleans**](../../../../../../../components/schema/boolean_type_matches_booleans.md) | bool | bool diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 53fd7291e4a..1e1bc278952 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_int_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**by_int.ByInt**](../../../../../../../../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**by_int.ByInt**](../../../../../../../components/schema/by_int.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 71773c07a46..a8812333875 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**by_number.ByNumber**](../../../../../../../../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**by_number.ByNumber**](../../../../../../../components/schema/by_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 6ffe0520190..00f19b0377f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_by_small_number_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**by_small_number.BySmallNumber**](../../../../../../../../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**by_small_number.BySmallNumber**](../../../../../../../components/schema/by_small_number.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 5ce4ab5d0e7..e50b2cdf758 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_const_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**const_nul_characters_in_strings.ConstNulCharactersInStrings**](../../../../../../../../../components/schema/const_nul_characters_in_strings.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**const_nul_characters_in_strings.ConstNulCharactersInStrings**](../../../../../../../components/schema/const_nul_characters_in_strings.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index adb9424a4e9..7ce4455d91d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_keyword_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**contains_keyword_validation.ContainsKeywordValidation**](../../../../../../../../../components/schema/contains_keyword_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**contains_keyword_validation.ContainsKeywordValidation**](../../../../../../../components/schema/contains_keyword_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0dd15afe4ea..d9def508342 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_contains_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**contains_with_null_instance_elements.ContainsWithNullInstanceElements**](../../../../../../../../../components/schema/contains_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**contains_with_null_instance_elements.ContainsWithNullInstanceElements**](../../../../../../../components/schema/contains_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 87c30aa6dbc..7722db56270 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**date_format.DateFormat**](../../../../../../../../../components/schema/date_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**date_format.DateFormat**](../../../../../../../components/schema/date_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e37258e4b2e..5d3e37ea7aa 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_date_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**date_time_format.DateTimeFormat**](../../../../../../../../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**date_time_format.DateTimeFormat**](../../../../../../../components/schema/date_time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a129dd6e263..b469db081c2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependencies_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters**](../../../../../../../../../components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**dependent_schemas_dependencies_with_escaped_characters.DependentSchemasDependenciesWithEscapedCharacters**](../../../../../../../components/schema/dependent_schemas_dependencies_with_escaped_characters.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 07b4cb911eb..a15cc44b17c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_dependent_subschema_incompatible_with_root_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot**](../../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRoot**](../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md) | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDictInput](../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdictinput), [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [dependent_schemas_dependent_subschema_incompatible_with_root.DependentSchemasDependentSubschemaIncompatibleWithRootDict](../../../../../../../components/schema/dependent_schemas_dependent_subschema_incompatible_with_root.md#dependentschemasdependentsubschemaincompatiblewithrootdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b6e77b8ca2f..b1bb79135b5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_dependent_schemas_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**dependent_schemas_single_dependency.DependentSchemasSingleDependency**](../../../../../../../../../components/schema/dependent_schemas_single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**dependent_schemas_single_dependency.DependentSchemasSingleDependency**](../../../../../../../components/schema/dependent_schemas_single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c1ca480ae95..880c1a0cbfc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_duration_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**duration_format.DurationFormat**](../../../../../../../../../components/schema/duration_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**duration_format.DurationFormat**](../../../../../../../components/schema/duration_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 12642beae3c..fb1e8b62280 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**email_format.EmailFormat**](../../../../../../../../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**email_format.EmailFormat**](../../../../../../../components/schema/email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 83ede1d9e72..12c2ceb2089 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_empty_dependents_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**empty_dependents.EmptyDependents**](../../../../../../../../../components/schema/empty_dependents.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**empty_dependents.EmptyDependents**](../../../../../../../components/schema/empty_dependents.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c0600ea2bf6..de8ba85d69d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../../../../../../../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int +[**enum_with0_does_not_match_false.EnumWith0DoesNotMatchFalse**](../../../../../../../components/schema/enum_with0_does_not_match_false.md) | float, int | float, int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7a9008d1c47..c33ae5f4ef3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../../../../../../../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int +[**enum_with1_does_not_match_true.EnumWith1DoesNotMatchTrue**](../../../../../../../components/schema/enum_with1_does_not_match_true.md) | float, int | float, int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e69c503f702..3b6d9990185 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../../../../../../../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] +[**enum_with_escaped_characters.EnumWithEscapedCharacters**](../../../../../../../components/schema/enum_with_escaped_characters.md) | typing.Literal["foo\nbar", "foo\rbar"] | typing.Literal["foo\nbar", "foo\rbar"] diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d179bfa7d11..4003cf8b89a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../../../../../../../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] +[**enum_with_false_does_not_match0.EnumWithFalseDoesNotMatch0**](../../../../../../../components/schema/enum_with_false_does_not_match0.md) | typing.Literal[False] | typing.Literal[False] diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 19ae6d6481f..9855ad78737 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../../../../../../../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] +[**enum_with_true_does_not_match1.EnumWithTrueDoesNotMatch1**](../../../../../../../components/schema/enum_with_true_does_not_match1.md) | typing.Literal[True] | typing.Literal[True] diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 07fc32526f4..5c74189a5d1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_enums_in_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**enums_in_properties.EnumsInProperties**](../../../../../../../../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) +[**enums_in_properties.EnumsInProperties**](../../../../../../../components/schema/enums_in_properties.md) | [enums_in_properties.EnumsInPropertiesDictInput](../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdictinput), [enums_in_properties.EnumsInPropertiesDict](../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) | [enums_in_properties.EnumsInPropertiesDict](../../../../../../../components/schema/enums_in_properties.md#enumsinpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 1190007bc70..02ce4295931 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusivemaximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**exclusivemaximum_validation.ExclusivemaximumValidation**](../../../../../../../../../components/schema/exclusivemaximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**exclusivemaximum_validation.ExclusivemaximumValidation**](../../../../../../../components/schema/exclusivemaximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 8897603c4b3..b579055eb9a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_exclusiveminimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**exclusiveminimum_validation.ExclusiveminimumValidation**](../../../../../../../../../components/schema/exclusiveminimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**exclusiveminimum_validation.ExclusiveminimumValidation**](../../../../../../../components/schema/exclusiveminimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7a1d63b97b9..d2d80969f3d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_float_division_inf_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**float_division_inf.FloatDivisionInf**](../../../../../../../../../components/schema/float_division_inf.md) | int | int +[**float_division_inf.FloatDivisionInf**](../../../../../../../components/schema/float_division_inf.md) | int | int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 3c35ba72174..35de71070ad 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_forbidden_property_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**forbidden_property.ForbiddenProperty**](../../../../../../../../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**forbidden_property.ForbiddenProperty**](../../../../../../../components/schema/forbidden_property.md) | [forbidden_property.ForbiddenPropertyDictInput](../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydictinput), [forbidden_property.ForbiddenPropertyDict](../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [forbidden_property.ForbiddenPropertyDict](../../../../../../../components/schema/forbidden_property.md#forbiddenpropertydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 211148bdefc..506fa5ff35e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**hostname_format.HostnameFormat**](../../../../../../../../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**hostname_format.HostnameFormat**](../../../../../../../components/schema/hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 36f3a2ada86..335333f4dc6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_email_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**idn_email_format.IdnEmailFormat**](../../../../../../../../../components/schema/idn_email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**idn_email_format.IdnEmailFormat**](../../../../../../../components/schema/idn_email_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 92530cc8dfd..1acff87c1ee 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_idn_hostname_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**idn_hostname_format.IdnHostnameFormat**](../../../../../../../../../components/schema/idn_hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**idn_hostname_format.IdnHostnameFormat**](../../../../../../../components/schema/idn_hostname_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 882b5aa88e8..ba90f5fd910 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_else_without_then_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**if_and_else_without_then.IfAndElseWithoutThen**](../../../../../../../../../components/schema/if_and_else_without_then.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**if_and_else_without_then.IfAndElseWithoutThen**](../../../../../../../components/schema/if_and_else_without_then.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 35b8d502bd0..fc91ef8a43a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_and_then_without_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**if_and_then_without_else.IfAndThenWithoutElse**](../../../../../../../../../components/schema/if_and_then_without_else.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**if_and_then_without_else.IfAndThenWithoutElse**](../../../../../../../components/schema/if_and_then_without_else.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 12ae641b111..1fcbc9b786a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_if_appears_at_the_end_when_serialized_keyword_processing_sequence_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**if_appears_at_the_end_when_serialized_keyword_processing_sequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence**](../../../../../../../../../components/schema/if_appears_at_the_end_when_serialized_keyword_processing_sequence.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**if_appears_at_the_end_when_serialized_keyword_processing_sequence.IfAppearsAtTheEndWhenSerializedKeywordProcessingSequence**](../../../../../../../components/schema/if_appears_at_the_end_when_serialized_keyword_processing_sequence.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 84acb95674c..fad10853af5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_else_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ignore_else_without_if.IgnoreElseWithoutIf**](../../../../../../../../../components/schema/ignore_else_without_if.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ignore_else_without_if.IgnoreElseWithoutIf**](../../../../../../../components/schema/ignore_else_without_if.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 79fcd589609..69f4b14b73a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_if_without_then_or_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ignore_if_without_then_or_else.IgnoreIfWithoutThenOrElse**](../../../../../../../../../components/schema/ignore_if_without_then_or_else.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ignore_if_without_then_or_else.IgnoreIfWithoutThenOrElse**](../../../../../../../components/schema/ignore_if_without_then_or_else.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d9adae52acc..fd2f743c262 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ignore_then_without_if_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ignore_then_without_if.IgnoreThenWithoutIf**](../../../../../../../../../components/schema/ignore_then_without_if.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ignore_then_without_if.IgnoreThenWithoutIf**](../../../../../../../components/schema/ignore_then_without_if.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 325a912ef43..792ecefa878 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../../../../../../../../components/schema/integer_type_matches_integers.md) | int | int +[**integer_type_matches_integers.IntegerTypeMatchesIntegers**](../../../../../../../components/schema/integer_type_matches_integers.md) | int | int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index db4dcab2640..0cb5e8d784a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv4_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ipv4_format.Ipv4Format**](../../../../../../../../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ipv4_format.Ipv4Format**](../../../../../../../components/schema/ipv4_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 173cf343726..6309b9ef444 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_ipv6_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ipv6_format.Ipv6Format**](../../../../../../../../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**ipv6_format.Ipv6Format**](../../../../../../../components/schema/ipv6_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7dd80cf6d56..063da90b553 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**iri_format.IriFormat**](../../../../../../../../../components/schema/iri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**iri_format.IriFormat**](../../../../../../../components/schema/iri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d1f8abef5d9..88d64d3d3c2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_iri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**iri_reference_format.IriReferenceFormat**](../../../../../../../../../components/schema/iri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**iri_reference_format.IriReferenceFormat**](../../../../../../../components/schema/iri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e3304e585a6..3011a414e1f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**items_contains.ItemsContains**](../../../../../../../../../components/schema/items_contains.md) | [items_contains.ItemsContainsTupleInput](../../../../../../../../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../../../../../../../../components/schema/items_contains.md#itemscontainstuple) | [items_contains.ItemsContainsTuple](../../../../../../../../../components/schema/items_contains.md#itemscontainstuple) +[**items_contains.ItemsContains**](../../../../../../../components/schema/items_contains.md) | [items_contains.ItemsContainsTupleInput](../../../../../../../components/schema/items_contains.md#itemscontainstupleinput), [items_contains.ItemsContainsTuple](../../../../../../../components/schema/items_contains.md#itemscontainstuple) | [items_contains.ItemsContainsTuple](../../../../../../../components/schema/items_contains.md#itemscontainstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 61a4c935e87..c3769df85b2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_does_not_look_in_applicators_valid_case_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCase**](../../../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTupleInput](../../../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetupleinput), [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) +[**items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCase**](../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTupleInput](../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetupleinput), [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) | [items_does_not_look_in_applicators_valid_case.ItemsDoesNotLookInApplicatorsValidCaseTuple](../../../../../../../components/schema/items_does_not_look_in_applicators_valid_case.md#itemsdoesnotlookinapplicatorsvalidcasetuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c796660e814..dc4bb5c4fb2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_items_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**items_with_null_instance_elements.ItemsWithNullInstanceElements**](../../../../../../../../../components/schema/items_with_null_instance_elements.md) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTupleInput](../../../../../../../../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstupleinput), [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../../../../../../../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../../../../../../../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) +[**items_with_null_instance_elements.ItemsWithNullInstanceElements**](../../../../../../../components/schema/items_with_null_instance_elements.md) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTupleInput](../../../../../../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstupleinput), [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../../../../../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) | [items_with_null_instance_elements.ItemsWithNullInstanceElementsTuple](../../../../../../../components/schema/items_with_null_instance_elements.md#itemswithnullinstanceelementstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index be59413dac1..931e9f2492e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**json_pointer_format.JsonPointerFormat**](../../../../../../../../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**json_pointer_format.JsonPointerFormat**](../../../../../../../components/schema/json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 52b2c2dbc98..824af8403b0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxcontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored**](../../../../../../../../../components/schema/maxcontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxcontains_without_contains_is_ignored.MaxcontainsWithoutContainsIsIgnored**](../../../../../../../components/schema/maxcontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b7ea909f6c9..41cf8410efe 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maximum_validation.MaximumValidation**](../../../../../../../../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maximum_validation.MaximumValidation**](../../../../../../../components/schema/maximum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 4c11490c53a..ae379cdb520 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../../../../../../../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maximum_validation_with_unsigned_integer.MaximumValidationWithUnsignedInteger**](../../../../../../../components/schema/maximum_validation_with_unsigned_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 08f4922f36d..b0d4ed03ef1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxitems_validation.MaxitemsValidation**](../../../../../../../../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxitems_validation.MaxitemsValidation**](../../../../../../../components/schema/maxitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f49d59aace5..97d88c0751f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxlength_validation.MaxlengthValidation**](../../../../../../../../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxlength_validation.MaxlengthValidation**](../../../../../../../components/schema/maxlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b3836b329d3..2b782d611af 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../../../../../../../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxproperties0_means_the_object_is_empty.Maxproperties0MeansTheObjectIsEmpty**](../../../../../../../components/schema/maxproperties0_means_the_object_is_empty.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e92e08d6f0d..9e6efd826c1 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**maxproperties_validation.MaxpropertiesValidation**](../../../../../../../../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**maxproperties_validation.MaxpropertiesValidation**](../../../../../../../components/schema/maxproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index cd98f073b34..cc5fecd9fa4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_mincontains_without_contains_is_ignored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored**](../../../../../../../../../components/schema/mincontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**mincontains_without_contains_is_ignored.MincontainsWithoutContainsIsIgnored**](../../../../../../../components/schema/mincontains_without_contains_is_ignored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 47c2a5270dc..1d8afa07caf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minimum_validation.MinimumValidation**](../../../../../../../../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minimum_validation.MinimumValidation**](../../../../../../../components/schema/minimum_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index db78f015b3d..5c9e480067d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../../../../../../../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minimum_validation_with_signed_integer.MinimumValidationWithSignedInteger**](../../../../../../../components/schema/minimum_validation_with_signed_integer.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 34b3c0a4155..e704c3bd59e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minitems_validation.MinitemsValidation**](../../../../../../../../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minitems_validation.MinitemsValidation**](../../../../../../../components/schema/minitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 1d501e5f282..a9b7ba877b6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minlength_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minlength_validation.MinlengthValidation**](../../../../../../../../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minlength_validation.MinlengthValidation**](../../../../../../../components/schema/minlength_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 17ea7e48781..3071db209c8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_minproperties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**minproperties_validation.MinpropertiesValidation**](../../../../../../../../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**minproperties_validation.MinpropertiesValidation**](../../../../../../../components/schema/minproperties_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2c2612507a5..9702bed8360 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_dependents_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**multiple_dependents_required.MultipleDependentsRequired**](../../../../../../../../../components/schema/multiple_dependents_required.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**multiple_dependents_required.MultipleDependentsRequired**](../../../../../../../components/schema/multiple_dependents_required.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 876c5a59416..613b81db129 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_simultaneous_patternproperties_are_validated_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated**](../../../../../../../../../components/schema/multiple_simultaneous_patternproperties_are_validated.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**multiple_simultaneous_patternproperties_are_validated.MultipleSimultaneousPatternpropertiesAreValidated**](../../../../../../../components/schema/multiple_simultaneous_patternproperties_are_validated.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 66b14e7135d..096c7775d39 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_multiple_types_can_be_specified_in_an_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**multiple_types_can_be_specified_in_an_array.MultipleTypesCanBeSpecifiedInAnArray**](../../../../../../../../../components/schema/multiple_types_can_be_specified_in_an_array.md) | int, str | int, str +[**multiple_types_can_be_specified_in_an_array.MultipleTypesCanBeSpecifiedInAnArray**](../../../../../../../components/schema/multiple_types_can_be_specified_in_an_array.md) | int, str | int, str diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 33266948502..a32ab420895 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../../../../../../../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**nested_allof_to_check_validation_semantics.NestedAllofToCheckValidationSemantics**](../../../../../../../components/schema/nested_allof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 77862802c42..2d4aec6b010 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../../../../../../../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**nested_anyof_to_check_validation_semantics.NestedAnyofToCheckValidationSemantics**](../../../../../../../components/schema/nested_anyof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 68733a68873..0d870bdc405 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_items.NestedItems**](../../../../../../../../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../../../../../../../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../../../../../../../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../../../../../../../../components/schema/nested_items.md#nesteditemstuple) +[**nested_items.NestedItems**](../../../../../../../components/schema/nested_items.md) | [nested_items.NestedItemsTupleInput](../../../../../../../components/schema/nested_items.md#nesteditemstupleinput), [nested_items.NestedItemsTuple](../../../../../../../components/schema/nested_items.md#nesteditemstuple) | [nested_items.NestedItemsTuple](../../../../../../../components/schema/nested_items.md#nesteditemstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ec58a5a35e1..9d09a910d8f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../../../../../../../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**nested_oneof_to_check_validation_semantics.NestedOneofToCheckValidationSemantics**](../../../../../../../components/schema/nested_oneof_to_check_validation_semantics.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 257b6adb3b3..f7c8d18bfc6 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_ascii_pattern_with_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties**](../../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) +[**non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalproperties**](../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDictInput](../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdictinput), [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) | [non_ascii_pattern_with_additionalproperties.NonAsciiPatternWithAdditionalpropertiesDict](../../../../../../../components/schema/non_ascii_pattern_with_additionalproperties.md#nonasciipatternwithadditionalpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 33be2413d45..768fae17712 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_non_interference_across_combined_schemas_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**non_interference_across_combined_schemas.NonInterferenceAcrossCombinedSchemas**](../../../../../../../../../components/schema/non_interference_across_combined_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**non_interference_across_combined_schemas.NonInterferenceAcrossCombinedSchemas**](../../../../../../../components/schema/non_interference_across_combined_schemas.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 69338e29aad..4df28782209 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**not_more_complex_schema.NotMoreComplexSchema**](../../../../../../../../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**not_more_complex_schema.NotMoreComplexSchema**](../../../../../../../components/schema/not_more_complex_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f7465cf726d..bbf298dabc3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_multiple_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**not_multiple_types.NotMultipleTypes**](../../../../../../../../../components/schema/not_multiple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**not_multiple_types.NotMultipleTypes**](../../../../../../../components/schema/not_multiple_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a722c647a23..ba78ba3a0ce 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_not_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**_not._Not**](../../../../../../../../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**_not._Not**](../../../../../../../components/schema/_not.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 37f86d5b080..6ad53749272 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**nul_characters_in_strings.NulCharactersInStrings**](../../../../../../../../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] +[**nul_characters_in_strings.NulCharactersInStrings**](../../../../../../../components/schema/nul_characters_in_strings.md) | typing.Literal["hello\x00there"] | typing.Literal["hello\x00there"] diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 587eef1ccea..81c50edc939 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../../../../../../../../components/schema/null_type_matches_only_the_null_object.md) | None | None +[**null_type_matches_only_the_null_object.NullTypeMatchesOnlyTheNullObject**](../../../../../../../components/schema/null_type_matches_only_the_null_object.md) | None | None diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 41eb7d18210..606772f63b4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../../../../../../../../components/schema/number_type_matches_numbers.md) | float, int | float, int +[**number_type_matches_numbers.NumberTypeMatchesNumbers**](../../../../../../../components/schema/number_type_matches_numbers.md) | float, int | float, int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 17e04926fd7..1d16c9cd535 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_properties_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**object_properties_validation.ObjectPropertiesValidation**](../../../../../../../../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**object_properties_validation.ObjectPropertiesValidation**](../../../../../../../components/schema/object_properties_validation.md) | [object_properties_validation.ObjectPropertiesValidationDictInput](../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdictinput), [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [object_properties_validation.ObjectPropertiesValidationDict](../../../../../../../components/schema/object_properties_validation.md#objectpropertiesvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9860853ee06..6f6e5fc77a5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../../../../../../../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict +[**object_type_matches_objects.ObjectTypeMatchesObjects**](../../../../../../../components/schema/object_type_matches_objects.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fa66e612438..5858bfc003a 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_complex_types.OneofComplexTypes**](../../../../../../../../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**oneof_complex_types.OneofComplexTypes**](../../../../../../../components/schema/oneof_complex_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b850e0b6a98..44f80216af5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof.Oneof**](../../../../../../../../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**oneof.Oneof**](../../../../../../../components/schema/oneof.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a88ebd44d40..2084a568920 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_with_base_schema.OneofWithBaseSchema**](../../../../../../../../../components/schema/oneof_with_base_schema.md) | str | str +[**oneof_with_base_schema.OneofWithBaseSchema**](../../../../../../../components/schema/oneof_with_base_schema.md) | str | str diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 3a16d9feed5..023c37b1eca 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_with_empty_schema.OneofWithEmptySchema**](../../../../../../../../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**oneof_with_empty_schema.OneofWithEmptySchema**](../../../../../../../components/schema/oneof_with_empty_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fe9f75a006e..ad461179a5b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_oneof_with_required_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**oneof_with_required.OneofWithRequired**](../../../../../../../../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict +[**oneof_with_required.OneofWithRequired**](../../../../../../../components/schema/oneof_with_required.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c3d02b1e012..45a6c609a06 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**pattern_is_not_anchored.PatternIsNotAnchored**](../../../../../../../../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**pattern_is_not_anchored.PatternIsNotAnchored**](../../../../../../../components/schema/pattern_is_not_anchored.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 02c353e0f11..823a39e922c 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_pattern_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**pattern_validation.PatternValidation**](../../../../../../../../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**pattern_validation.PatternValidation**](../../../../../../../components/schema/pattern_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 65f799a7307..b2d9e01210d 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_validates_properties_matching_a_regex_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex**](../../../../../../../../../components/schema/patternproperties_validates_properties_matching_a_regex.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**patternproperties_validates_properties_matching_a_regex.PatternpropertiesValidatesPropertiesMatchingARegex**](../../../../../../../components/schema/patternproperties_validates_properties_matching_a_regex.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 7d0c12fc9d6..1a4b5c10927 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_patternproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties**](../../../../../../../../../components/schema/patternproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**patternproperties_with_null_valued_instance_properties.PatternpropertiesWithNullValuedInstanceProperties**](../../../../../../../components/schema/patternproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f286445c12d..6d74afd8911 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_validation_adjusts_the_starting_index_for_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItems**](../../../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTupleInput](../../../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstupleinput), [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) +[**prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItems**](../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTupleInput](../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstupleinput), [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) | [prefixitems_validation_adjusts_the_starting_index_for_items.PrefixitemsValidationAdjustsTheStartingIndexForItemsTuple](../../../../../../../components/schema/prefixitems_validation_adjusts_the_starting_index_for_items.md#prefixitemsvalidationadjuststhestartingindexforitemstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b8b456402ed..159274cdbb2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_prefixitems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements**](../../../../../../../../../components/schema/prefixitems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTupleInput](../../../../../../../../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstupleinput), [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../../../../../../../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../../../../../../../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO +[**prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElements**](../../../../../../../components/schema/prefixitems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTupleInput](../../../../../../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstupleinput), [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../../../../../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [prefixitems_with_null_instance_elements.PrefixitemsWithNullInstanceElementsTuple](../../../../../../../components/schema/prefixitems_with_null_instance_elements.md#prefixitemswithnullinstanceelementstuple), bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 989f944290e..7c59f958ac4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_patternproperties_additionalproperties_interaction_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction**](../../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) +[**properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteraction**](../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDictInput](../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondictinput), [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) | [properties_patternproperties_additionalproperties_interaction.PropertiesPatternpropertiesAdditionalpropertiesInteractionDict](../../../../../../../components/schema/properties_patternproperties_additionalproperties_interaction.md#propertiespatternpropertiesadditionalpropertiesinteractiondict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0720a708a67..150755b89b7 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNames**](../../../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md) | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDictInput](../../../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdictinput), [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNames**](../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md) | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDictInput](../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdictinput), [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_whose_names_are_javascript_object_property_names.PropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../components/schema/properties_whose_names_are_javascript_object_property_names.md#propertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9f9510f34ef..c55707308b3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../../../../../../../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**properties_with_escaped_characters.PropertiesWithEscapedCharacters**](../../../../../../../components/schema/properties_with_escaped_characters.md) | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDictInput](../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdictinput), [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_escaped_characters.PropertiesWithEscapedCharactersDict](../../../../../../../components/schema/properties_with_escaped_characters.md#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f4e12e654e5..a591a7d8449 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_properties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstanceProperties**](../../../../../../../../../components/schema/properties_with_null_valued_instance_properties.md) | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDictInput](../../../../../../../../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdictinput), [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../../../../../../../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../../../../../../../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstanceProperties**](../../../../../../../components/schema/properties_with_null_valued_instance_properties.md) | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDictInput](../../../../../../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdictinput), [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../../../../../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [properties_with_null_valued_instance_properties.PropertiesWithNullValuedInstancePropertiesDict](../../../../../../../components/schema/properties_with_null_valued_instance_properties.md#propertieswithnullvaluedinstancepropertiesdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 19fb1fa10c2..ef67629144e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReference**](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md) | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDictInput](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedictinput), [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [property_named_ref_that_is_not_a_reference.PropertyNamedRefThatIsNotAReferenceDict](../../../../../../../components/schema/property_named_ref_that_is_not_a_reference.md#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a5cf91ee1d6..f02316dc3fd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_propertynames_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**propertynames_validation.PropertynamesValidation**](../../../../../../../../../components/schema/propertynames_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**propertynames_validation.PropertynamesValidation**](../../../../../../../components/schema/propertynames_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index fe8e0f00245..39a6e8be2c8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regex_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**regex_format.RegexFormat**](../../../../../../../../../components/schema/regex_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**regex_format.RegexFormat**](../../../../../../../components/schema/regex_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 68bc262567f..61978744127 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_regexes_are_not_anchored_by_default_and_are_case_sensitive_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive**](../../../../../../../../../components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**regexes_are_not_anchored_by_default_and_are_case_sensitive.RegexesAreNotAnchoredByDefaultAndAreCaseSensitive**](../../../../../../../components/schema/regexes_are_not_anchored_by_default_and_are_case_sensitive.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 981cbd6c8f1..77fda004ab9 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_relative_json_pointer_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**relative_json_pointer_format.RelativeJsonPointerFormat**](../../../../../../../../../components/schema/relative_json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**relative_json_pointer_format.RelativeJsonPointerFormat**](../../../../../../../components/schema/relative_json_pointer_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 59496811a9c..f3d0d05391e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_default_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_default_validation.RequiredDefaultValidation**](../../../../../../../../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_default_validation.RequiredDefaultValidation**](../../../../../../../components/schema/required_default_validation.md) | [required_default_validation.RequiredDefaultValidationDictInput](../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdictinput), [required_default_validation.RequiredDefaultValidationDict](../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_default_validation.RequiredDefaultValidationDict](../../../../../../../components/schema/required_default_validation.md#requireddefaultvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 8ca38ee3138..ec4178c16fc 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_properties_whose_names_are_javascript_object_property_names_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames**](../../../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md) | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDictInput](../../../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdictinput), [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNames**](../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md) | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDictInput](../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdictinput), [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_properties_whose_names_are_javascript_object_property_names.RequiredPropertiesWhoseNamesAreJavascriptObjectPropertyNamesDict](../../../../../../../components/schema/required_properties_whose_names_are_javascript_object_property_names.md#requiredpropertieswhosenamesarejavascriptobjectpropertynamesdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 3d73a2e5d05..ac71e0dfa80 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_validation.RequiredValidation**](../../../../../../../../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../../../../../../../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_validation.RequiredValidation**](../../../../../../../components/schema/required_validation.md) | [required_validation.RequiredValidationDictInput](../../../../../../../components/schema/required_validation.md#requiredvalidationdictinput), [required_validation.RequiredValidationDict](../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_validation.RequiredValidationDict](../../../../../../../components/schema/required_validation.md#requiredvalidationdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 67ca5972e60..b9224fb1d06 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_with_empty_array.RequiredWithEmptyArray**](../../../../../../../../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_with_empty_array.RequiredWithEmptyArray**](../../../../../../../components/schema/required_with_empty_array.md) | [required_with_empty_array.RequiredWithEmptyArrayDictInput](../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydictinput), [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_empty_array.RequiredWithEmptyArrayDict](../../../../../../../components/schema/required_with_empty_array.md#requiredwithemptyarraydict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index bec5953752c..a9cbdcbdf56 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../../../../../../../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO +[**required_with_escaped_characters.RequiredWithEscapedCharacters**](../../../../../../../components/schema/required_with_escaped_characters.md) | [required_with_escaped_characters.RequiredWithEscapedCharactersDictInput](../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdictinput), [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [required_with_escaped_characters.RequiredWithEscapedCharactersDict](../../../../../../../components/schema/required_with_escaped_characters.md#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 55e640fc7bf..5163b27843e 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**simple_enum_validation.SimpleEnumValidation**](../../../../../../../../../components/schema/simple_enum_validation.md) | float, int | float, int +[**simple_enum_validation.SimpleEnumValidation**](../../../../../../../components/schema/simple_enum_validation.md) | float, int | float, int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d8b0cc742fb..2e410f716a4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_single_dependency_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**single_dependency.SingleDependency**](../../../../../../../../../components/schema/single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**single_dependency.SingleDependency**](../../../../../../../components/schema/single_dependency.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2afc5882695..e941b42a489 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_small_multiple_of_large_integer_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**small_multiple_of_large_integer.SmallMultipleOfLargeInteger**](../../../../../../../../../components/schema/small_multiple_of_large_integer.md) | int | int +[**small_multiple_of_large_integer.SmallMultipleOfLargeInteger**](../../../../../../../components/schema/small_multiple_of_large_integer.md) | int | int diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 4907d8113f7..5557e2bcba2 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**string_type_matches_strings.StringTypeMatchesStrings**](../../../../../../../../../components/schema/string_type_matches_strings.md) | str | str +[**string_type_matches_strings.StringTypeMatchesStrings**](../../../../../../../components/schema/string_type_matches_strings.md) | str | str diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index d7d3ba37904..c0964ed8da4 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_time_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**time_format.TimeFormat**](../../../../../../../../../components/schema/time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**time_format.TimeFormat**](../../../../../../../components/schema/time_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2ef37a4b0c3..49c3f52d415 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_object_or_null_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**type_array_object_or_null.TypeArrayObjectOrNull**](../../../../../../../../../components/schema/type_array_object_or_null.md) | list, tuple, dict, schemas.immutabledict, None | tuple, schemas.immutabledict, None +[**type_array_object_or_null.TypeArrayObjectOrNull**](../../../../../../../components/schema/type_array_object_or_null.md) | list, tuple, dict, schemas.immutabledict, None | tuple, schemas.immutabledict, None diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index b44f83987ca..8bec189d6d3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_array_or_object_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**type_array_or_object.TypeArrayOrObject**](../../../../../../../../../components/schema/type_array_or_object.md) | list, tuple, dict, schemas.immutabledict | tuple, schemas.immutabledict +[**type_array_or_object.TypeArrayOrObject**](../../../../../../../components/schema/type_array_or_object.md) | list, tuple, dict, schemas.immutabledict | tuple, schemas.immutabledict diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 6710841a302..0c71b49ccd3 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_type_as_array_with_one_item_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**type_as_array_with_one_item.TypeAsArrayWithOneItem**](../../../../../../../../../components/schema/type_as_array_with_one_item.md) | str | str +[**type_as_array_with_one_item.TypeAsArrayWithOneItem**](../../../../../../../components/schema/type_as_array_with_one_item.md) | str | str diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 9cdf93f9564..d52aae61bbf 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_as_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluateditems_as_schema.UnevaluateditemsAsSchema**](../../../../../../../../../components/schema/unevaluateditems_as_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**unevaluateditems_as_schema.UnevaluateditemsAsSchema**](../../../../../../../components/schema/unevaluateditems_as_schema.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 3b180b892bb..c9919b9dbb0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_depends_on_multiple_nested_contains_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains**](../../../../../../../../../components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**unevaluateditems_depends_on_multiple_nested_contains.UnevaluateditemsDependsOnMultipleNestedContains**](../../../../../../../components/schema/unevaluateditems_depends_on_multiple_nested_contains.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 27179a1641b..fedcd5e1e14 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluateditems_with_items.UnevaluateditemsWithItems**](../../../../../../../../../components/schema/unevaluateditems_with_items.md) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) +[**unevaluateditems_with_items.UnevaluateditemsWithItems**](../../../../../../../components/schema/unevaluateditems_with_items.md) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTupleInput](../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstupleinput), [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) | [unevaluateditems_with_items.UnevaluateditemsWithItemsTuple](../../../../../../../components/schema/unevaluateditems_with_items.md#unevaluateditemswithitemstuple) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index ff3b8478f47..280c9a3f821 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluateditems_with_null_instance_elements_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements**](../../../../../../../../../components/schema/unevaluateditems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**unevaluateditems_with_null_instance_elements.UnevaluateditemsWithNullInstanceElements**](../../../../../../../components/schema/unevaluateditems_with_null_instance_elements.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 537aed80a3f..2c04218f6b8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_not_affected_by_propertynames_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames**](../../../../../../../../../components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**unevaluatedproperties_not_affected_by_propertynames.UnevaluatedpropertiesNotAffectedByPropertynames**](../../../../../../../components/schema/unevaluatedproperties_not_affected_by_propertynames.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 240e156c718..38ec30e5765 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_schema_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluatedproperties_schema.UnevaluatedpropertiesSchema**](../../../../../../../../../components/schema/unevaluatedproperties_schema.md) | dict, schemas.immutabledict | schemas.immutabledict +[**unevaluatedproperties_schema.UnevaluatedpropertiesSchema**](../../../../../../../components/schema/unevaluatedproperties_schema.md) | dict, schemas.immutabledict | schemas.immutabledict diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 96f17544ffd..8fa61cf23eb 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_adjacent_additionalproperties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties**](../../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) +[**unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalproperties**](../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDictInput](../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdictinput), [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) | [unevaluatedproperties_with_adjacent_additionalproperties.UnevaluatedpropertiesWithAdjacentAdditionalpropertiesDict](../../../../../../../components/schema/unevaluatedproperties_with_adjacent_additionalproperties.md#unevaluatedpropertieswithadjacentadditionalpropertiesdict) diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 2bac3b40c94..f09cc3561d8 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_unevaluatedproperties_with_null_valued_instance_properties_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties**](../../../../../../../../../components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**unevaluatedproperties_with_null_valued_instance_properties.UnevaluatedpropertiesWithNullValuedInstanceProperties**](../../../../../../../components/schema/unevaluatedproperties_with_null_valued_instance_properties.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index c882342d4d2..5bb6533383f 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../../../../../../../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uniqueitems_false_validation.UniqueitemsFalseValidation**](../../../../../../../components/schema/uniqueitems_false_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index e38e0c07fb9..604a192c8b0 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_false_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItems**](../../../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTupleInput](../../../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstupleinput), [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO +[**uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItems**](../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTupleInput](../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstupleinput), [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_false_with_an_array_of_items.UniqueitemsFalseWithAnArrayOfItemsTuple](../../../../../../../components/schema/uniqueitems_false_with_an_array_of_items.md#uniqueitemsfalsewithanarrayofitemstuple), bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 278790a514c..724f095f458 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uniqueitems_validation.UniqueitemsValidation**](../../../../../../../../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uniqueitems_validation.UniqueitemsValidation**](../../../../../../../components/schema/uniqueitems_validation.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index f566e8ead0a..d99c993d4b5 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uniqueitems_with_an_array_of_items_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItems**](../../../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTupleInput](../../../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstupleinput), [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO +[**uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItems**](../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTupleInput](../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstupleinput), [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, [uniqueitems_with_an_array_of_items.UniqueitemsWithAnArrayOfItemsTuple](../../../../../../../components/schema/uniqueitems_with_an_array_of_items.md#uniqueitemswithanarrayofitemstuple), bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 218fecade32..7d7776c3fea 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uri_format.UriFormat**](../../../../../../../../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uri_format.UriFormat**](../../../../../../../components/schema/uri_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 0df901f6aa3..bc3e1eb283b 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_reference_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uri_reference_format.UriReferenceFormat**](../../../../../../../../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uri_reference_format.UriReferenceFormat**](../../../../../../../components/schema/uri_reference_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index a050863e50d..d6647813edd 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uri_template_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uri_template_format.UriTemplateFormat**](../../../../../../../../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uri_template_format.UriTemplateFormat**](../../../../../../../components/schema/uri_template_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 06e0db9ff00..b3860830d93 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_uuid_format_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**uuid_format.UuidFormat**](../../../../../../../../../components/schema/uuid_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**uuid_format.UuidFormat**](../../../../../../../components/schema/uuid_format.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md index 811beb07eda..d150495b656 100644 --- a/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/3_1_0_unit_test/python/docs/paths/response_body_post_validate_against_correct_branch_then_vs_else_response_body_for_content_types/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**validate_against_correct_branch_then_vs_else.ValidateAgainstCorrectBranchThenVsElse**](../../../../../../../../../components/schema/validate_against_correct_branch_then_vs_else.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**validate_against_correct_branch_then_vs_else.ValidateAgainstCorrectBranchThenVsElse**](../../../../../../../components/schema/validate_against_correct_branch_then_vs_else.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md index dafacaace26..ef70a11f053 100644 --- a/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md +++ b/samples/client/openapi_features/security/python/docs/paths/path_with_security_from_root/get.md @@ -59,7 +59,7 @@ component security scheme class. Select the security index by setting ApiConfiguration.security_index_info or by passing in security_index into the endpoint method. See how to do this in the code sample. -- these securities are the general api securities +- these securities are specific to this to this endpoint | Security Index | Security Scheme to Scope Names | | -------------- | ------------------------------ | @@ -129,10 +129,11 @@ security_scheme_info: api_configuration.SecuritySchemeInfo = { } security_index_info: api_configuration.SecurityIndexInfo = { - "security": 0, - # only set one "security": 1, - # only set one "security": 2, - # only set one "security": 3, + "security": 0, # default value + "paths//pathWithSecurityFromRoot/get/security": 0, + # only set one "paths//pathWithSecurityFromRoot/get/security": 1, + # only set one "paths//pathWithSecurityFromRoot/get/security": 2, + # only set one "paths//pathWithSecurityFromRoot/get/security": 3, } used_configuration = api_configuration.ApiConfiguration( security_scheme_info=security_scheme_info, diff --git a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py index 677e4d34b58..d6aba20ac5a 100644 --- a/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py +++ b/samples/client/openapi_features/security/python/src/this_package/paths/path_with_security_from_root/get/operation.py @@ -5,16 +5,16 @@ """ from this_package import api_client, security_schemes +from this_package.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] + +from .. import path +from .responses import response_200 from this_package.security import ( security_requirement_object_0, security_requirement_object_1, security_requirement_object_2, security_requirement_object_3, ) -from this_package.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] - -from .. import path -from .responses import response_200 _security: typing.List[security_schemes.SecurityRequirementObject] = [ security_requirement_object_0.security_requirement_object, diff --git a/samples/client/petstore/java/docs/RootServerInfo.md b/samples/client/petstore/java/docs/RootServerInfo.md index 8df9c7bf6ee..835dd2fd558 100644 --- a/samples/client/petstore/java/docs/RootServerInfo.md +++ b/samples/client/petstore/java/docs/RootServerInfo.md @@ -5,12 +5,14 @@ public class RootServerInfo A class that provides a server, and any needed server info classes - a class that is a ServerProvider +- a builder for the ServerProvider - an enum class that stores server index values ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [RootServerInfo.RootServerInfo1](#rootserverinfo1)
class that stores a server index | +| static class | [RootServerInfo.RootServerInfoBuilder](#rootserverinfobuilder)
class that stores a server index | | enum | [RootServerInfo.ServerIndex](#serverindex)
class that stores a server index | ## RootServerInfo1 @@ -21,7 +23,6 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| RootServerInfo1()
Creates an instance using default server variable values | | RootServerInfo1(@Nullable [Server0](servers/Server0.md) server0,@Nullable [Server1](servers/Server1.md) server1,@Nullable [Server2](servers/Server2.md) server2)
Creates an instance using passed in servers | ### Field Summary @@ -36,6 +37,23 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | +## RootServerInfoBuilder + +a builder for [RootServerInfo1](#rootserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| RootServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [RootServerInfoBuilder](#rootserverinfobuilder) | server0([Server0](servers/Server0.md) server0)
sets the server | +| [RootServerInfoBuilder](#rootserverinfobuilder) | server1([Server1](servers/Server1.md) server1)
sets the server | +| [RootServerInfoBuilder](#rootserverinfobuilder) | server2([Server2](servers/Server2.md) server2)
sets the server | +| [RootServerInfo1](#rootserverinfo1) | build() | + ## ServerIndex enum ServerIndex
diff --git a/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md b/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md index eda54180919..5453288c047 100644 --- a/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md +++ b/samples/client/petstore/java/docs/components/headers/refcontentschemaheader/content/applicationjson/RefContentSchemaHeaderSchema.md @@ -1,6 +1,6 @@ # RefContentSchemaHeaderSchema public class RefContentSchemaHeaderSchema
-extends [StringWithValidation1](../../../../../../components/schemas/StringWithValidation.md#stringwithvalidation) +extends [StringWithValidation1](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## RefContentSchemaHeaderSchema1 public static class RefContentSchemaHeaderSchema1
-extends [StringWithValidation.StringWithValidation1](../../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1) +extends [StringWithValidation.StringWithValidation1](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md index 3853dcd998e..174f9e2adf9 100644 --- a/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/parameters/componentrefschemastringwithvalidation/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [StringWithValidation1](../../../../../../components/schemas/StringWithValidation.md#stringwithvalidation) +extends [StringWithValidation1](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [StringWithValidation.StringWithValidation1](../../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1) +extends [StringWithValidation.StringWithValidation1](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md index 674274bf5dd..920c9d5f853 100644 --- a/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.md @@ -61,7 +61,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ApplicationjsonSchema.ApplicationjsonSchemaList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.md b/samples/client/petstore/java/docs/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.md index 73b5e2f3e5d..3ea812de81f 100644 --- a/samples/client/petstore/java/docs/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.md +++ b/samples/client/petstore/java/docs/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeadersWithNoBodyHeadersSchema.HeadersWithNoBodyHeadersSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md index ab5f7470e6b..511efbc1c6e 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.md @@ -61,7 +61,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ApplicationjsonSchema.ApplicationjsonSchemaList validatedPayload = @@ -122,7 +122,7 @@ ApplicationjsonSchema.ApplicationjsonSchemaList validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(List.class) | -| Class | items = [RefPet.RefPet1.class](../../../../../../components/schemas/RefPet.md#refpet1) | +| Class | items = [RefPet.RefPet1.class](../../../../../components/schemas/RefPet.md#refpet1) | ### Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md index 7184b956ac7..cbdc472e51a 100644 --- a/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.md @@ -61,7 +61,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ApplicationxmlSchema.ApplicationxmlSchemaList validatedPayload = @@ -122,7 +122,7 @@ ApplicationxmlSchema.ApplicationxmlSchemaList validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(List.class) | -| Class | items = [Pet.Pet1.class](../../../../../../components/schemas/Pet.md#pet1) | +| Class | items = [Pet.Pet1.class](../../../../../components/schemas/Pet.md#pet1) | ### Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md index 0f8abf3a38e..7e9c6c4640b 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation SuccessInlineContentAndHeaderHeadersSchema.SuccessInlineContentAndHeaderHeadersSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md index 4c7e3a507d7..63e94647f63 100644 --- a/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.md @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md index f2e8ec4b9da..c501f3d176b 100644 --- a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation SuccessWithJsonApiResponseHeadersSchema.SuccessWithJsonApiResponseHeadersSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md index 5220d8f5ade..a340ff691f7 100644 --- a/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/components/responses/successwithjsonapiresponse/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) +extends [ApiResponseSchema1](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) +extends [ApiResponseSchema.ApiResponseSchema1](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md index 91a99c52d42..088813f52ac 100644 --- a/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md +++ b/samples/client/petstore/java/docs/components/schemas/AbstractStepMessage.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AbstractStepMessage.AbstractStepMessageMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md index b4b2dafe88b..d9c946f776b 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesClass.md @@ -131,7 +131,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.AdditionalPropertiesClassMap validatedPayload = @@ -298,7 +298,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.MapWithUndeclaredPropertiesStringMap validatedPayload = @@ -436,7 +436,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.EmptyMapMap validatedPayload = @@ -657,7 +657,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.MapWithUndeclaredPropertiesAnytype3Map validatedPayload = @@ -1083,7 +1083,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.MapOfMapPropertyMap validatedPayload = @@ -1190,7 +1190,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.AdditionalPropertiesMap validatedPayload = @@ -1325,7 +1325,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesClass.MapPropertyMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md index 797b1a498a7..b4c309be828 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesSchema.md @@ -143,7 +143,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesSchema.Schema2Map validatedPayload = @@ -396,7 +396,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesSchema.Schema1Map validatedPayload = @@ -649,7 +649,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesSchema.Schema0Map validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md index 5e8a6fb585e..436c7eed867 100644 --- a/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/AdditionalPropertiesWithArrayOfEnums.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnumsMap validatedPayload = @@ -173,7 +173,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Address.md b/samples/client/petstore/java/docs/components/schemas/Address.md index a87a0864971..a895ba52bc9 100644 --- a/samples/client/petstore/java/docs/components/schemas/Address.md +++ b/samples/client/petstore/java/docs/components/schemas/Address.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Address.AddressMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Animal.md b/samples/client/petstore/java/docs/components/schemas/Animal.md index 3679edd50cf..0bbb9017d03 100644 --- a/samples/client/petstore/java/docs/components/schemas/Animal.md +++ b/samples/client/petstore/java/docs/components/schemas/Animal.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Animal.AnimalMap validatedPayload = @@ -198,7 +198,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Animal.Color.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md index 50a6a3c74c6..c00c74501b6 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md +++ b/samples/client/petstore/java/docs/components/schemas/AnimalFarm.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation AnimalFarm.AnimalFarmList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md index 8258aa24a10..d5040963ffc 100644 --- a/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md +++ b/samples/client/petstore/java/docs/components/schemas/AnyTypeAndFormat.md @@ -134,7 +134,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AnyTypeAndFormat.AnyTypeAndFormatMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md index cbcef3434d2..35f3e7a4170 100644 --- a/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/ApiResponseSchema.md @@ -71,7 +71,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApiResponseSchema.ApiResponseMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Apple.md b/samples/client/petstore/java/docs/components/schemas/Apple.md index 35d4eb8cc2c..b889d1662c4 100644 --- a/samples/client/petstore/java/docs/components/schemas/Apple.md +++ b/samples/client/petstore/java/docs/components/schemas/Apple.md @@ -87,7 +87,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = Apple.Apple1.validate( @@ -225,7 +225,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Apple.Origin.validate( @@ -292,7 +292,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Apple.Cultivar.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/AppleReq.md b/samples/client/petstore/java/docs/components/schemas/AppleReq.md index 4d83d9ae27f..60f0b362b88 100644 --- a/samples/client/petstore/java/docs/components/schemas/AppleReq.md +++ b/samples/client/petstore/java/docs/components/schemas/AppleReq.md @@ -76,7 +76,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation AppleReq.AppleReqMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md index 998c396a3e8..2b384938c45 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayHoldingAnyType.md @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayHoldingAnyType.ArrayHoldingAnyTypeList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md index 0c15ad9d30a..7b606131c2c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfArrayOfNumberOnly.md @@ -77,7 +77,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ArrayOfArrayOfNumberOnly.ArrayOfArrayOfNumberOnlyMap validatedPayload = @@ -192,7 +192,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayOfArrayOfNumberOnly.ArrayArrayNumberList validatedPayload = @@ -295,7 +295,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayOfArrayOfNumberOnly.ItemsList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md index 1fad22f6620..7b7b0ed8063 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfEnums.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayOfEnums.ArrayOfEnumsList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md index 0824934bb9f..3c3d350090e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayOfNumberOnly.md @@ -72,7 +72,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ArrayOfNumberOnly.ArrayOfNumberOnlyMap validatedPayload = @@ -185,7 +185,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayOfNumberOnly.ArrayNumberList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md index 2285aff4a06..8e9f7a2b008 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayTest.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayTest.md @@ -95,7 +95,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ArrayTest.ArrayTestMap validatedPayload = @@ -235,7 +235,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayTest.ArrayArrayOfModelList validatedPayload = @@ -347,7 +347,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayTest.ItemsList1 validatedPayload = @@ -457,7 +457,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayTest.ArrayArrayOfIntegerList validatedPayload = @@ -560,7 +560,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayTest.ItemsList validatedPayload = @@ -698,7 +698,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayTest.ArrayOfStringList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md index 54e5c933b4e..e2fc8ff7610 100644 --- a/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md +++ b/samples/client/petstore/java/docs/components/schemas/ArrayWithValidationsInItems.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ArrayWithValidationsInItems.ArrayWithValidationsInItemsList validatedPayload = @@ -169,7 +169,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // long validation long validatedPayload = ArrayWithValidationsInItems.Items.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Banana.md b/samples/client/petstore/java/docs/components/schemas/Banana.md index 44ac6a71627..419629f3f0c 100644 --- a/samples/client/petstore/java/docs/components/schemas/Banana.md +++ b/samples/client/petstore/java/docs/components/schemas/Banana.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Banana.BananaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/BananaReq.md b/samples/client/petstore/java/docs/components/schemas/BananaReq.md index 185f199eb55..c9881ecea85 100644 --- a/samples/client/petstore/java/docs/components/schemas/BananaReq.md +++ b/samples/client/petstore/java/docs/components/schemas/BananaReq.md @@ -76,7 +76,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation BananaReq.BananaReqMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Bar.md b/samples/client/petstore/java/docs/components/schemas/Bar.md index 82723e1209c..5f5758b2eec 100644 --- a/samples/client/petstore/java/docs/components/schemas/Bar.md +++ b/samples/client/petstore/java/docs/components/schemas/Bar.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Bar.Bar1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/BasquePig.md b/samples/client/petstore/java/docs/components/schemas/BasquePig.md index 9ce83ab427c..2a7a3a161ab 100644 --- a/samples/client/petstore/java/docs/components/schemas/BasquePig.md +++ b/samples/client/petstore/java/docs/components/schemas/BasquePig.md @@ -67,7 +67,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation BasquePig.BasquePigMap validatedPayload = @@ -194,7 +194,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = BasquePig.ClassName.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md index 67cc33f2e7a..0817b8f944a 100644 --- a/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/BooleanEnum.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // boolean validation boolean validatedPayload = BooleanEnum.BooleanEnum1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Capitalization.md b/samples/client/petstore/java/docs/components/schemas/Capitalization.md index e7d49753c81..71855a03b31 100644 --- a/samples/client/petstore/java/docs/components/schemas/Capitalization.md +++ b/samples/client/petstore/java/docs/components/schemas/Capitalization.md @@ -80,7 +80,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Capitalization.CapitalizationMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Cat.md b/samples/client/petstore/java/docs/components/schemas/Cat.md index a5ee74c67b3..b77142eca26 100644 --- a/samples/client/petstore/java/docs/components/schemas/Cat.md +++ b/samples/client/petstore/java/docs/components/schemas/Cat.md @@ -220,7 +220,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Cat.Schema1Map validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Category.md b/samples/client/petstore/java/docs/components/schemas/Category.md index 15e2208a29a..5edcc679a15 100644 --- a/samples/client/petstore/java/docs/components/schemas/Category.md +++ b/samples/client/petstore/java/docs/components/schemas/Category.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Category.CategoryMap validatedPayload = @@ -201,7 +201,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Category.Name.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ChildCat.md b/samples/client/petstore/java/docs/components/schemas/ChildCat.md index a3b1edb7d20..b873eb7b28c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ChildCat.md +++ b/samples/client/petstore/java/docs/components/schemas/ChildCat.md @@ -220,7 +220,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ChildCat.Schema1Map validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Client.md b/samples/client/petstore/java/docs/components/schemas/Client.md index b49ecfcbfd0..772bf1deaca 100644 --- a/samples/client/petstore/java/docs/components/schemas/Client.md +++ b/samples/client/petstore/java/docs/components/schemas/Client.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Client.ClientMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md index 94d81cedf6b..5b1be89798f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/ComplexQuadrilateral.md @@ -222,7 +222,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ComplexQuadrilateral.Schema1Map validatedPayload = @@ -333,7 +333,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ComplexQuadrilateral.QuadrilateralType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md index 7f957a7c7db..f90c2569804 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedAnyOfDifferentTypesNoValidations.md @@ -479,7 +479,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ComposedAnyOfDifferentTypesNoValidations.Schema9List validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md index d29e3b29288..0e6b7c2ebe5 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedArray.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedArray.md @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ComposedArray.ComposedArrayList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md index 0cb3e1c4f91..6ff78063732 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedBool.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedBool.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // boolean validation boolean validatedPayload = ComposedBool.ComposedBool1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md index 54ebceb8fcc..61ebd36216c 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNone.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNone.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = ComposedNone.ComposedNone1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md index 62ef9b84eea..94062ef7598 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedNumber.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = ComposedNumber.ComposedNumber1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md index 59a4ed6fbca..b54b0ffa18f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedOneOfDifferentTypes.md @@ -240,7 +240,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ComposedOneOfDifferentTypes.Schema6.validate( @@ -308,7 +308,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ComposedOneOfDifferentTypes.Schema5List validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ComposedString.md b/samples/client/petstore/java/docs/components/schemas/ComposedString.md index e93a40d3648..3ecbafc80b7 100644 --- a/samples/client/petstore/java/docs/components/schemas/ComposedString.md +++ b/samples/client/petstore/java/docs/components/schemas/ComposedString.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ComposedString.ComposedString1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Currency.md b/samples/client/petstore/java/docs/components/schemas/Currency.md index 9ab7519e301..0823b95de18 100644 --- a/samples/client/petstore/java/docs/components/schemas/Currency.md +++ b/samples/client/petstore/java/docs/components/schemas/Currency.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Currency.Currency1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/DanishPig.md b/samples/client/petstore/java/docs/components/schemas/DanishPig.md index d9c00ccc6d9..ef76756737d 100644 --- a/samples/client/petstore/java/docs/components/schemas/DanishPig.md +++ b/samples/client/petstore/java/docs/components/schemas/DanishPig.md @@ -67,7 +67,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation DanishPig.DanishPigMap validatedPayload = @@ -194,7 +194,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = DanishPig.ClassName.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md index 7464c465a93..e6c590b86bf 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeTest.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = DateTimeTest.DateTimeTest1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md index ca7ec49334b..ac9b22fe003 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateTimeWithValidations.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = DateTimeWithValidations.DateTimeWithValidations1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md index 7216918c493..3e3a7e44641 100644 --- a/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/DateWithValidations.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = DateWithValidations.DateWithValidations1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Dog.md b/samples/client/petstore/java/docs/components/schemas/Dog.md index 89b7b69bb88..58e97650847 100644 --- a/samples/client/petstore/java/docs/components/schemas/Dog.md +++ b/samples/client/petstore/java/docs/components/schemas/Dog.md @@ -220,7 +220,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Dog.Schema1Map validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Drawing.md b/samples/client/petstore/java/docs/components/schemas/Drawing.md index 800c4f51a6a..fcb7adb9da4 100644 --- a/samples/client/petstore/java/docs/components/schemas/Drawing.md +++ b/samples/client/petstore/java/docs/components/schemas/Drawing.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Drawing.DrawingMap validatedPayload = @@ -212,7 +212,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Drawing.ShapesList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md index 34d8b43fc6d..38fcd010b89 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumArrays.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumArrays.md @@ -78,7 +78,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation EnumArrays.EnumArraysMap validatedPayload = @@ -196,7 +196,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation EnumArrays.ArrayEnumList validatedPayload = @@ -297,7 +297,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumArrays.Items.validate( @@ -377,7 +377,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumArrays.JustSymbol.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/EnumClass.md b/samples/client/petstore/java/docs/components/schemas/EnumClass.md index bd1f7b84281..4ee8809a9b0 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumClass.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumClass.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumClass.EnumClass1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/EnumTest.md b/samples/client/petstore/java/docs/components/schemas/EnumTest.md index 06e5300be43..9ace02bb89f 100644 --- a/samples/client/petstore/java/docs/components/schemas/EnumTest.md +++ b/samples/client/petstore/java/docs/components/schemas/EnumTest.md @@ -83,7 +83,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation EnumTest.EnumTestMap validatedPayload = @@ -268,7 +268,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // double validation double validatedPayload = EnumTest.EnumNumber.validate( @@ -360,7 +360,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = EnumTest.EnumInteger.validate( @@ -476,7 +476,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumTest.EnumStringRequired.validate( @@ -557,7 +557,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EnumTest.EnumString.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md index cb352ae9df6..89dee1e9f9f 100644 --- a/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/EquilateralTriangle.md @@ -222,7 +222,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation EquilateralTriangle.Schema1Map validatedPayload = @@ -333,7 +333,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = EquilateralTriangle.TriangleType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/File.md b/samples/client/petstore/java/docs/components/schemas/File.md index 15d56eebe71..6457f2fdac5 100644 --- a/samples/client/petstore/java/docs/components/schemas/File.md +++ b/samples/client/petstore/java/docs/components/schemas/File.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation File.FileMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md index 57e55bd0435..2e5a62ae498 100644 --- a/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md +++ b/samples/client/petstore/java/docs/components/schemas/FileSchemaTestClass.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation FileSchemaTestClass.FileSchemaTestClassMap validatedPayload = @@ -183,7 +183,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation FileSchemaTestClass.FilesList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Foo.md b/samples/client/petstore/java/docs/components/schemas/Foo.md index 04ca2633502..5f57815ffd0 100644 --- a/samples/client/petstore/java/docs/components/schemas/Foo.md +++ b/samples/client/petstore/java/docs/components/schemas/Foo.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Foo.FooMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/FormatTest.md b/samples/client/petstore/java/docs/components/schemas/FormatTest.md index 08dd7dee18b..1d986b4ed3c 100644 --- a/samples/client/petstore/java/docs/components/schemas/FormatTest.md +++ b/samples/client/petstore/java/docs/components/schemas/FormatTest.md @@ -131,7 +131,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation FormatTest.FormatTestMap validatedPayload = @@ -654,7 +654,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = FormatTest.PatternWithDigitsAndDelimiter.validate( @@ -724,7 +724,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = FormatTest.PatternWithDigits.validate( @@ -791,7 +791,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = FormatTest.Password.validate( @@ -1042,7 +1042,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = FormatTest.StringSchema.validate( @@ -1109,7 +1109,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation FormatTest.ArrayWithUniqueItemsList validatedPayload = @@ -1283,7 +1283,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // double validation double validatedPayload = FormatTest.DoubleSchema.validate( @@ -1390,7 +1390,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // float validation float validatedPayload = FormatTest.FloatSchema.validate( @@ -1459,7 +1459,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = FormatTest.NumberSchema.validate( @@ -1563,7 +1563,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = FormatTest.Int32withValidations.validate( @@ -1667,7 +1667,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = FormatTest.IntegerSchema.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/FromSchema.md b/samples/client/petstore/java/docs/components/schemas/FromSchema.md index d6b085d96e2..5b20af3435c 100644 --- a/samples/client/petstore/java/docs/components/schemas/FromSchema.md +++ b/samples/client/petstore/java/docs/components/schemas/FromSchema.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation FromSchema.FromSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md index b84549f023a..5bc11866771 100644 --- a/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md +++ b/samples/client/petstore/java/docs/components/schemas/GrandparentAnimal.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation GrandparentAnimal.GrandparentAnimalMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md index 2b871b420dd..e38dda01ca5 100644 --- a/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/HasOnlyReadOnly.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HasOnlyReadOnly.HasOnlyReadOnlyMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md index 7cce14fe3f9..4397b3b5b00 100644 --- a/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md +++ b/samples/client/petstore/java/docs/components/schemas/HealthCheckResult.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HealthCheckResult.HealthCheckResultMap validatedPayload = @@ -198,7 +198,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = HealthCheckResult.NullableMessage.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md index aed90a02c77..56dd47dc072 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnum.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = IntegerEnum.IntegerEnum1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md index 03d1dbd111f..df5967575a1 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumBig.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = IntegerEnumBig.IntegerEnumBig1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md index dd213318138..76e57df77d2 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumOneValue.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = IntegerEnumOneValue.IntegerEnumOneValue1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md index 7096b85e90d..d45ff7f8046 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerEnumWithDefaultValue.md @@ -63,7 +63,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = IntegerEnumWithDefaultValue.IntegerEnumWithDefaultValue1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md index b077180ef4e..dcaf721386d 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMax10.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // long validation long validatedPayload = IntegerMax10.IntegerMax101.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md index b06833d735f..b4b1192132c 100644 --- a/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md +++ b/samples/client/petstore/java/docs/components/schemas/IntegerMin15.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // long validation long validatedPayload = IntegerMin15.IntegerMin151.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md index c5e24ad023c..aa962d6c000 100644 --- a/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/IsoscelesTriangle.md @@ -222,7 +222,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation IsoscelesTriangle.Schema1Map validatedPayload = @@ -333,7 +333,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = IsoscelesTriangle.TriangleType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Items.md b/samples/client/petstore/java/docs/components/schemas/Items.md index 3a6b1f68259..ef9402f5f91 100644 --- a/samples/client/petstore/java/docs/components/schemas/Items.md +++ b/samples/client/petstore/java/docs/components/schemas/Items.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Items.ItemsList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md index 69c32cb0c74..073e248ac95 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequest.md @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation JSONPatchRequest.JSONPatchRequestList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md index 6eb26b8f563..f1bdbff7161 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestAddReplaceTest.md @@ -86,7 +86,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation JSONPatchRequestAddReplaceTest.JSONPatchRequestAddReplaceTestMap validatedPayload = @@ -347,7 +347,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = JSONPatchRequestAddReplaceTest.Op.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md index 6de6ab3995d..ea99d613937 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestMoveCopy.md @@ -81,7 +81,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation JSONPatchRequestMoveCopy.JSONPatchRequestMoveCopyMap validatedPayload = @@ -312,7 +312,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = JSONPatchRequestMoveCopy.Op.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md index 2fc8fc599ac..0fdd235a877 100644 --- a/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md +++ b/samples/client/petstore/java/docs/components/schemas/JSONPatchRequestRemove.md @@ -78,7 +78,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation JSONPatchRequestRemove.JSONPatchRequestRemoveMap validatedPayload = @@ -236,7 +236,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = JSONPatchRequestRemove.Op.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/MapTest.md b/samples/client/petstore/java/docs/components/schemas/MapTest.md index 959357a628a..1081c9a71b4 100644 --- a/samples/client/petstore/java/docs/components/schemas/MapTest.md +++ b/samples/client/petstore/java/docs/components/schemas/MapTest.md @@ -93,7 +93,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MapTest.MapTestMap validatedPayload = @@ -236,7 +236,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MapTest.DirectMapMap validatedPayload = @@ -371,7 +371,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MapTest.MapOfEnumStringMap validatedPayload = @@ -472,7 +472,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = MapTest.AdditionalProperties2.validate( @@ -552,7 +552,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MapTest.MapMapOfStringMap validatedPayload = @@ -659,7 +659,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MapTest.AdditionalPropertiesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md index 85a83ca51c7..3f4b18423cc 100644 --- a/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/java/docs/components/schemas/MixedPropertiesAndAdditionalPropertiesClass.md @@ -73,7 +73,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MixedPropertiesAndAdditionalPropertiesClass.MixedPropertiesAndAdditionalPropertiesClassMap validatedPayload = @@ -205,7 +205,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MixedPropertiesAndAdditionalPropertiesClass.MapMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Money.md b/samples/client/petstore/java/docs/components/schemas/Money.md index 13b29a8b185..18cd7a61152 100644 --- a/samples/client/petstore/java/docs/components/schemas/Money.md +++ b/samples/client/petstore/java/docs/components/schemas/Money.md @@ -73,7 +73,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Money.MoneyMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md index 8a86261e783..6784ab19f56 100644 --- a/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/MyObjectDto.md @@ -73,7 +73,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MyObjectDto.MyObjectDtoMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md index 8e879e6227e..f90d74a18ac 100644 --- a/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/NoAdditionalProperties.md @@ -76,7 +76,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NoAdditionalProperties.NoAdditionalPropertiesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/NullableClass.md b/samples/client/petstore/java/docs/components/schemas/NullableClass.md index 8c5e27eedd6..eeb5e4a3868 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableClass.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableClass.md @@ -148,7 +148,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NullableClass.NullableClassMap validatedPayload = @@ -323,7 +323,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NullableClass.ObjectItemsNullableMap validatedPayload = @@ -442,7 +442,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.AdditionalProperties2.validate( @@ -528,7 +528,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.ObjectAndItemsNullableProp.validate( @@ -655,7 +655,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.AdditionalProperties1.validate( @@ -741,7 +741,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.ObjectNullableProp.validate( @@ -882,7 +882,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation NullableClass.ArrayItemsNullableList validatedPayload = @@ -1001,7 +1001,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.Items2.validate( @@ -1087,7 +1087,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.ArrayAndItemsNullableProp.validate( @@ -1214,7 +1214,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.Items1.validate( @@ -1300,7 +1300,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.ArrayNullableProp.validate( @@ -1459,7 +1459,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.DatetimeProp.validate( @@ -1552,7 +1552,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.DateProp.validate( @@ -1645,7 +1645,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.StringProp.validate( @@ -1737,7 +1737,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.BooleanProp.validate( @@ -1829,7 +1829,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.NumberProp.validate( @@ -1921,7 +1921,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.IntegerProp.validate( @@ -2014,7 +2014,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableClass.AdditionalProperties3.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/NullableString.md b/samples/client/petstore/java/docs/components/schemas/NullableString.md index 89681b2ccc8..67984f76ea0 100644 --- a/samples/client/petstore/java/docs/components/schemas/NullableString.md +++ b/samples/client/petstore/java/docs/components/schemas/NullableString.md @@ -77,7 +77,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = NullableString.NullableString1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md index 5e82ab07ff9..8c485524eb7 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberOnly.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberOnly.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation NumberOnly.NumberOnlyMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md index 6e4ee1b29e8..56bd0585554 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithExclusiveMinMax.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = NumberWithExclusiveMinMax.NumberWithExclusiveMinMax1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md index 27f5efe7108..9741c1e3df3 100644 --- a/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md +++ b/samples/client/petstore/java/docs/components/schemas/NumberWithValidations.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = NumberWithValidations.NumberWithValidations1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md index 3c69397f798..33d273f31c6 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredProps.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjWithRequiredProps.ObjWithRequiredPropsMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md index 0e793410b40..ad53e045519 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjWithRequiredPropsBase.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjWithRequiredPropsBase.ObjWithRequiredPropsBaseMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md index 3a721e264ed..908325f83fa 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithArgAndArgsProperties.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectModelWithArgAndArgsProperties.ObjectModelWithArgAndArgsPropertiesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md index 918ab30b4d9..e4a3c0b56ca 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectModelWithRefProps.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectModelWithRefProps.ObjectModelWithRefPropsMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md index bf3fcee95aa..c5afb8eb9cf 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md @@ -220,7 +220,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithAllOfWithReqTestPropFromUnsetAddProp.Schema1Map validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md index 4cee91a6a27..3d0f7ccb574 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithCollidingProperties.md @@ -71,7 +71,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithCollidingProperties.ObjectWithCollidingPropertiesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md index a0a7f61e436..b4a5b9a4e12 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDecimalProperties.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithDecimalProperties.ObjectWithDecimalPropertiesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md index 4e13e990bfc..69eb228179d 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithDifficultlyNamedProps.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithDifficultlyNamedProps.ObjectWithDifficultlyNamedPropsMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md index fd45de58365..0a5ba2919e6 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInlineCompositionProperty.md @@ -73,7 +73,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithInlineCompositionProperty.ObjectWithInlineCompositionPropertyMap validatedPayload = @@ -336,7 +336,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ObjectWithInlineCompositionProperty.Schema0.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md index 61858637ba8..9ce2e0a99b1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithInvalidNamedRefedProperties.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithInvalidNamedRefedProperties.ObjectWithInvalidNamedRefedPropertiesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md index 2f42b4461c1..a26f275ad0b 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithNonIntersectingValues.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithNonIntersectingValues.ObjectWithNonIntersectingValuesMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md index dfc26028d59..f438b5ca294 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOnlyOptionalProps.md @@ -84,7 +84,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithOnlyOptionalProps.ObjectWithOnlyOptionalPropsMap validatedPayload = @@ -215,7 +215,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = ObjectWithOnlyOptionalProps.ArrayProperty.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md index 1debfe0f6e7..001a320581e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md +++ b/samples/client/petstore/java/docs/components/schemas/ObjectWithOptionalTestProp.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ObjectWithOptionalTestProp.ObjectWithOptionalTestPropMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Order.md b/samples/client/petstore/java/docs/components/schemas/Order.md index 529eb749af6..b3d809cd8e6 100644 --- a/samples/client/petstore/java/docs/components/schemas/Order.md +++ b/samples/client/petstore/java/docs/components/schemas/Order.md @@ -82,7 +82,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Order.OrderMap validatedPayload = @@ -258,7 +258,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Order.Status.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md index 28d84e0db31..b47fea43805 100644 --- a/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md +++ b/samples/client/petstore/java/docs/components/schemas/PaginatedResultMyObjectDto.md @@ -80,7 +80,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PaginatedResultMyObjectDto.PaginatedResultMyObjectDtoMap validatedPayload = @@ -241,7 +241,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation PaginatedResultMyObjectDto.ResultsList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Pet.md b/samples/client/petstore/java/docs/components/schemas/Pet.md index 591dfdbfb42..6ddac9c4a3b 100644 --- a/samples/client/petstore/java/docs/components/schemas/Pet.md +++ b/samples/client/petstore/java/docs/components/schemas/Pet.md @@ -91,7 +91,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Pet.PetMap validatedPayload = @@ -294,7 +294,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Pet.TagsList validatedPayload = @@ -407,7 +407,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Pet.Status.validate( @@ -488,7 +488,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Pet.PhotoUrlsList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/Player.md b/samples/client/petstore/java/docs/components/schemas/Player.md index 54fb42f9d02..a2aff05c04d 100644 --- a/samples/client/petstore/java/docs/components/schemas/Player.md +++ b/samples/client/petstore/java/docs/components/schemas/Player.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Player.PlayerMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/PublicKey.md b/samples/client/petstore/java/docs/components/schemas/PublicKey.md index a4315feb0ee..d2a9c7f8634 100644 --- a/samples/client/petstore/java/docs/components/schemas/PublicKey.md +++ b/samples/client/petstore/java/docs/components/schemas/PublicKey.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PublicKey.PublicKeyMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md index 7e86d1b1b7d..008f8339825 100644 --- a/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/QuadrilateralInterface.md @@ -348,7 +348,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = QuadrilateralInterface.ShapeType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md index 5c8f5d44628..598d83719ec 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md +++ b/samples/client/petstore/java/docs/components/schemas/ReadOnlyFirst.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ReadOnlyFirst.ReadOnlyFirstMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md index ad0a8a0d5e7..051029fca2e 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromExplicitAddProps.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ReqPropsFromExplicitAddProps.ReqPropsFromExplicitAddPropsMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md index 4c777586841..85c1a1ac292 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromTrueAddProps.md @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ReqPropsFromTrueAddProps.ReqPropsFromTrueAddPropsMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md index 9b50333fa9b..7982e41e60f 100644 --- a/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md +++ b/samples/client/petstore/java/docs/components/schemas/ReqPropsFromUnsetAddProps.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ReqPropsFromUnsetAddProps.ReqPropsFromUnsetAddPropsMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md index e7f22d7c919..e85a45f57b1 100644 --- a/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md +++ b/samples/client/petstore/java/docs/components/schemas/ScaleneTriangle.md @@ -222,7 +222,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ScaleneTriangle.Schema1Map validatedPayload = @@ -333,7 +333,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ScaleneTriangle.TriangleType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md index a3cf81c7dd6..ba989c0d031 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingArrayModel.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation SelfReferencingArrayModel.SelfReferencingArrayModelList validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md index 7dcef05fb8d..587d1f6d89c 100644 --- a/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md +++ b/samples/client/petstore/java/docs/components/schemas/SelfReferencingObjectModel.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation SelfReferencingObjectModel.SelfReferencingObjectModelMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md index 041b16efbfc..59bfc2b97c4 100644 --- a/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md +++ b/samples/client/petstore/java/docs/components/schemas/SimpleQuadrilateral.md @@ -222,7 +222,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation SimpleQuadrilateral.Schema1Map validatedPayload = @@ -333,7 +333,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = SimpleQuadrilateral.QuadrilateralType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md index c1865a72d3f..b281fd712e2 100644 --- a/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md +++ b/samples/client/petstore/java/docs/components/schemas/SpecialModelname.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation SpecialModelname.SpecialModelnameMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md index a9af5c8ab06..1d4ff14b2c6 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md +++ b/samples/client/petstore/java/docs/components/schemas/StringBooleanMap.md @@ -65,7 +65,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation StringBooleanMap.StringBooleanMapMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnum.md b/samples/client/petstore/java/docs/components/schemas/StringEnum.md index 14a4f052276..5e5eca53624 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnum.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnum.md @@ -80,7 +80,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = StringEnum.StringEnum1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md index 68e061437a8..4f00e792efc 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md +++ b/samples/client/petstore/java/docs/components/schemas/StringEnumWithDefaultValue.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = StringEnumWithDefaultValue.StringEnumWithDefaultValue1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md index e9cc3ad8b58..9fc470d2da0 100644 --- a/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md +++ b/samples/client/petstore/java/docs/components/schemas/StringWithValidation.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = StringWithValidation.StringWithValidation1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Tag.md b/samples/client/petstore/java/docs/components/schemas/Tag.md index 526e8652cbf..27b3da19657 100644 --- a/samples/client/petstore/java/docs/components/schemas/Tag.md +++ b/samples/client/petstore/java/docs/components/schemas/Tag.md @@ -68,7 +68,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Tag.TagMap validatedPayload = diff --git a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md index cfa2a891c45..ce7e7d11566 100644 --- a/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md +++ b/samples/client/petstore/java/docs/components/schemas/TriangleInterface.md @@ -348,7 +348,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = TriangleInterface.ShapeType.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/UUIDString.md b/samples/client/petstore/java/docs/components/schemas/UUIDString.md index a89d8d8d6c5..f6c62c7002f 100644 --- a/samples/client/petstore/java/docs/components/schemas/UUIDString.md +++ b/samples/client/petstore/java/docs/components/schemas/UUIDString.md @@ -58,7 +58,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = UUIDString.UUIDString1.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/User.md b/samples/client/petstore/java/docs/components/schemas/User.md index b4d4e163496..5c108d7bb81 100644 --- a/samples/client/petstore/java/docs/components/schemas/User.md +++ b/samples/client/petstore/java/docs/components/schemas/User.md @@ -120,7 +120,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation User.UserMap validatedPayload = @@ -761,7 +761,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // null validation Void validatedPayload = User.ObjectWithNoDeclaredPropsNullable.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Whale.md b/samples/client/petstore/java/docs/components/schemas/Whale.md index 8e1012adc46..09e128aae5a 100644 --- a/samples/client/petstore/java/docs/components/schemas/Whale.md +++ b/samples/client/petstore/java/docs/components/schemas/Whale.md @@ -73,7 +73,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Whale.WhaleMap validatedPayload = @@ -208,7 +208,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Whale.ClassName.validate( diff --git a/samples/client/petstore/java/docs/components/schemas/Zebra.md b/samples/client/petstore/java/docs/components/schemas/Zebra.md index 2c5de12d290..90146b73163 100644 --- a/samples/client/petstore/java/docs/components/schemas/Zebra.md +++ b/samples/client/petstore/java/docs/components/schemas/Zebra.md @@ -79,7 +79,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Zebra.ZebraMap validatedPayload = @@ -212,7 +212,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Zebra.ClassName.validate( @@ -291,7 +291,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Zebra.Type.validate( diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md index 8ce9988a2f5..d191146247d 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/Patch.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.anotherfakedummy.patch.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.anotherfakedummy.Patch; +import org.openapijsonschematools.client.paths.anotherfakedummy.patch.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md index 1882f9cdadd..cc3c29215e0 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Client1Boxed](../../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 0a219ca9fad..534041524ca 100644 --- a/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/anotherfakedummy/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) +extends [Client1](../../../../../../../components/schemas/Client.md#client) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) +extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md index f766eb05a79..30991ce975e 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/Delete.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.delete.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.Delete; +import org.openapijsonschematools.client.paths.commonparamsubdir.delete.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md index 4cc89d8ffc0..0dd7f7129e0 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/Get.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.Get; +import org.openapijsonschematools.client.paths.commonparamsubdir.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md index b30536aadd5..39c630ee0b4 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.commonparamsubdir.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.commonparamsubdir.Post; +import org.openapijsonschematools.client.paths.commonparamsubdir.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md index 65aa4f8d35f..8f0f25e94e3 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/HeaderParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeaderParameters.HeaderParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.md index 36264d51fda..87f833e6a58 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md index 624141a1087..ef5c82182ba 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.md @@ -59,7 +59,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema1.Schema11.validate( diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md index c16be81044a..bb7ece676f5 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.md index 7138f9a8428..b7a7775bc7d 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md index f298271d6d5..a21f308c2ea 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.md @@ -59,7 +59,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = RouteParamSchema0.RouteParamSchema01.validate( diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md index 246518f113d..ee5f95055d9 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/HeaderParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeaderParameters.HeaderParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.md b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.md index c0e2840db7a..241d933e5b7 100644 --- a/samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/commonparamsubdir/post/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fake/Delete.md b/samples/client/petstore/java/docs/paths/fake/Delete.md index e19bf051094..38085cff27f 100644 --- a/samples/client/petstore/java/docs/paths/fake/Delete.md +++ b/samples/client/petstore/java/docs/paths/fake/Delete.md @@ -45,27 +45,33 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.BearerTest; import org.openapijsonschematools.client.paths.fake.delete.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.Delete; +import org.openapijsonschematools.client.paths.fake.delete.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new BearerTest("someAccessToken"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .fakeDeleteSecurityInfoSecurityIndex(FakeDeleteSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakeDeleteSecurityRequirementObject0SecurityIndex(FakeDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -74,7 +80,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/Get.md b/samples/client/petstore/java/docs/paths/fake/Get.md index eaaac40d53d..ce06f4cdb92 100644 --- a/samples/client/petstore/java/docs/paths/fake/Get.md +++ b/samples/client/petstore/java/docs/paths/fake/Get.md @@ -41,28 +41,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.get.responses.Code200Response; import org.openapijsonschematools.client.paths.fake.get.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.Get; +import org.openapijsonschematools.client.paths.fake.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/Patch.md b/samples/client/petstore/java/docs/paths/fake/Patch.md index 846bd4a6b2c..aacb0a78049 100644 --- a/samples/client/petstore/java/docs/paths/fake/Patch.md +++ b/samples/client/petstore/java/docs/paths/fake/Patch.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fake.patch.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.Patch; +import org.openapijsonschematools.client.paths.fake.patch.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/Post.md b/samples/client/petstore/java/docs/paths/fake/Post.md index c2f25dbe7f3..b85dee6e90e 100644 --- a/samples/client/petstore/java/docs/paths/fake/Post.md +++ b/samples/client/petstore/java/docs/paths/fake/Post.md @@ -42,27 +42,33 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.HttpBasicTest; import org.openapijsonschematools.client.paths.fake.post.responses.Code200Response; import org.openapijsonschematools.client.paths.fake.post.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fake.Post; +import org.openapijsonschematools.client.paths.fake.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new HttpBasicTest("someUserId", "somePassword"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .fakePostSecurityInfoSecurityIndex(FakePostSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakePostSecurityRequirementObject0SecurityIndex(FakePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -71,7 +77,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md index 4dfd832ceee..2950f661f66 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/HeaderParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeaderParameters.HeaderParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.md b/samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.md index 172eb025ee2..455f2a77379 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md index 1bd02d5447d..8f952c2caf2 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter1/Schema1.md @@ -59,7 +59,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema1.Schema11.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md index e132ee47fe4..deb5749b4c6 100644 --- a/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/delete/parameters/parameter4/Schema4.md @@ -59,7 +59,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema4.Schema41.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md b/samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md index 549f74cf0ae..ffb2035d0d7 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/get/HeaderParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeaderParameters.HeaderParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md index bbd2f03428a..a15587d326b 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fake/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = 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 a23f943ece1..648f585218b 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 @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema0.SchemaList0 validatedPayload = @@ -167,7 +167,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema0.Items0.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md index 9531ac6629d..f800da764fd 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter1/Schema1.md @@ -59,7 +59,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema1.Schema11.validate( 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 4db50329a9f..0d9d6f7469a 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 @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema2.SchemaList2 validatedPayload = @@ -167,7 +167,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema2.Items2.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md index 79ec964dfa5..8ea43fa12ea 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter3/Schema3.md @@ -59,7 +59,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema3.Schema31.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md index 4a90f57fed2..937aae56a94 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter4/Schema4.md @@ -62,7 +62,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = Schema4.Schema41.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md index f0db45ea96c..63198fed5b8 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md +++ b/samples/client/petstore/java/docs/paths/fake/get/parameters/parameter5/Schema5.md @@ -60,7 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // double validation double validatedPayload = Schema5.Schema51.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index b522c4ad33c..d84853fb4ea 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -77,7 +77,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = @@ -198,7 +198,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormString.validate( @@ -283,7 +283,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedEnumFormStringArrayList validatedPayload = @@ -384,7 +384,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedItems.validate( diff --git a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response.md b/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response.md index ade76a961a9..4c15662e637 100644 --- a/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response.md +++ b/samples/client/petstore/java/docs/paths/fake/get/responses/Code404Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/get/responses/code404response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md index 06c4bf233fb..0624bf61d5f 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Client1Boxed](../../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 0a219ca9fad..534041524ca 100644 --- a/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) +extends [Client1](../../../../../../../components/schemas/Client.md#client) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) +extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 28c99dfe17d..5075ea7d3c7 100644 --- a/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -102,7 +102,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = @@ -612,7 +612,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPassword.validate( @@ -684,7 +684,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDateTime.validate( @@ -841,7 +841,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedPatternWithoutDelimiter.validate( @@ -911,7 +911,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedString.validate( @@ -981,7 +981,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // double validation double validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedDouble.validate( @@ -1053,7 +1053,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // float validation float validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedFloat.validate( @@ -1124,7 +1124,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedNumber.validate( @@ -1233,7 +1233,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInt32.validate( @@ -1305,7 +1305,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // int validation int validatedPayload = ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedInteger.validate( diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md index e1599769a32..3e2e0cb0ac1 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/Get.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.Get; +import org.openapijsonschematools.client.paths.fakeadditionalpropertieswitharrayofenums.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md index 92fcbbcd6d3..dab98f5c670 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[AdditionalPropertiesWithArrayOfEnums1Boxed](../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index f29d75df1fc..3c5d3360d21 100644 --- a/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeadditionalpropertieswitharrayofenums/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) +extends [AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) +extends [AdditionalPropertiesWithArrayOfEnums.AdditionalPropertiesWithArrayOfEnums1](../../../../../../../components/schemas/AdditionalPropertiesWithArrayOfEnums.md#additionalpropertieswitharrayofenums1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md index 1418fafcf3f..1f440144acf 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithfileschema/Put.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithfileschema.Put; +import org.openapijsonschematools.client.paths.fakebodywithfileschema.put.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md index 5b044c5f4e7..b1bb899b5a5 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/Put.md @@ -43,28 +43,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakebodywithqueryparams.Put; +import org.openapijsonschematools.client.paths.fakebodywithqueryparams.put.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md index 77858498bbf..73898106516 100644 --- a/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakebodywithqueryparams/put/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md index 866755c2812..7e8b7e8933a 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/Put.md @@ -39,28 +39,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakecasesensitiveparams.Put; +import org.openapijsonschematools.client.paths.fakecasesensitiveparams.put.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md index 16371a127e4..f374bd91398 100644 --- a/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakecasesensitiveparams/put/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md index a6452a89049..4fec21e62e9 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/Patch.md @@ -43,27 +43,33 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKeyQuery; import org.openapijsonschematools.client.paths.fakeclassnametest.patch.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeclassnametest.Patch; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKeyQuery("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .fakeclassnametestPatchSecurityInfoSecurityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakeclassnametestPatchSecurityRequirementObject0SecurityIndex(FakeclassnametestPatchSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -72,7 +78,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md index 5f46aa75001..40e3e4d6357 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Client1Boxed](../../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Client1Boxed](../../../../components/schemas/Client.md#client1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 0a219ca9fad..534041524ca 100644 --- a/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeclassnametest/patch/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [Client1](../../../../../../../../../components/schemas/Client.md#client) +extends [Client1](../../../../../../../components/schemas/Client.md#client) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [Client.Client1](../../../../../../../../../components/schemas/Client.md#client1) +extends [Client.Client1](../../../../../../../components/schemas/Client.md#client1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md index 3a5bdb7bc60..add571b8591 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/Delete.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.Code200Response; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.responses.CodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakedeletecoffeeid.Delete; +import org.openapijsonschematools.client.paths.fakedeletecoffeeid.delete.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md index 7f3b19c880f..7f4d342867e 100644 --- a/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakedeletecoffeeid/delete/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakehealth/Get.md b/samples/client/petstore/java/docs/paths/fakehealth/Get.md index 32d3de4ba5c..599ca6ae6c0 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/Get.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/Get.md @@ -36,28 +36,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakehealth.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakehealth.Get; +import org.openapijsonschematools.client.paths.fakehealth.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md index 66a714617ca..aa198ccee86 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[HealthCheckResult1Boxed](../../../../components/schemas/HealthCheckResult.md#healthcheckresult1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index ff3de49a907..4b80f3aefdb 100644 --- a/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakehealth/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) +extends [HealthCheckResult1](../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [HealthCheckResult.HealthCheckResult1](../../../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) +extends [HealthCheckResult.HealthCheckResult1](../../../../../../../components/schemas/HealthCheckResult.md#healthcheckresult1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md index f7b49550451..23787504db8 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.Post; +import org.openapijsonschematools.client.paths.fakeinlineadditionalproperties.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 0c0bae0cd56..99e2db386dc 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md index 6f01f31fd31..e2d3daaae41 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/Post.md @@ -39,28 +39,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeinlinecomposition.Post; +import org.openapijsonschematools.client.paths.fakeinlinecomposition.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md index 0fd1071255c..49af6fa33c5 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md index 4a133910219..d9573cef8e6 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.md @@ -212,7 +212,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema0.Schema00.validate( 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 5ce87753e26..5698ce8d5e9 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 @@ -72,7 +72,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Schema1.SchemaMap1 validatedPayload = @@ -335,7 +335,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema1.Schema01.validate( diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index 700e1b0babd..e4f1139126b 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -212,7 +212,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 77e0d787280..a788b114ec5 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -72,7 +72,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = @@ -335,7 +335,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md index c62e07c235e..b3b6180ef97 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/Code200Response.md @@ -30,7 +30,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -42,12 +42,12 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## MultipartformdataMediaType public record MultipartformdataMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[MultipartformdataSchema.MultipartformdataSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1), Void> class storing schema info for a specific contentType @@ -59,7 +59,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [MultipartformdataSchema.MultipartformdataSchema1](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | +| [MultipartformdataSchema.MultipartformdataSchema1](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -79,12 +79,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | ## MultipartformdataResponseBody public record MultipartformdataResponseBody
implements [SealedResponseBody](#sealedresponsebody) @@ -94,12 +94,12 @@ A record class to store response body for contentType="multipart/form-data" ### Constructor Summary | Constructor and Description | | --------------------------- | -| MultipartformdataResponseBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | +| MultipartformdataResponseBody(MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | +| MultipartformdataSchema.[MultipartformdataSchema1Boxed](../../../../paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md#multipartformdataschema1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index ed7a22a5d64..6da7a53d31e 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -212,7 +212,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = ApplicationjsonSchema.Applicationjson0.validate( diff --git a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md index af7358c4749..9d9d89cfb44 100644 --- a/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.md @@ -72,7 +72,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = @@ -335,7 +335,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = MultipartformdataSchema.Multipartformdata0.validate( diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md index 1e911fb538b..4baac6db8d2 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/Get.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonformdata.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonformdata.Get; +import org.openapijsonschematools.client.paths.fakejsonformdata.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index cb5a15a41f9..0007484657b 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -67,7 +67,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md b/samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md index a186afc0763..71e68b2f798 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md +++ b/samples/client/petstore/java/docs/paths/fakejsonpatch/Patch.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonpatch.patch.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonpatch.Patch; +import org.openapijsonschematools.client.paths.fakejsonpatch.patch.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Patch.Patch1 apiClient = new Patch.Patch1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md index c600ed01aee..53835ba8607 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakejsonwithcharset.Post; +import org.openapijsonschematools.client.paths.fakejsonwithcharset.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md index df3d73f0cd5..72a307bd8ee 100644 --- a/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakejsonwithcharset/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## Applicationjsoncharsetutf8MediaType public record Applicationjsoncharsetutf8MediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | +| [Applicationjsoncharsetutf8Schema.Applicationjsoncharsetutf8Schema1](../../../../paths/fakejsonwithcharset/post/responses/code200response/content/applicationjsoncharsetutf8/Applicationjsoncharsetutf8Schema.md#applicationjsoncharsetutf8schema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md index 0c5ce872d6c..645f512d5e3 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.Post; +import org.openapijsonschematools.client.paths.fakemultiplerequestbodycontenttypes.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md index d975e6ad0fd..1a451c294b9 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.md @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 6aa65f7607d..c09adef6e02 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md index 08bd386633d..b2018685e0e 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplerequestbodycontenttypes/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplerequestbodycontenttypes/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md index 2b87ae47a1c..b0a9bc68466 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/Get.md @@ -37,28 +37,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code200Response; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.responses.Code202Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.Get; +import org.openapijsonschematools.client.paths.fakemultipleresponsebodies.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md index 1bb38c3e5f9..ce537bef9b8 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md index cacd3b9bfc2..b04ca6b54b6 100644 --- a/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultipleresponsebodies/get/responses/Code202Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultipleresponsebodies/get/responses/code202response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md index 4109176530a..f17fe936fdf 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/Get.md @@ -41,21 +41,26 @@ import org.openapijsonschematools.client.components.securityschemes.HttpBasicTes import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.Get; +import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new HttpBasicTest("someUserId", "somePassword"); @@ -63,8 +68,9 @@ securitySchemes.add( securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .fakemultiplesecuritiesGetSecurityInfoSecurityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakemultiplesecuritiesGetSecurityRequirementObject0SecurityIndex(FakemultiplesecuritiesGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -73,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md index 284490389e8..36b2ff44005 100644 --- a/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakemultiplesecurities/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakemultiplesecurities/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md index c54fe28b951..0bb145e285a 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/Get.md @@ -37,28 +37,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeobjinquery.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeobjinquery.Get; +import org.openapijsonschematools.client.paths.fakeobjinquery.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md index 0fe7c4fc0fe..4c6bb23a701 100644 --- a/samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeobjinquery/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = 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 213c4b8d7cd..9272e5e5527 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Schema0.SchemaMap0 validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md index 1db9e1228a5..04bdd7cc49f 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/Post.md @@ -43,28 +43,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.Post; +import org.openapijsonschematools.client.paths.fakeparametercollisions1ababselfab.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md index 9c87d5f7f53..bb7f88699c9 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/CookieParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation CookieParameters.CookieParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md index 1697667e257..2a5dbe5fed5 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/HeaderParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeaderParameters.HeaderParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md index d2cee94d949..0a3a341c225 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md index 7a5acd8dbe9..a4c08e40129 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md index 3fa4637b4e6..5a3dd5fda7e 100644 --- a/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeparametercollisions1ababselfab/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeparametercollisions1ababselfab/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md index 77a14552f9d..c355850ea3b 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/Get.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakepemcontenttype.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakepemcontenttype.Get; +import org.openapijsonschematools.client.paths.fakepemcontenttype.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md index bf2ef48f27a..cf48dd70fcb 100644 --- a/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakepemcontenttype/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationxpemfileMediaType public record ApplicationxpemfileMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | +| [ApplicationxpemfileSchema.ApplicationxpemfileSchema1](../../../../paths/fakepemcontenttype/get/responses/code200response/content/applicationxpemfile/ApplicationxpemfileSchema.md#applicationxpemfileschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md index a9346a188ed..c1236de9529 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/Post.md @@ -43,24 +43,30 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.Post; +import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .fakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0SecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -69,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md index 0188e421110..fc76860f3f1 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index d74846d39a8..033b1b81980 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md index 8e0cd650372..fcae996d354 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 99e81a1b57d..bb60c5776fb 100644 --- a/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakepetiduploadimagewithrequiredfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) +extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) +extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md index a1734c23862..74a0727c609 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/Get.md @@ -39,28 +39,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.Get; +import org.openapijsonschematools.client.paths.fakequeryparamwithjsoncontenttype.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md index 6898980ee87..e5511de70d1 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md index cec99fd6aa3..aca65794e2c 100644 --- a/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakequeryparamwithjsoncontenttype/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakequeryparamwithjsoncontenttype/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakeredirection/Get.md b/samples/client/petstore/java/docs/paths/fakeredirection/Get.md index 01756bfff4a..e640e6b3330 100644 --- a/samples/client/petstore/java/docs/paths/fakeredirection/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeredirection/Get.md @@ -37,28 +37,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code303Response; import org.openapijsonschematools.client.paths.fakeredirection.get.responses.Code3XXResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeredirection.Get; +import org.openapijsonschematools.client.paths.fakeredirection.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md index 7b8c3d1a09e..f4d03b3f970 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/Get.md @@ -37,28 +37,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefobjinquery.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefobjinquery.Get; +import org.openapijsonschematools.client.paths.fakerefobjinquery.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md index b72a437e0f8..8af143cb246 100644 --- a/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/fakerefobjinquery/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md index f2b86fd0629..4bc163fabaa 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsarraymodel.Post; +import org.openapijsonschematools.client.paths.fakerefsarraymodel.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md index dd02335fa1f..485cbd98023 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[AnimalFarm1Boxed](../../../../components/schemas/AnimalFarm.md#animalfarm1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 7eb02fafbcb..f4786efc35d 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarraymodel/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm) +extends [AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#animalfarm) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [AnimalFarm.AnimalFarm1](../../../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) +extends [AnimalFarm.AnimalFarm1](../../../../../../../components/schemas/AnimalFarm.md#animalfarm1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md index 05581875a20..200542c4704 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsarrayofenums.Post; +import org.openapijsonschematools.client.paths.fakerefsarrayofenums.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md index aaa7c0063e9..dfa9fdf6f04 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ArrayOfEnums1Boxed](../../../../components/schemas/ArrayOfEnums.md#arrayofenums1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 835e837b74a..82450aa4900 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsarrayofenums/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) +extends [ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) +extends [ArrayOfEnums.ArrayOfEnums1](../../../../../../../components/schemas/ArrayOfEnums.md#arrayofenums1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md index d2eb60a0c7a..7df44e941e1 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsboolean.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsboolean.Post; +import org.openapijsonschematools.client.paths.fakerefsboolean.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md index 298eefdfefa..9929792ca0e 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 29cc3b9d760..1694ac4a00a 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsboolean/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema) +extends [BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.md#booleanschema) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [BooleanSchema.BooleanSchema1](../../../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) +extends [BooleanSchema.BooleanSchema1](../../../../../../../components/schemas/BooleanSchema.md#booleanschema1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md index 5e1b8b12e96..4b26f154cf2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.Post; +import org.openapijsonschematools.client.paths.fakerefscomposedoneofnumberwithvalidations.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md index 68f787d768f..1145364df95 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ComposedOneOfDifferentTypes1Boxed](../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index a2c8d6c9559..1e3738551c2 100644 --- a/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefscomposedoneofnumberwithvalidations/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) +extends [ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) +extends [ComposedOneOfDifferentTypes.ComposedOneOfDifferentTypes1](../../../../../../../components/schemas/ComposedOneOfDifferentTypes.md#composedoneofdifferenttypes1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/Post.md b/samples/client/petstore/java/docs/paths/fakerefsenum/Post.md index 77f32d0c789..9c6f0dcd85f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsenum.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsenum.Post; +import org.openapijsonschematools.client.paths.fakerefsenum.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md index eecf13b8f6f..4d7406fe83c 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[StringEnum1Boxed](../../../../../components/schemas/StringEnum.md#stringenum1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[StringEnum1Boxed](../../../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[StringEnum1Boxed](../../../../components/schemas/StringEnum.md#stringenum1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 3d7b311e68f..2ac02fd09b9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsenum/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum) +extends [StringEnum1](../../../../../../../components/schemas/StringEnum.md#stringenum) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [StringEnum.StringEnum1](../../../../../../../../../components/schemas/StringEnum.md#stringenum1) +extends [StringEnum.StringEnum1](../../../../../../../components/schemas/StringEnum.md#stringenum1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md index cdcf9614119..e346a48bda1 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsmammal.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsmammal.Post; +import org.openapijsonschematools.client.paths.fakerefsmammal.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); Post.SealedRequestBody requestBody = new Post.ApplicationjsonRequestBody(requestBodyPayload); diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md index 693f18df152..306cb9c0fd4 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Mammal1Boxed](../../../../../components/schemas/Mammal.md#mammal1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Mammal1Boxed](../../../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Mammal1Boxed](../../../../components/schemas/Mammal.md#mammal1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 41b8db552fa..f0a5b53544f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsmammal/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal) +extends [Mammal1](../../../../../../../components/schemas/Mammal.md#mammal) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [Mammal.Mammal1](../../../../../../../../../components/schemas/Mammal.md#mammal1) +extends [Mammal.Mammal1](../../../../../../../components/schemas/Mammal.md#mammal1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md index 076da420c03..41bcd1d2a69 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsnumber.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsnumber.Post; +import org.openapijsonschematools.client.paths.fakerefsnumber.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md index 8a757719086..fa79fa5553f 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[NumberWithValidations1Boxed](../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index b92500c8220..a903474b2ee 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsnumber/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) +extends [NumberWithValidations1](../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [NumberWithValidations.NumberWithValidations1](../../../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) +extends [NumberWithValidations.NumberWithValidations1](../../../../../../../components/schemas/NumberWithValidations.md#numberwithvalidations1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md index 4b07291c56b..a897bfcdcc9 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.Post; +import org.openapijsonschematools.client.paths.fakerefsobjectmodelwithrefprops.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md index 8c7df4f3143..ec15e24f629 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ObjectModelWithRefProps1Boxed](../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 2bf27caf427..495e07e6094 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsobjectmodelwithrefprops/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) +extends [ObjectModelWithRefProps1](../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) +extends [ObjectModelWithRefProps.ObjectModelWithRefProps1](../../../../../../../components/schemas/ObjectModelWithRefProps.md#objectmodelwithrefprops1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/Post.md b/samples/client/petstore/java/docs/paths/fakerefsstring/Post.md index 5ef61bea0e5..8586be22c86 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/Post.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakerefsstring.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakerefsstring.Post; +import org.openapijsonschematools.client.paths.fakerefsstring.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md index 99e817e40fa..20b8d640587 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 182ab3570a2..8fadd779761 100644 --- a/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakerefsstring/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema) +extends [StringSchema1](../../../../../../../components/schemas/StringSchema.md#stringschema) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [StringSchema.StringSchema1](../../../../../../../../../components/schemas/StringSchema.md#stringschema1) +extends [StringSchema.StringSchema1](../../../../../../../components/schemas/StringSchema.md#stringschema1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md index 71e144d57ba..2cd0d406ab3 100644 --- a/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md +++ b/samples/client/petstore/java/docs/paths/fakeresponsewithoutschema/Get.md @@ -36,28 +36,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.Get; +import org.openapijsonschematools.client.paths.fakeresponsewithoutschema.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md index 3a27ddf7502..c9832cb9a3f 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/Put.md @@ -39,28 +39,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.faketestqueryparamters.put.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.faketestqueryparamters.Put; +import org.openapijsonschematools.client.paths.faketestqueryparamters.put.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md index 40842e39a6f..bec63067e78 100644 --- a/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/faketestqueryparamters/put/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = 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 907122e32db..a4efd071e64 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema0.SchemaList0 validatedPayload = 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 6a2e61427fa..d0d8efab32e 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema1.SchemaList1 validatedPayload = 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 0ed2bffcb41..3357a64749a 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema2.SchemaList2 validatedPayload = 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 3dbe38be7bb..cede783379d 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema3.SchemaList3 validatedPayload = 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 704e8257d71..17c3da4dab2 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema4.SchemaList4 validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md index 6d8880074b4..35c1e1b7891 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploaddownloadfile.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md index 0f771dc3935..b26037cabf6 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeuploaddownloadfile/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationoctetstreamMediaType public record ApplicationoctetstreamMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | +| [ApplicationoctetstreamSchema.ApplicationoctetstreamSchema1](../../../../paths/fakeuploaddownloadfile/post/responses/code200response/content/applicationoctetstream/ApplicationoctetstreamSchema.md#applicationoctetstreamschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md index 7501fc1831a..218e1cd247c 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfile.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfile.Post; +import org.openapijsonschematools.client.paths.fakeuploadfile.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index cd01d5d72a2..21d6b7a79c7 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md index 6da88cddc29..8f882ed5315 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 99e81a1b57d..bb60c5776fb 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfile/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) +extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) +extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md index e3775d87065..570249e79f7 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/Post.md @@ -38,28 +38,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.fakeuploadfiles.post.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakeuploadfiles.Post; +import org.openapijsonschematools.client.paths.fakeuploadfiles.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index 63c29c0e197..64907a9f9cf 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -70,7 +70,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = @@ -183,7 +183,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation MultipartformdataSchema.MultipartformdataFilesList validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md index 5561008ef20..3afe4597cb4 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ApiResponseSchema1Boxed](../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 99e81a1b57d..bb60c5776fb 100644 --- a/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/fakeuploadfiles/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) +extends [ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) +extends [ApiResponseSchema.ApiResponseSchema1](../../../../../../../components/schemas/ApiResponseSchema.md#apiresponseschema1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md index 15119587928..179e8247d35 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/Get.md @@ -41,28 +41,33 @@ import org.openapijsonschematools.client.paths.fakewildcardresponses.get.respons import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code3XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code4XXResponse; import org.openapijsonschematools.client.paths.fakewildcardresponses.get.responses.Code5XXResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.fakewildcardresponses.Get; +import org.openapijsonschematools.client.paths.fakewildcardresponses.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md index e1fc46e7e9e..b2d2e8f2a08 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code1XXResponse.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code1xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md index 9164b31a669..6263ecaf4ac 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code200Response.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md index cc9edf98f9d..53389585be9 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code2XXResponse.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code2xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md index 804c9c06e9d..d939aac9315 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code3XXResponse.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code3xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md index 366207d60a3..2950af0a0fa 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code4XXResponse.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code4xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md index 15cfc46ba43..960ef4a79ad 100644 --- a/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md +++ b/samples/client/petstore/java/docs/paths/fakewildcardresponses/get/responses/Code5XXResponse.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/fakewildcardresponses/get/responses/code5xxresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody diff --git a/samples/client/petstore/java/docs/paths/foo/Get.md b/samples/client/petstore/java/docs/paths/foo/Get.md index 3b3249d5662..38db180aac1 100644 --- a/samples/client/petstore/java/docs/paths/foo/Get.md +++ b/samples/client/petstore/java/docs/paths/foo/Get.md @@ -35,27 +35,33 @@ import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer0; import org.openapijsonschematools.client.paths.foo.get.servers.FooGetServer1; import org.openapijsonschematools.client.paths.foo.get.responses.CodedefaultResponse; +import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; import org.openapijsonschematools.client.paths.foo.Get; +import org.openapijsonschematools.client.paths.foo.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new FooGetServer0(), - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .fooGetServerInfo( + new FooGetServerInfo.FooGetServerInfoBuilder() + .fooGetServer0(new FooGetServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md b/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md index 915469d5030..67aede6fd0e 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md +++ b/samples/client/petstore/java/docs/paths/foo/get/FooGetServerInfo.md @@ -5,12 +5,14 @@ public class FooGetServerInfo A class that provides a server, and any needed server info classes - a class that is a ServerProvider +- a builder for the ServerProvider - an enum class that stores server index values ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [FooGetServerInfo.FooGetServerInfo1](#foogetserverinfo1)
class that stores a server index | +| static class | [FooGetServerInfo.FooGetServerInfoBuilder](#foogetserverinfobuilder)
class that stores a server index | | enum | [FooGetServerInfo.ServerIndex](#serverindex)
class that stores a server index | ## FooGetServerInfo1 @@ -21,7 +23,6 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| FooGetServerInfo1()
Creates an instance using default server variable values | | FooGetServerInfo1(@Nullable [FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) server0,@Nullable [FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) server1)
Creates an instance using passed in servers | ### Field Summary @@ -35,6 +36,22 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | +## FooGetServerInfoBuilder + +a builder for [FooGetServerInfo1](#foogetserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| FooGetServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [FooGetServerInfoBuilder](#foogetserverinfobuilder) | fooGetServer0([FooGetServer0](../../../paths/foo/get/servers/FooGetServer0.md) server0)
sets the server | +| [FooGetServerInfoBuilder](#foogetserverinfobuilder) | fooGetServer1([FooGetServer1](../../../paths/foo/get/servers/FooGetServer1.md) server1)
sets the server | +| [FooGetServerInfo1](#foogetserverinfo1) | build() | + ## ServerIndex enum ServerIndex
diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md b/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md index 98cb993d9a0..3b6ba5ec6ac 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/CodedefaultResponse.md @@ -27,7 +27,7 @@ sealed interface that stores schema and encoding info ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -39,7 +39,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -58,12 +58,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[ApplicationjsonSchema1Boxed](../../../../paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1boxed) | body()
returns the body passed in in the constructor | ## CodedefaultResponse1 public static class CodedefaultResponse1
diff --git a/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md index b8f5aa4ff5e..e7695fd64d2 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.md @@ -61,7 +61,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = @@ -84,7 +84,7 @@ ApplicationjsonSchema.ApplicationjsonSchemaMap validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../../../components/schemas/Foo.md#foo1))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("string", [Foo.Foo1.class](../../../../../../../components/schemas/Foo.md#foo1))
)
| ### Method Summary | Modifier and Type | Method and Description | diff --git a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md index 8eaa0c30592..975f01a6c75 100644 --- a/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/paths/foo/get/servers/server1/Variables.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Variables.VariablesMap validatedPayload = @@ -192,7 +192,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Variables.Version.validate( diff --git a/samples/client/petstore/java/docs/paths/pet/Post.md b/samples/client/petstore/java/docs/paths/pet/Post.md index f23d6c37030..63af19b69b0 100644 --- a/samples/client/petstore/java/docs/paths/pet/Post.md +++ b/samples/client/petstore/java/docs/paths/pet/Post.md @@ -46,27 +46,33 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.pet.post.responses.Code200Response; import org.openapijsonschematools.client.paths.pet.post.responses.Code405Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.pet.Post; +import org.openapijsonschematools.client.paths.pet.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petPostSecurityInfoSecurityIndex(PetPostSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petPostSecurityRequirementObject0SecurityIndex(PetPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -75,7 +81,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/pet/Put.md b/samples/client/petstore/java/docs/paths/pet/Put.md index 26a031cc6ef..7591339e641 100644 --- a/samples/client/petstore/java/docs/paths/pet/Put.md +++ b/samples/client/petstore/java/docs/paths/pet/Put.md @@ -46,24 +46,30 @@ import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth import org.openapijsonschematools.client.paths.pet.put.responses.Code400Response; import org.openapijsonschematools.client.paths.pet.put.responses.Code404Response; import org.openapijsonschematools.client.paths.pet.put.responses.Code405Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.pet.Put; +import org.openapijsonschematools.client.paths.pet.put.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petPutSecurityInfoSecurityIndex(PetPutSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petPutSecurityRequirementObject0SecurityIndex(PetPutSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -72,7 +78,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/Get.md b/samples/client/petstore/java/docs/paths/petfindbystatus/Get.md index 3c051b1b538..cc3571ee859 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/Get.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/Get.md @@ -44,26 +44,33 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code200Response; import org.openapijsonschematools.client.paths.petfindbystatus.get.responses.Code400Response; +import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; import org.openapijsonschematools.client.paths.petfindbystatus.Get; +import org.openapijsonschematools.client.paths.petfindbystatus.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new PetfindbystatusServer0(), - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .petfindbystatusServerInfoServerIndex(PetfindbystatusServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .petfindbystatusServerInfo( + new PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder() + .petfindbystatusServer0(new PetfindbystatusServer0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .petfindbystatusServerInfoServerIndex(PetfindbystatusServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petfindbystatusGetSecurityInfoSecurityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petfindbystatusGetSecurityRequirementObject0SecurityIndex(PetfindbystatusGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -72,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md index 65da91a672e..fefcf6ae3de 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/PetfindbystatusServerInfo.md @@ -5,12 +5,14 @@ public class PetfindbystatusServerInfo A class that provides a server, and any needed server info classes - a class that is a ServerProvider +- a builder for the ServerProvider - an enum class that stores server index values ## Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfo1](#petfindbystatusserverinfo1)
class that stores a server index | +| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder)
class that stores a server index | | enum | [PetfindbystatusServerInfo.ServerIndex](#serverindex)
class that stores a server index | ## PetfindbystatusServerInfo1 @@ -21,7 +23,6 @@ A class that stores servers and allows one to be returned with a ServerIndex ins ### Constructor Summary | Constructor and Description | | --------------------------- | -| PetfindbystatusServerInfo1()
Creates an instance using default server variable values | | PetfindbystatusServerInfo1(@Nullable [PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0,@Nullable [PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
Creates an instance using passed in servers | ### Field Summary @@ -35,6 +36,22 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | +## PetfindbystatusServerInfoBuilder + +a builder for [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer0([PetfindbystatusServer0](../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0)
sets the server | +| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer1([PetfindbystatusServer1](../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
sets the server | +| [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) | build() | + ## ServerIndex enum ServerIndex
diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.md new file mode 100644 index 00000000000..7ca3f5adb40 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/PetfindbystatusGetServerInfo.md @@ -0,0 +1,62 @@ +# PetfindbystatusServerInfo +PetfindbystatusServerInfo.java + +public class PetfindbystatusServerInfo + +A class that provides a server, and any needed server info classes +- a class that is a ServerProvider +- a builder for the ServerProvider +- an enum class that stores server index values + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | --------------------- | +| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfo1](#petfindbystatusserverinfo1)
class that stores a server index | +| static class | [PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder)
class that stores a server index | +| enum | [PetfindbystatusServerInfo.ServerIndex](#serverindex)
class that stores a server index | + +## PetfindbystatusServerInfo1 +implements ServerProvider<[ServerIndex](#serverindex)>
+ +A class that stores servers and allows one to be returned with a ServerIndex instance + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServerInfo1(@Nullable [PetfindbystatusServer0](../../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0,@Nullable [PetfindbystatusServer1](../../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
Creates an instance using passed in servers | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| [PetfindbystatusServer0](../../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) | server0 | +| [PetfindbystatusServer1](../../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) | server1 | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Server | getServer([ServerIndex](#serverindex) serverIndex) | + +## PetfindbystatusServerInfoBuilder + +a builder for [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServerInfoBuilder()
Creates an instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer0([PetfindbystatusServer0](../../../paths/petfindbystatus/servers/PetfindbystatusServer0.md) server0)
sets the server | +| [PetfindbystatusServerInfoBuilder](#petfindbystatusserverinfobuilder) | petfindbystatusServer1([PetfindbystatusServer1](../../../paths/petfindbystatus/servers/PetfindbystatusServer1.md) server1)
sets the server | +| [PetfindbystatusServerInfo1](#petfindbystatusserverinfo1) | build() | + +## ServerIndex +enum ServerIndex
+ +### Enum Constant Summary +| Enum Constant And Description | +| ----------------------------- | +| SERVER_0
server 0 | +| SERVER_1
server 1 | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md index 224fc96768d..30fac1aadbc 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = 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 2f11dee490a..cbe534fe3c5 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 @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema0.SchemaList0 validatedPayload = @@ -167,7 +167,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Schema0.Items0.validate( diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer0.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer0.md new file mode 100644 index 00000000000..475550269b3 --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer0.md @@ -0,0 +1,14 @@ +# Server PetfindbystatusServer0 +public class PetfindbystatusServer0 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServer0()
Creates a server | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://path-server-test.petstore.local/v2" | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer1.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer1.md new file mode 100644 index 00000000000..ab28355949d --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/PetfindbystatusGetServer1.md @@ -0,0 +1,16 @@ +# Server PetfindbystatusServer1 +public class PetfindbystatusServer1 + +A class that stores a server url + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| PetfindbystatusServer1()
Creates a server using default values for variables | +| PetfindbystatusServer1([Variables.VariablesMap](../../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) variables)
Creates a server using input values for variables | + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | --------------------- | +| String | url = "https://petstore.swagger.io/{version}" | +| [Variables.VariablesMap](../../../../paths/petfindbystatus/servers/server1/Variables.md#variablesmap) | variables | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md new file mode 100644 index 00000000000..46cdc192bca --- /dev/null +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/get/servers/server1/Variables.md @@ -0,0 +1,355 @@ +# Variables +public class Variables
+ +A class that contains necessary nested +- schema classes (which validate payloads), extends JsonSchema +- sealed interfaces which store validated payloads, java version of a sum type +- boxed classes which store validated payloads, sealed permits class implementations +- classes to store validated map payloads, extends FrozenMap +- classes to build inputs for map payloads +- enum classes + +## Nested Class Summary +| Modifier and Type | Class and Description | +| ----------------- | ---------------------- | +| sealed interface | [Variables.Variables1Boxed](#variables1boxed)
sealed interface for validated payloads | +| record | [Variables.Variables1BoxedMap](#variables1boxedmap)
boxed class to store validated Map payloads | +| static class | [Variables.Variables1](#variables1)
schema class | +| static class | [Variables.VariablesMapBuilder](#variablesmapbuilder)
builder for Map payloads | +| static class | [Variables.VariablesMap](#variablesmap)
output class for Map payloads | +| sealed interface | [Variables.VersionBoxed](#versionboxed)
sealed interface for validated payloads | +| record | [Variables.VersionBoxedString](#versionboxedstring)
boxed class to store validated String payloads | +| static class | [Variables.Version](#version)
schema class | +| enum | [Variables.StringVersionEnums](#stringversionenums)
String enum | +| sealed interface | [Variables.AdditionalPropertiesBoxed](#additionalpropertiesboxed)
sealed interface for validated payloads | +| record | [Variables.AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid)
boxed class to store validated null payloads | +| record | [Variables.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
boxed class to store validated boolean payloads | +| record | [Variables.AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber)
boxed class to store validated Number payloads | +| record | [Variables.AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring)
boxed class to store validated String payloads | +| record | [Variables.AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist)
boxed class to store validated List payloads | +| record | [Variables.AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap)
boxed class to store validated Map payloads | +| static class | [Variables.AdditionalProperties](#additionalproperties)
schema class | + +## Variables1Boxed +public sealed interface Variables1Boxed
+permits
+[Variables1BoxedMap](#variables1boxedmap) + +sealed interface that stores validated payloads using boxed classes + +## Variables1BoxedMap +public record Variables1BoxedMap
+implements [Variables1Boxed](#variables1boxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| Variables1BoxedMap([VariablesMap](#variablesmap) data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Variables1 +public static class Variables1
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// Map validation +Variables.VariablesMap validatedPayload = + Variables.Variables1.validate( + new Variables.VariablesMapBuilder() + .version("v1") + + .build(), + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(Map.class) | +| Map> | properties = Map.ofEntries(
    new PropertyEntry("version", [Version.class](#version)))
)
| +| Set | required = Set.of(
    "version"
)
| +| Class | additionalProperties = [AdditionalProperties.class](#additionalproperties) | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap](#variablesmap) | validate([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [Variables1BoxedMap](#variables1boxedmap) | validateAndBox([Map<?, ?>](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| [Variables1Boxed](#variables1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## VariablesMap0Builder +public class VariablesMap0Builder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMap0Builder(Map instance)
Creates a builder that contains the passed instance | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Map | build()
Returns map input that should be used with Schema.validate | + +## VariablesMapBuilder +public class VariablesMapBuilder
+builder for `Map` + +A class that builds the Map input type + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VariablesMapBuilder()
Creates a builder that contains an empty map | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| [VariablesMap0Builder](#variablesmap0builder) | version(String value) | +| [VariablesMap0Builder](#variablesmap0builder) | version([StringVersionEnums](#stringversionenums) value) | + +## VariablesMap +public static class VariablesMap
+extends FrozenMap + +A class to store validated Map payloads + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| static [VariablesMap](#variablesmap) | of([Map](#variablesmapbuilder) arg, SchemaConfiguration configuration) | +| String | version()
must be one of ["v1", "v2"] if omitted the server will use the default value of v1 | + +## VersionBoxed +public sealed interface VersionBoxed
+permits
+[VersionBoxedString](#versionboxedstring) + +sealed interface that stores validated payloads using boxed classes + +## VersionBoxedString +public record VersionBoxedString
+implements [VersionBoxed](#versionboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| VersionBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## Version +public static class Version
+extends JsonSchema + +A schema class that validates payloads + +### Code Sample +``` +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; +import org.openapijsonschematools.client.configurations.SchemaConfiguration; +import org.openapijsonschematools.client.exceptions.ValidationException; +import org.openapijsonschematools.client.schemas.validation.MapUtils; +import org.openapijsonschematools.client.schemas.validation.FrozenList; +import org.openapijsonschematools.client.schemas.validation.FrozenMap; +import org.openapijsonschematools.client.paths.petfindbystatus.servers.server1.Variables; + +import java.util.Arrays; +import java.util.List; +import java.util.AbstractMap; + +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + +// String validation +String validatedPayload = Variables.Version.validate( + "v1", + configuration +); +``` + +### Field Summary +| Modifier and Type | Field and Description | +| ----------------- | ---------------------- | +| Set> | type = Set.of(
    String.class
)
| +| Set | enumValues = SetMaker.makeSet(
    "v1",
    "v2"
)
| +| @Nullable Object | defaultValue = "v1" | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | validate(String arg, SchemaConfiguration configuration) | +| String | validate([StringVersionEnums](#stringversionenums) arg, SchemaConfiguration configuration) | +| [VersionBoxedString](#versionboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) | +| [VersionBoxed](#versionboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | + +## StringVersionEnums +public enum StringVersionEnums
+extends `Enum` + +A class that stores String enum values + +### Enum Constant Summary +| Enum Constant | Description | +| ------------- | ----------- | +| V1 | value = "v1" | +| V2 | value = "v2" | + +## AdditionalPropertiesBoxed +public sealed interface AdditionalPropertiesBoxed
+permits
+[AdditionalPropertiesBoxedVoid](#additionalpropertiesboxedvoid), +[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean), +[AdditionalPropertiesBoxedNumber](#additionalpropertiesboxednumber), +[AdditionalPropertiesBoxedString](#additionalpropertiesboxedstring), +[AdditionalPropertiesBoxedList](#additionalpropertiesboxedlist), +[AdditionalPropertiesBoxedMap](#additionalpropertiesboxedmap) + +sealed interface that stores validated payloads using boxed classes + +## AdditionalPropertiesBoxedVoid +public record AdditionalPropertiesBoxedVoid
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated null payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedVoid(Void data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Void | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedBoolean +public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated boolean payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedBoolean(boolean data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| boolean | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedNumber +public record AdditionalPropertiesBoxedNumber
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Number payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedNumber(Number data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| Number | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedString +public record AdditionalPropertiesBoxedString
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated String payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedString(String data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| String | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedList +public record AdditionalPropertiesBoxedList
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated List payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedList(FrozenList<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenList<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalPropertiesBoxedMap +public record AdditionalPropertiesBoxedMap
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed) + +record that stores validated Map payloads, sealed permits implementation + +### Constructor Summary +| Constructor and Description | +| --------------------------- | +| AdditionalPropertiesBoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility | + +### Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +| FrozenMap<@Nullable Object> | data()
validated payload | +| @Nullable Object | getData()
validated payload | + +## AdditionalProperties +public static class AdditionalProperties
+extends NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 + +A schema class that validates payloads + +| Methods Inherited from class org.openapijsonschematools.client.schemas.NotAnyTypeJsonSchema.NotAnyTypeJsonSchema1 | +| ------------------------------------------------------------------ | +| validate | +| validateAndBox | diff --git a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md index 46cdc192bca..63d2b5d720b 100644 --- a/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/paths/petfindbystatus/servers/server1/Variables.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Variables.VariablesMap validatedPayload = @@ -192,7 +192,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Variables.Version.validate( diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/Get.md b/samples/client/petstore/java/docs/paths/petfindbytags/Get.md index 685df8f5a4b..28775d29957 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/Get.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/Get.md @@ -44,24 +44,30 @@ import org.openapijsonschematools.client.components.securityschemes.HttpSignatur import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code200Response; import org.openapijsonschematools.client.paths.petfindbytags.get.responses.Code400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petfindbytags.Get; +import org.openapijsonschematools.client.paths.petfindbytags.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petfindbytagsGetSecurityInfoSecurityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petfindbytagsGetSecurityRequirementObject0SecurityIndex(PetfindbytagsGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -70,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md index 353b6742d63..afd39beba64 100644 --- a/samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/petfindbytags/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = 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 78b2141e86b..8c3322c09f9 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 @@ -64,7 +64,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // List validation Schema0.SchemaList0 validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetid/Delete.md b/samples/client/petstore/java/docs/paths/petpetid/Delete.md index 1f5d91cb3a3..1ba8d30cd1c 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/Delete.md +++ b/samples/client/petstore/java/docs/paths/petpetid/Delete.md @@ -44,27 +44,33 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.delete.responses.Code400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.Delete; +import org.openapijsonschematools.client.paths.petpetid.delete.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petpetidDeleteSecurityInfoSecurityIndex(PetpetidDeleteSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetidDeleteSecurityRequirementObject0SecurityIndex(PetpetidDeleteSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -73,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetid/Get.md b/samples/client/petstore/java/docs/paths/petpetid/Get.md index 7716f7374fc..6ca724ecbd4 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/Get.md +++ b/samples/client/petstore/java/docs/paths/petpetid/Get.md @@ -44,27 +44,33 @@ import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.petpetid.get.responses.Code200Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.Code400Response; import org.openapijsonschematools.client.paths.petpetid.get.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.Get; +import org.openapijsonschematools.client.paths.petpetid.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petpetidGetSecurityInfoSecurityIndex(PetpetidGetSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetidGetSecurityRequirementObject0SecurityIndex(PetpetidGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -73,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetid/Post.md b/samples/client/petstore/java/docs/paths/petpetid/Post.md index ae19e21515d..15b4e3eff77 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/Post.md +++ b/samples/client/petstore/java/docs/paths/petpetid/Post.md @@ -44,27 +44,33 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetid.post.responses.Code405Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetid.Post; +import org.openapijsonschematools.client.paths.petpetid.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petpetidPostSecurityInfoSecurityIndex(PetpetidPostSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetidPostSecurityRequirementObject0SecurityIndex(PetpetidPostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -73,7 +79,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md index fdb626634a4..cdeba72d7d8 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/HeaderParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation HeaderParameters.HeaderParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.md index 59a4e55440b..6b382baec6c 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/delete/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md index 6ad378cebc7..6a08b235aa2 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response.md index ff7221bc9f8..933410bb71e 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/Code200Response.md @@ -30,7 +30,7 @@ sealed interface that stores schema and encoding info ## ApplicationxmlMediaType public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> class storing schema info for a specific contentType @@ -42,12 +42,12 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -59,7 +59,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -79,12 +79,12 @@ A record class to store response body for contentType="application/xml" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[Pet1Boxed](../../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationxmlSchema.[Pet1Boxed](../../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | +| ApplicationxmlSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | ## ApplicationjsonResponseBody public record ApplicationjsonResponseBody
implements [SealedResponseBody](#sealedresponsebody) @@ -94,12 +94,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Pet1Boxed](../../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Pet1Boxed](../../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Pet1Boxed](../../../../components/schemas/Pet.md#pet1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index 9a4a76df105..d5c13efb07f 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet) +extends [RefPet1](../../../../../../../components/schemas/RefPet.md#refpet) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [RefPet.RefPet1](../../../../../../../../../components/schemas/RefPet.md#refpet1) +extends [RefPet.RefPet1](../../../../../../../components/schemas/RefPet.md#refpet1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md index a5b62a5f42c..be8b3ac53c8 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -1,6 +1,6 @@ # ApplicationxmlSchema public class ApplicationxmlSchema
-extends [Pet1](../../../../../../../../../components/schemas/Pet.md#pet) +extends [Pet1](../../../../../../../components/schemas/Pet.md#pet) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
-extends [Pet.Pet1](../../../../../../../../../components/schemas/Pet.md#pet1) +extends [Pet.Pet1](../../../../../../../components/schemas/Pet.md#pet1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md index b21cd7131d5..5566ecf62a9 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md index 6fd2d65823d..7995fc75166 100644 --- a/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.md @@ -67,7 +67,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation ApplicationxwwwformurlencodedSchema.ApplicationxwwwformurlencodedSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md index b2cb8065834..45edecffc72 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/Post.md @@ -44,24 +44,30 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.PetstoreAuth; import org.openapijsonschematools.client.paths.petpetiduploadimage.post.responses.Code200Response; import org.openapijsonschematools.client.components.responses.successwithjsonapiresponse.SuccessWithJsonApiResponseHeadersSchema; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.petpetiduploadimage.Post; +import org.openapijsonschematools.client.paths.petpetiduploadimage.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .petpetiduploadimagePostSecurityInfoSecurityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .petpetiduploadimagePostSecurityRequirementObject0SecurityIndex(PetpetiduploadimagePostSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -70,7 +76,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md index 032584444d7..cf8f85caf67 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md index adb009d1327..fc5b38bda26 100644 --- a/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md +++ b/samples/client/petstore/java/docs/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.md @@ -66,7 +66,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation MultipartformdataSchema.MultipartformdataSchemaMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/solidus/Get.md b/samples/client/petstore/java/docs/paths/solidus/Get.md index e98e2da79f5..6068cd9b6f2 100644 --- a/samples/client/petstore/java/docs/paths/solidus/Get.md +++ b/samples/client/petstore/java/docs/paths/solidus/Get.md @@ -36,28 +36,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.solidus.get.responses.Code200Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.solidus.Get; +import org.openapijsonschematools.client.paths.solidus.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeinventory/Get.md b/samples/client/petstore/java/docs/paths/storeinventory/Get.md index c5bdf7b4831..f4469bfa327 100644 --- a/samples/client/petstore/java/docs/paths/storeinventory/Get.md +++ b/samples/client/petstore/java/docs/paths/storeinventory/Get.md @@ -40,27 +40,33 @@ import org.openapijsonschematools.client.securityschemes.SecurityScheme; import org.openapijsonschematools.client.components.securityschemes.ApiKey; import org.openapijsonschematools.client.paths.storeinventory.get.responses.Code200Response; import org.openapijsonschematools.client.components.responses.successinlinecontentandheader.SuccessInlineContentAndHeaderHeadersSchema; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeinventory.Get; +import org.openapijsonschematools.client.paths.storeinventory.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); List securitySchemes = new ArrayList(); securitySchemes.add( new ApiKey("someApiKey"); ); -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .storeinventoryGetSecurityInfoSecurityIndex(StoreinventoryGetSecurityInfo.SecurityIndex.SECURITY_0); +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .storeinventoryGetSecurityRequirementObject0SecurityIndex(StoreinventoryGetSecurityRequirementObject0.SecurityIndex.SECURITY_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -69,7 +75,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( securityIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorder/Post.md b/samples/client/petstore/java/docs/paths/storeorder/Post.md index e8b7295b563..02a949a945c 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/Post.md +++ b/samples/client/petstore/java/docs/paths/storeorder/Post.md @@ -41,28 +41,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorder.post.responses.Code200Response; import org.openapijsonschematools.client.paths.storeorder.post.responses.Code400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeorder.Post; +import org.openapijsonschematools.client.paths.storeorder.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response.md index a006b7adf34..27b46f7c421 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/Code200Response.md @@ -30,7 +30,7 @@ sealed interface that stores schema and encoding info ## ApplicationxmlMediaType public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> class storing schema info for a specific contentType @@ -42,12 +42,12 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -59,7 +59,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -79,12 +79,12 @@ A record class to store response body for contentType="application/xml" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationxmlSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | +| ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | ## ApplicationjsonResponseBody public record ApplicationjsonResponseBody
implements [SealedResponseBody](#sealedresponsebody) @@ -94,12 +94,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index ff8a34dc488..e069f9c21c8 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) +extends [Order1](../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) +extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md index 44082af145c..751649039e1 100644 --- a/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorder/post/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -1,6 +1,6 @@ # ApplicationxmlSchema public class ApplicationxmlSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) +extends [Order1](../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) +extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md b/samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md index e84a5ca3713..c0d7e4a4dff 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/Delete.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code400Response; import org.openapijsonschematools.client.paths.storeorderorderid.delete.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.Delete; +import org.openapijsonschematools.client.paths.storeorderorderid.delete.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/Get.md b/samples/client/petstore/java/docs/paths/storeorderorderid/Get.md index 21415665295..89a0141de5f 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/Get.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/Get.md @@ -41,28 +41,33 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code200Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code400Response; import org.openapijsonschematools.client.paths.storeorderorderid.get.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.storeorderorderid.Get; +import org.openapijsonschematools.client.paths.storeorderorderid.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md index 1a8aad7dbca..0708d9f7470 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/delete/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md index d327dd1fb6c..a6522456207 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md index ae105e78c2f..d6ff718bbf9 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/parameters/parameter0/Schema0.md @@ -57,7 +57,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // long validation long validatedPayload = Schema0.Schema01.validate( diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response.md index e6046ebc4dd..e1f587a4eb6 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/Code200Response.md @@ -30,7 +30,7 @@ sealed interface that stores schema and encoding info ## ApplicationxmlMediaType public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> class storing schema info for a specific contentType @@ -42,12 +42,12 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -59,7 +59,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -79,12 +79,12 @@ A record class to store response body for contentType="application/xml" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationxmlSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | +| ApplicationxmlSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | ## ApplicationjsonResponseBody public record ApplicationjsonResponseBody
implements [SealedResponseBody](#sealedresponsebody) @@ -94,12 +94,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[Order1Boxed](../../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[Order1Boxed](../../../../components/schemas/Order.md#order1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index ff8a34dc488..e069f9c21c8 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) +extends [Order1](../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) +extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md index 44082af145c..751649039e1 100644 --- a/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/storeorderorderid/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -1,6 +1,6 @@ # ApplicationxmlSchema public class ApplicationxmlSchema
-extends [Order1](../../../../../../../../../components/schemas/Order.md#order) +extends [Order1](../../../../../../../components/schemas/Order.md#order) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
-extends [Order.Order1](../../../../../../../../../components/schemas/Order.md#order1) +extends [Order.Order1](../../../../../../../components/schemas/Order.md#order1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/user/Post.md b/samples/client/petstore/java/docs/paths/user/Post.md index 7758fa2ea5b..06bbac3ed12 100644 --- a/samples/client/petstore/java/docs/paths/user/Post.md +++ b/samples/client/petstore/java/docs/paths/user/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.user.post.responses.CodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.user.Post; +import org.openapijsonschematools.client.paths.user.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md b/samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md index 4a59f7a599d..006267d3476 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md +++ b/samples/client/petstore/java/docs/paths/usercreatewitharray/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewitharray.post.responses.CodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewitharray.Post; +import org.openapijsonschematools.client.paths.usercreatewitharray.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md b/samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md index 1692dc67f66..90b283456b3 100644 --- a/samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md +++ b/samples/client/petstore/java/docs/paths/usercreatewithlist/Post.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.usercreatewithlist.post.responses.CodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.usercreatewithlist.Post; +import org.openapijsonschematools.client.paths.usercreatewithlist.post.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Post.Post1 apiClient = new Post.Post1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userlogin/Get.md b/samples/client/petstore/java/docs/paths/userlogin/Get.md index e7361ffeef9..54e6b3b874f 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/Get.md +++ b/samples/client/petstore/java/docs/paths/userlogin/Get.md @@ -41,28 +41,33 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogin.get.responses.Code200Response; import org.openapijsonschematools.client.paths.userlogin.get.responses.code200response.Code200ResponseHeadersSchema; import org.openapijsonschematools.client.paths.userlogin.get.responses.Code400Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userlogin.Get; +import org.openapijsonschematools.client.paths.userlogin.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md b/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md index c75ecf97a3e..c6893bbeb8b 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/QueryParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation QueryParameters.QueryParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response.md index 2e96bed4af2..0b06d1bdf31 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/Code200Response.md @@ -30,7 +30,7 @@ sealed interface that stores schema and encoding info ## ApplicationxmlMediaType public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> class storing schema info for a specific contentType @@ -42,12 +42,12 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -59,7 +59,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userlogin/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -103,7 +103,7 @@ A record class to store response body for contentType="application/json" ## Code200Response1 public static class Code200Response1
-extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap), [SealedMediaType](#sealedmediatype)> +extends ResponseDeserializer<[SealedResponseBody](#sealedresponsebody), [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap), [SealedMediaType](#sealedmediatype)> a class that deserializes responses @@ -120,4 +120,4 @@ a class that deserializes responses ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApiResponse<[SealedResponseBody](#sealedresponsebody), [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap)> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | +| ApiResponse<[SealedResponseBody](#sealedresponsebody), [Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap](../../../../paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md#code200responseheadersschemamap)> | deserialize(HttpResponse response, SchemaConfiguration configuration)
called by endpoint when deserialize responses | diff --git a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md index 37d8015087d..508abc4d1a2 100644 --- a/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md +++ b/samples/client/petstore/java/docs/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap validatedPayload = @@ -94,7 +94,7 @@ Code200ResponseHeadersSchema.Code200ResponseHeadersSchemaMap validatedPayload = | Modifier and Type | Field and Description | | ----------------- | ---------------------- | | Set> | type = Set.of(Map.class) | -| Map> | properties = Map.ofEntries(
    new PropertyEntry("X-Rate-Limit", [XRateLimitSchema.XRateLimitSchema1.class](../../../../../../paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md#xratelimitschema1)),
    new PropertyEntry("int32", [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1.class](../../../../../../components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md#int32jsoncontenttypeheaderschema1)),
    new PropertyEntry("X-Expires-After", [XExpiresAfterSchema.XExpiresAfterSchema1.class](../../../../../../paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md#xexpiresafterschema1)),
    new PropertyEntry("ref-content-schema-header", [StringWithValidation.StringWithValidation1.class](../../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("numberHeader", [NumberHeaderSchema.NumberHeaderSchema1.class](../../../../../../components/headers/numberheader/NumberHeaderSchema.md#numberheaderschema1))
)
| +| Map> | properties = Map.ofEntries(
    new PropertyEntry("X-Rate-Limit", [XRateLimitSchema.XRateLimitSchema1.class](../../../../../paths/userlogin/get/responses/code200response/headers/xratelimit/content/applicationjson/XRateLimitSchema.md#xratelimitschema1)),
    new PropertyEntry("int32", [Int32JsonContentTypeHeaderSchema.Int32JsonContentTypeHeaderSchema1.class](../../../../../components/headers/int32jsoncontenttypeheader/content/applicationjson/Int32JsonContentTypeHeaderSchema.md#int32jsoncontenttypeheaderschema1)),
    new PropertyEntry("X-Expires-After", [XExpiresAfterSchema.XExpiresAfterSchema1.class](../../../../../paths/userlogin/get/responses/code200response/headers/xexpiresafter/XExpiresAfterSchema.md#xexpiresafterschema1)),
    new PropertyEntry("ref-content-schema-header", [StringWithValidation.StringWithValidation1.class](../../../../../components/schemas/StringWithValidation.md#stringwithvalidation1)),
    new PropertyEntry("numberHeader", [NumberHeaderSchema.NumberHeaderSchema1.class](../../../../../components/headers/numberheader/NumberHeaderSchema.md#numberheaderschema1))
)
| | Set | required = Set.of(
    "X-Rate-Limit",
    "int32",
    "ref-content-schema-header"
)
| | Class | additionalProperties = [Code200ResponseAdditionalProperties.class](#code200responseadditionalproperties) | diff --git a/samples/client/petstore/java/docs/paths/userlogout/Get.md b/samples/client/petstore/java/docs/paths/userlogout/Get.md index ec1c6bf2d35..8a32d82824d 100644 --- a/samples/client/petstore/java/docs/paths/userlogout/Get.md +++ b/samples/client/petstore/java/docs/paths/userlogout/Get.md @@ -36,28 +36,33 @@ import org.openapijsonschematools.client.servers.Server0; import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userlogout.get.responses.CodedefaultResponse; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userlogout.Get; +import org.openapijsonschematools.client.paths.userlogout.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/Delete.md b/samples/client/petstore/java/docs/paths/userusername/Delete.md index dac43b70fae..d9918ee712b 100644 --- a/samples/client/petstore/java/docs/paths/userusername/Delete.md +++ b/samples/client/petstore/java/docs/paths/userusername/Delete.md @@ -40,28 +40,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.delete.responses.Code200Response; import org.openapijsonschematools.client.paths.userusername.delete.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.Delete; +import org.openapijsonschematools.client.paths.userusername.delete.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Delete.Delete1 apiClient = new Delete.Delete1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/Get.md b/samples/client/petstore/java/docs/paths/userusername/Get.md index e2dc2eeb1c6..00672634aab 100644 --- a/samples/client/petstore/java/docs/paths/userusername/Get.md +++ b/samples/client/petstore/java/docs/paths/userusername/Get.md @@ -41,28 +41,33 @@ import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.get.responses.Code200Response; import org.openapijsonschematools.client.paths.userusername.get.responses.Code400Response; import org.openapijsonschematools.client.paths.userusername.get.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.Get; +import org.openapijsonschematools.client.paths.userusername.get.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Get.Get1 apiClient = new Get.Get1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/Put.md b/samples/client/petstore/java/docs/paths/userusername/Put.md index 8f551a39d78..f8d1fa60840 100644 --- a/samples/client/petstore/java/docs/paths/userusername/Put.md +++ b/samples/client/petstore/java/docs/paths/userusername/Put.md @@ -44,28 +44,33 @@ import org.openapijsonschematools.client.servers.Server1; import org.openapijsonschematools.client.servers.Server2; import org.openapijsonschematools.client.paths.userusername.put.responses.Code400Response; import org.openapijsonschematools.client.paths.userusername.put.responses.Code404Response; +import org.openapijsonschematools.client.servers.RootServerInfo; import org.openapijsonschematools.client.paths.userusername.Put; +import org.openapijsonschematools.client.paths.userusername.put.Responses; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - new Server0(), - null, - null -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() - .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0); +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .rootServerInfo( + new RootServerInfo.RootServerInfoBuilder() + .server0(new Server0()) + .build() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() + .rootServerInfoServerIndex(RootServerInfo.ServerIndex.SERVER_0) + .build(); Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo serverIndexInfo, timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); Put.Put1 apiClient = new Put.Put1(apiConfiguration, schemaConfiguration); diff --git a/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md b/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md index 9f916c77293..412ad64ab3a 100644 --- a/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/delete/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md b/samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md index 2cb04864797..1e6b20064f5 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response.md index ed8276d063c..0096aa4e61d 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/Code200Response.md @@ -30,7 +30,7 @@ sealed interface that stores schema and encoding info ## ApplicationxmlMediaType public record ApplicationxmlMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1), Void> class storing schema info for a specific contentType @@ -42,12 +42,12 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | +| [ApplicationxmlSchema.ApplicationxmlSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md#applicationxmlschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## ApplicationjsonMediaType public record ApplicationjsonMediaType
-implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> +implements [SealedMediaType](#sealedmediatype), MediaType<[ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1), Void> class storing schema info for a specific contentType @@ -59,7 +59,7 @@ class storing schema info for a specific contentType ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | +| [ApplicationjsonSchema.ApplicationjsonSchema1](../../../../paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md#applicationjsonschema1) | schema()
the schema for this MediaType | | Void | encoding()
the encoding info | ## SealedResponseBody @@ -79,12 +79,12 @@ A record class to store response body for contentType="application/xml" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationxmlResponseBody(ApplicationxmlSchema.[User1Boxed](../../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | +| ApplicationxmlResponseBody(ApplicationxmlSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationxmlSchema.[User1Boxed](../../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | +| ApplicationxmlSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | ## ApplicationjsonResponseBody public record ApplicationjsonResponseBody
implements [SealedResponseBody](#sealedresponsebody) @@ -94,12 +94,12 @@ A record class to store response body for contentType="application/json" ### Constructor Summary | Constructor and Description | | --------------------------- | -| ApplicationjsonResponseBody(ApplicationjsonSchema.[User1Boxed](../../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | +| ApplicationjsonResponseBody(ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) body)
Creates an instance | ### Method Summary | Modifier and Type | Method and Description | | ----------------- | ---------------------- | -| ApplicationjsonSchema.[User1Boxed](../../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | +| ApplicationjsonSchema.[User1Boxed](../../../../components/schemas/User.md#user1boxed) | body()
returns the body passed in in the constructor | ## Code200Response1 public static class Code200Response1
diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md index a3f14691ea8..3433b43b8a4 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationjson/ApplicationjsonSchema.md @@ -1,6 +1,6 @@ # ApplicationjsonSchema public class ApplicationjsonSchema
-extends [User1](../../../../../../../../../components/schemas/User.md#user) +extends [User1](../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationjsonSchema1 public static class ApplicationjsonSchema1
-extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) +extends [User.User1](../../../../../../../components/schemas/User.md#user1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md index 28956f30c63..b5aa20f221c 100644 --- a/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md +++ b/samples/client/petstore/java/docs/paths/userusername/get/responses/code200response/content/applicationxml/ApplicationxmlSchema.md @@ -1,6 +1,6 @@ # ApplicationxmlSchema public class ApplicationxmlSchema
-extends [User1](../../../../../../../../../components/schemas/User.md#user) +extends [User1](../../../../../../../components/schemas/User.md#user) A class that contains necessary nested - schema classes (which validate payloads), extends JsonSchema @@ -14,6 +14,6 @@ A class that contains necessary nested ## ApplicationxmlSchema1 public static class ApplicationxmlSchema1
-extends [User.User1](../../../../../../../../../components/schemas/User.md#user1) +extends [User.User1](../../../../../../../components/schemas/User.md#user1) A schema class that validates payloads diff --git a/samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md b/samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md index e0f15960f22..bf2b807c3b8 100644 --- a/samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md +++ b/samples/client/petstore/java/docs/paths/userusername/put/PathParameters.md @@ -69,7 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation PathParameters.PathParametersMap validatedPayload = diff --git a/samples/client/petstore/java/docs/servers/server0/Variables.md b/samples/client/petstore/java/docs/servers/server0/Variables.md index 421da38ed92..ab6b62a39a3 100644 --- a/samples/client/petstore/java/docs/servers/server0/Variables.md +++ b/samples/client/petstore/java/docs/servers/server0/Variables.md @@ -78,7 +78,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Variables.VariablesMap validatedPayload = @@ -238,7 +238,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Variables.Port.validate( @@ -322,7 +322,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Variables.Server.validate( diff --git a/samples/client/petstore/java/docs/servers/server1/Variables.md b/samples/client/petstore/java/docs/servers/server1/Variables.md index c87595a4706..b612a497734 100644 --- a/samples/client/petstore/java/docs/servers/server1/Variables.md +++ b/samples/client/petstore/java/docs/servers/server1/Variables.md @@ -74,7 +74,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // Map validation Variables.VariablesMap validatedPayload = @@ -192,7 +192,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); // String validation String validatedPayload = Variables.Version.validate( diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java index b9ad3b615a8..daf1ac6bbd4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/RootServerInfo.java @@ -11,17 +11,11 @@ public class RootServerInfo { public static class RootServerInfo1 implements ServerProvider { - public final Server0 server0; - public final Server1 server1; - public final Server2 server2; - - public RootServerInfo1() { - server0 = new Server0(); - server1 = new Server1(); - server2 = new Server2(); - } + private final Server0 server0; + private final Server1 server1; + private final Server2 server2; - public RootServerInfo1( + RootServerInfo1( @Nullable Server0 server0, @Nullable Server1 server1, @Nullable Server2 server2 @@ -44,6 +38,37 @@ public Server getServer(ServerIndex serverIndex) { } } + public static class RootServerInfoBuilder { + private @Nullable Server0 server0; + private @Nullable Server1 server1; + private @Nullable Server2 server2; + + public RootServerInfoBuilder() {} + + public RootServerInfoBuilder server0(Server0 server0) { + this.server0 = server0; + return this; + } + + public RootServerInfoBuilder server1(Server1 server1) { + this.server1 = server1; + return this; + } + + public RootServerInfoBuilder server2(Server2 server2) { + this.server2 = server2; + return this; + } + + public RootServerInfo1 build() { + return new RootServerInfo1( + server0, + server1, + server2 + ); + } + } + public enum ServerIndex { SERVER_0, SERVER_1, diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java index 55abb17fdbd..360a46a1346 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/requestbodies/userarray/content/applicationjson/ApplicationjsonSchema.java @@ -113,7 +113,7 @@ public ApplicationjsonSchemaList validate(List arg, SchemaConfiguration confi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.java index f84e00f8370..cc291e51828 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/headerswithnobody/HeadersWithNoBodyHeadersSchema.java @@ -154,7 +154,7 @@ public HeadersWithNoBodyHeadersSchemaMap validate(Map arg, SchemaConfigura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java index 2d47eb20745..188641a094e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationjson/ApplicationjsonSchema.java @@ -114,7 +114,7 @@ public ApplicationjsonSchemaList validate(List arg, SchemaConfiguration confi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java index a04441ddc86..6529cd0dd0a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successfulxmlandjsonarrayofpet/content/applicationxml/ApplicationxmlSchema.java @@ -113,7 +113,7 @@ public ApplicationxmlSchemaList validate(List arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.java index 2c88c985d14..239beb71bb8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/SuccessInlineContentAndHeaderHeadersSchema.java @@ -154,7 +154,7 @@ public SuccessInlineContentAndHeaderHeadersSchemaMap validate(Map arg, Sch Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java index a6103068681..4e80cb11899 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successinlinecontentandheader/content/applicationjson/ApplicationjsonSchema.java @@ -153,7 +153,7 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.java index 1c691e76d47..230de7a475d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/responses/successwithjsonapiresponse/SuccessWithJsonApiResponseHeadersSchema.java @@ -491,7 +491,7 @@ public SuccessWithJsonApiResponseHeadersSchemaMap validate(Map arg, Schema Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 4fbba3d77fb..4de58060683 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 @@ -418,7 +418,7 @@ public AbstractStepMessageMap validate(Map arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 3426c014963..b2303743606 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 @@ -151,7 +151,7 @@ public MapPropertyMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -305,7 +305,7 @@ public AdditionalPropertiesMap validate(Map arg, SchemaConfiguration confi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -448,7 +448,7 @@ public MapOfMapPropertyMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -688,7 +688,7 @@ public MapWithUndeclaredPropertiesAnytype3Map validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -818,7 +818,7 @@ public EmptyMapMap validate(Map arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -972,7 +972,7 @@ public MapWithUndeclaredPropertiesStringMap validate(Map arg, SchemaConfig Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1368,7 +1368,7 @@ public AdditionalPropertiesClassMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 cd38c0e0ee1..bdbdb6c4a0c 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 @@ -209,7 +209,7 @@ public Schema0Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -312,7 +312,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -324,7 +324,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -336,7 +336,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -364,7 +364,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -407,7 +407,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -441,7 +441,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -690,7 +690,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -793,7 +793,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -805,7 +805,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -817,7 +817,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -845,7 +845,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -888,7 +888,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -922,7 +922,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1171,7 +1171,7 @@ public Schema2Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1272,7 +1272,7 @@ public static AdditionalPropertiesSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 2ed4a1f0360..af5d0247322 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 @@ -122,7 +122,7 @@ public AdditionalPropertiesList validate(List arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -273,7 +273,7 @@ public AdditionalPropertiesWithArrayOfEnumsMap validate(Map arg, SchemaCon Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 4a116392673..4b43d731120 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 @@ -173,7 +173,7 @@ public AddressMap validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 f65e1246b7b..20a074baff3 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 @@ -78,7 +78,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -286,7 +286,7 @@ public AnimalMap validate(Map arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 56c1faea7aa..a1851dce297 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 @@ -118,7 +118,7 @@ public AnimalFarmList validate(List arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 b93b1cd30eb..c848804a745 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 @@ -104,7 +104,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -116,7 +116,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -156,7 +156,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -199,7 +199,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -233,7 +233,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -389,7 +389,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -401,7 +401,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -413,7 +413,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -441,7 +441,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -484,7 +484,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -518,7 +518,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -674,7 +674,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -686,7 +686,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -698,7 +698,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -726,7 +726,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -769,7 +769,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -803,7 +803,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -959,7 +959,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -971,7 +971,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -983,7 +983,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1011,7 +1011,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1054,7 +1054,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1088,7 +1088,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1244,7 +1244,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1256,7 +1256,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1268,7 +1268,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1296,7 +1296,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1339,7 +1339,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1373,7 +1373,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1529,7 +1529,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1541,7 +1541,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1553,7 +1553,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1581,7 +1581,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1624,7 +1624,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1658,7 +1658,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1814,7 +1814,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1826,7 +1826,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1838,7 +1838,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1866,7 +1866,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1909,7 +1909,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1943,7 +1943,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2099,7 +2099,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2111,7 +2111,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2123,7 +2123,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2151,7 +2151,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2194,7 +2194,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -2228,7 +2228,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2384,7 +2384,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2396,7 +2396,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2408,7 +2408,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2436,7 +2436,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -2479,7 +2479,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -2513,7 +2513,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -3305,7 +3305,7 @@ public AnyTypeAndFormatMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java index e9ebdac6dd9..f6359fa6a6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotString.java @@ -120,7 +120,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -132,7 +132,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -144,7 +144,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -172,7 +172,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -215,7 +215,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -249,7 +249,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 bf0915b5b2d..af24309df3d 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 @@ -252,7 +252,7 @@ public ApiResponseMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 9903c1e079c..af713b6b595 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 @@ -69,7 +69,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -142,7 +142,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -332,7 +332,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -365,7 +365,7 @@ public AppleMap validate(Map arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 51f1827adc1..78bd0f9b51f 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 @@ -228,7 +228,7 @@ public AppleReqMap validate(Map arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 f103ccb7b11..c94b33b456c 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 @@ -166,7 +166,7 @@ public ArrayHoldingAnyTypeList validate(List arg, SchemaConfiguration configu Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 65ee5a9b86d..a1535dc821b 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 @@ -145,7 +145,7 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -267,7 +267,7 @@ public ArrayArrayNumberList validate(List arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -430,7 +430,7 @@ public ArrayOfArrayOfNumberOnlyMap validate(Map arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 d800ee9917b..9e734e20cd2 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 @@ -131,7 +131,7 @@ public ArrayOfEnumsList validate(List arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 60dbea4de6e..265bf8d3a7d 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 @@ -145,7 +145,7 @@ public ArrayNumberList validate(List arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -308,7 +308,7 @@ public ArrayOfNumberOnlyMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 bad14500fe5..5d285b70e4c 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 @@ -131,7 +131,7 @@ public ArrayOfStringList validate(List arg, SchemaConfiguration configuration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -279,7 +279,7 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -401,7 +401,7 @@ public ArrayArrayOfIntegerList validate(List arg, SchemaConfiguration configu Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -523,7 +523,7 @@ public ItemsList1 validate(List arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -645,7 +645,7 @@ public ArrayArrayOfModelList validate(List arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -862,7 +862,7 @@ public ArrayTestMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 c397a603a61..867ab0dc799 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 @@ -63,7 +63,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -223,7 +223,7 @@ public ArrayWithValidationsInItemsList validate(List arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 f314e9f312f..b5b5d614776 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 @@ -198,7 +198,7 @@ public BananaMap validate(Map arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 2e7fc44ef1e..4eb9b17c467 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 @@ -246,7 +246,7 @@ public BananaReqMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java index e62a21a1d0e..72288a40e46 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Bar.java @@ -62,7 +62,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 726452e88a7..05a1c19d1b0 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 @@ -82,7 +82,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -267,7 +267,7 @@ public BasquePigMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java index f9ac16b3542..02c9acce67a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/BooleanEnum.java @@ -76,7 +76,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 b36f13cc0c1..72c6f4264c8 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 @@ -359,7 +359,7 @@ public CapitalizationMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 1fd40713a14..4179781a6db 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 @@ -172,7 +172,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -284,7 +284,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -296,7 +296,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -308,7 +308,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -336,7 +336,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -379,7 +379,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -413,7 +413,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 cd5364ea788..19fc63d6ad9 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 @@ -78,7 +78,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -304,7 +304,7 @@ public CategoryMap validate(Map arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 2b56cafb84b..4ccac34248a 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 @@ -172,7 +172,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -284,7 +284,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -296,7 +296,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -308,7 +308,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -336,7 +336,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -379,7 +379,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -413,7 +413,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 21aab6cfc14..7dce00fc68c 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 @@ -182,7 +182,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -194,7 +194,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -234,7 +234,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -277,7 +277,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -311,7 +311,7 @@ public ClassModelMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 3585bd08508..a27d8b29117 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 @@ -169,7 +169,7 @@ public ClientMap validate(Map arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 0f19e634466..fd093488cbd 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 @@ -90,7 +90,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -258,7 +258,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -370,7 +370,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -394,7 +394,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -499,7 +499,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 d8a18a9d2f4..aaf28dcaed1 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 @@ -284,7 +284,7 @@ public Schema9List validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -474,7 +474,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -486,7 +486,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -498,7 +498,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -526,7 +526,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -569,7 +569,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -603,7 +603,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 71fd76caa3d..9f34e7bcbdd 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 @@ -166,7 +166,7 @@ public ComposedArrayList validate(List arg, SchemaConfiguration configuration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java index 7f34004555f..6e3fc408ed7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedBool.java @@ -73,7 +73,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java index 78930744e81..1cf5c72941d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNone.java @@ -73,7 +73,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java index ef87afd4d8d..44bb713e4de 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedNumber.java @@ -78,7 +78,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java index 9bfd1ae80f8..77d4eaa3c95 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedObject.java @@ -101,7 +101,7 @@ public static ComposedObject1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 44bb609f46b..fc81432334a 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 @@ -117,7 +117,7 @@ public static Schema4 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -291,7 +291,7 @@ public Schema5List validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -364,7 +364,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -481,7 +481,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -493,7 +493,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -505,7 +505,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -533,7 +533,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -576,7 +576,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -610,7 +610,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java index 6128d4db5d2..73214362cf6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ComposedString.java @@ -75,7 +75,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java index 7fd6478f0c7..863e5f2b21e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Currency.java @@ -80,7 +80,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 0c514e9658f..ee98f8d0540 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 @@ -82,7 +82,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -267,7 +267,7 @@ public DanishPigMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java index bfb26b9a3b0..54cebf78aeb 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeTest.java @@ -64,7 +64,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java index 85d0db19fd4..5fa8cfa1bf7 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidations.java @@ -66,7 +66,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java index 0f023d66745..37e06a9b8ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/DateWithValidations.java @@ -66,7 +66,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 26d207218d2..9b469609eee 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 @@ -172,7 +172,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -284,7 +284,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -296,7 +296,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -308,7 +308,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -336,7 +336,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -379,7 +379,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -413,7 +413,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 d243bcfc3b9..e3293fa3c6a 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 @@ -158,7 +158,7 @@ public ShapesList validate(List arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -619,7 +619,7 @@ public DrawingMap validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 073d51bc36f..5930e8dbfbb 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 @@ -86,7 +86,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -177,7 +177,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -309,7 +309,7 @@ public ArrayEnumList validate(List arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -505,7 +505,7 @@ public EnumArraysMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java index f757027a167..210abc01cb8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/EnumClass.java @@ -88,7 +88,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 57432f3a3d3..155cadddaa9 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 @@ -96,7 +96,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -189,7 +189,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -323,7 +323,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -454,7 +454,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1080,7 +1080,7 @@ public EnumTestMap validate(Map arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 fa4cfdf5976..f5699c5e806 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 @@ -90,7 +90,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -258,7 +258,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -370,7 +370,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -394,7 +394,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -499,7 +499,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 d91798f4e93..c5794a2d9f7 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 @@ -171,7 +171,7 @@ public FileMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 8a07f63e2b0..1062be1b530 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 @@ -118,7 +118,7 @@ public FilesList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -308,7 +308,7 @@ public FileSchemaTestClassMap validate(Map arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 5a2618fb230..afcc0f3e987 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 @@ -157,7 +157,7 @@ public FooMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 bf716753fe8..a45071394a6 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 @@ -86,7 +86,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -188,7 +188,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -282,7 +282,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -373,7 +373,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -462,7 +462,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -625,7 +625,7 @@ public ArrayWithUniqueItemsList validate(List arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -698,7 +698,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -837,7 +837,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -909,7 +909,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -982,7 +982,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -2001,7 +2001,7 @@ public FormatTestMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 b708fa92058..94185779141 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 @@ -226,7 +226,7 @@ public FromSchemaMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 7c50a1c4e59..3d3e7bf60af 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 @@ -194,7 +194,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -218,7 +218,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -246,7 +246,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -289,7 +289,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -323,7 +323,7 @@ public FruitMap validate(Map arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java index fccdffed6f0..a1720d94d2a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/FruitReq.java @@ -124,7 +124,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -136,7 +136,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -148,7 +148,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -176,7 +176,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -253,7 +253,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 4ad2cc51e1f..0a1fe1c941c 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 @@ -194,7 +194,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -218,7 +218,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -246,7 +246,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -289,7 +289,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -323,7 +323,7 @@ public GmFruitMap validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 bdc5b75784b..223d995f4c3 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 @@ -180,7 +180,7 @@ public GrandparentAnimalMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 3e7968f1b15..fa4852c33ee 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 @@ -207,7 +207,7 @@ public HasOnlyReadOnlyMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 b90d71cfee4..29bda788f94 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 @@ -73,7 +73,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -84,7 +84,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -266,7 +266,7 @@ public HealthCheckResultMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java index 3a76754f403..bb3b5f6f94f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnum.java @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java index 5d67f71f851..01e7b0c0d0b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBig.java @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java index c5618e31d67..68282e3aab5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValue.java @@ -125,7 +125,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java index ad176b517e1..e65c48c3cc5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValue.java @@ -137,7 +137,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java index d5382218276..aee3586634b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMax10.java @@ -65,7 +65,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java index 551489c98f8..279eb26879c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/IntegerMin15.java @@ -65,7 +65,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 01a61a254d0..0e6b7c0a3b6 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 @@ -90,7 +90,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -258,7 +258,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -370,7 +370,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -394,7 +394,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -499,7 +499,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 99f46b05498..80d5dd4829e 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 @@ -132,7 +132,7 @@ public ItemsList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 29a37d97892..0fb725c75f4 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 @@ -106,7 +106,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -118,7 +118,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -130,7 +130,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -158,7 +158,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -201,7 +201,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -235,7 +235,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -455,7 +455,7 @@ public JSONPatchRequestList validate(List arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 9e4766a2553..649ec94938e 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 @@ -122,7 +122,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -483,7 +483,7 @@ public JSONPatchRequestAddReplaceTestMap validate(Map arg, SchemaConfigura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 ccecd4a7216..d44c2b8b87a 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 @@ -120,7 +120,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -436,7 +436,7 @@ public JSONPatchRequestMoveCopyMap validate(Map arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 909c63f3f69..5268a23c3d3 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 @@ -107,7 +107,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -336,7 +336,7 @@ public JSONPatchRequestRemoveMap validate(Map arg, SchemaConfiguration con Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java index 79d6eb48d01..618c63acba2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Mammal.java @@ -112,7 +112,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -124,7 +124,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -136,7 +136,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -164,7 +164,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -207,7 +207,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -241,7 +241,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 5c949106062..cdc6630b72b 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 @@ -153,7 +153,7 @@ public AdditionalPropertiesMap validate(Map arg, SchemaConfiguration confi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -296,7 +296,7 @@ public MapMapOfStringMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -384,7 +384,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -537,7 +537,7 @@ public MapOfEnumStringMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -696,7 +696,7 @@ public DirectMapMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -942,7 +942,7 @@ public MapTestMap validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 745291751f4..d80e56f8f70 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 @@ -160,7 +160,7 @@ public MapMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -359,7 +359,7 @@ public MixedPropertiesAndAdditionalPropertiesClassMap validate(Map arg, Sc Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 8556b36f75d..cb104f6ed20 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 @@ -240,7 +240,7 @@ public MoneyMap validate(Map arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 49aeac11da7..60550891650 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 @@ -171,7 +171,7 @@ public MyObjectDtoMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 42f33135fe6..d0ef1c446fb 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 @@ -293,7 +293,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -305,7 +305,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -317,7 +317,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -345,7 +345,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -388,7 +388,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -422,7 +422,7 @@ public NameMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 0500ace9a46..cd4697afb7d 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 @@ -257,7 +257,7 @@ public NoAdditionalPropertiesMap validate(Map arg, SchemaConfiguration con Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 2bc824b0de6..2d8cd22efc4 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 @@ -80,7 +80,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -113,7 +113,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -206,7 +206,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -217,7 +217,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -324,7 +324,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -335,7 +335,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -439,7 +439,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -450,7 +450,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -541,7 +541,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -552,7 +552,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -641,7 +641,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -652,7 +652,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -741,7 +741,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -752,7 +752,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -884,7 +884,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -917,7 +917,7 @@ public ArrayNullablePropList validate(List arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1004,7 +1004,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1037,7 +1037,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1164,7 +1164,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1197,7 +1197,7 @@ public ArrayAndItemsNullablePropList validate(List arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1284,7 +1284,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1317,7 +1317,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1456,7 +1456,7 @@ public ArrayItemsNullableList validate(List arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1593,7 +1593,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1629,7 +1629,7 @@ public ObjectNullablePropMap validate(Map arg, SchemaConfiguration configu Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1717,7 +1717,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1750,7 +1750,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -1895,7 +1895,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1931,7 +1931,7 @@ public ObjectAndItemsNullablePropMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -2019,7 +2019,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -2052,7 +2052,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -2212,7 +2212,7 @@ public ObjectItemsNullableMap validate(Map arg, SchemaConfiguration config Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -2797,7 +2797,7 @@ public NullableClassMap validate(Map arg, SchemaConfiguration configuratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java index a182ebc1218..f27a0c68104 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NullableShape.java @@ -126,7 +126,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -138,7 +138,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -150,7 +150,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -178,7 +178,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -221,7 +221,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -255,7 +255,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 82eff01189c..a76fdde850e 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 @@ -70,7 +70,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -81,7 +81,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 40f333f0b3d..5628a1214f3 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 @@ -187,7 +187,7 @@ public NumberOnlyMap validate(Map arg, SchemaConfiguration configuration) Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java index b07cf3e7b49..12e6b1ceb4b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMax.java @@ -65,7 +65,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java index cf0349c6748..8798481a6db 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/NumberWithValidations.java @@ -65,7 +65,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 c3d1cef070f..2d90d9d1faa 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 @@ -183,7 +183,7 @@ public ObjWithRequiredPropsMap validate(Map arg, SchemaConfiguration confi Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 721ccab7180..03f37928cac 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 @@ -180,7 +180,7 @@ public ObjWithRequiredPropsBaseMap validate(Map arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 8709961bd10..4a1db998249 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 @@ -243,7 +243,7 @@ public ObjectModelWithArgAndArgsPropertiesMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 8e8d69563b7..aeadbe04628 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 @@ -231,7 +231,7 @@ public ObjectModelWithRefPropsMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 e9986ba7011..6ad9540bcde 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 @@ -258,7 +258,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -370,7 +370,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -394,7 +394,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -499,7 +499,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 0b6133faf4b..7ff7e586cc2 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 @@ -209,7 +209,7 @@ public ObjectWithCollidingPropertiesMap validate(Map arg, SchemaConfigurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 6581484c416..d3959527a9c 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 @@ -223,7 +223,7 @@ public ObjectWithDecimalPropertiesMap validate(Map arg, SchemaConfiguratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 9eaf1306f8d..e1d73018100 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 @@ -269,7 +269,7 @@ public ObjectWithDifficultlyNamedPropsMap validate(Map arg, SchemaConfigur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 c88a642a47a..1156e8c95a6 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 @@ -73,7 +73,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -176,7 +176,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -188,7 +188,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -200,7 +200,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -228,7 +228,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -271,7 +271,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -305,7 +305,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -565,7 +565,7 @@ public ObjectWithInlineCompositionPropertyMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 bb4e4b05c6d..5ac77d7e5d4 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 @@ -212,7 +212,7 @@ public ObjectWithInvalidNamedRefedPropertiesMap validate(Map arg, SchemaCo Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 fba62004ad4..9f05d44f3d2 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 @@ -219,7 +219,7 @@ public ObjectWithNonIntersectingValuesMap validate(Map arg, SchemaConfigur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 d8de4ce6a6e..8acf3e09db6 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 @@ -149,7 +149,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -182,7 +182,7 @@ public ArrayPropertyList validate(List arg, SchemaConfiguration configuration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -426,7 +426,7 @@ public ObjectWithOnlyOptionalPropsMap validate(Map arg, SchemaConfiguratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 fedaf9d618a..b1c838c0f86 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 @@ -169,7 +169,7 @@ public ObjectWithOptionalTestPropMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java index bc80404533f..261a556d362 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidations.java @@ -87,7 +87,7 @@ public static ObjectWithValidations1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 095cd4d6adb..7de79357434 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 @@ -134,7 +134,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -496,7 +496,7 @@ public OrderMap validate(Map arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 4029137d41a..008eec6ea65 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 @@ -143,7 +143,7 @@ public ResultsList validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -379,7 +379,7 @@ public PaginatedResultMyObjectDtoMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java index 891f53e085b..8599894ff6b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ParentPet.java @@ -89,7 +89,7 @@ public static ParentPet1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 6e0157524b4..ae49bb5c98d 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 @@ -157,7 +157,7 @@ public PhotoUrlsList validate(List arg, SchemaConfiguration configuration) th Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -245,7 +245,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -372,7 +372,7 @@ public TagsList validate(List arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -733,7 +733,7 @@ public PetMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java index 68fab7484ef..73335da0944 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Pig.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 3908dffc525..269901e5df7 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 @@ -198,7 +198,7 @@ public PlayerMap validate(Map arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 12a5cb206e6..7e5cbc7da01 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 @@ -171,7 +171,7 @@ public PublicKeyMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java index c46fd11c75b..43db2aaf4b1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Quadrilateral.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 2f2db60c5e5..ec918d5187b 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 @@ -91,7 +91,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -351,7 +351,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -363,7 +363,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -375,7 +375,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -403,7 +403,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -446,7 +446,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -480,7 +480,7 @@ public QuadrilateralInterfaceMap validate(Map arg, SchemaConfiguration con Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 6e3420867ce..8784a0ca2ff 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 @@ -207,7 +207,7 @@ public ReadOnlyFirstMap validate(Map arg, SchemaConfiguration configuratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 0e8d8c58426..37864f4a01b 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 @@ -235,7 +235,7 @@ public ReqPropsFromExplicitAddPropsMap validate(Map arg, SchemaConfigurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 88595c25790..1e1e905bd36 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 @@ -384,7 +384,7 @@ public ReqPropsFromTrueAddPropsMap validate(Map arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 26a7234885a..b1c8bf4a2f5 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 @@ -303,7 +303,7 @@ public ReqPropsFromUnsetAddPropsMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 e09c2c586b1..ebb46a42d41 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 @@ -188,7 +188,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -200,7 +200,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -212,7 +212,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -240,7 +240,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -283,7 +283,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -317,7 +317,7 @@ public ReturnMap validate(Map arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 3a6e545b3a1..d4f0af142dc 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 @@ -90,7 +90,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -258,7 +258,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -370,7 +370,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -394,7 +394,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -499,7 +499,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 ddd41386c39..e6139c4da81 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 @@ -227,7 +227,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -239,7 +239,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -251,7 +251,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -279,7 +279,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -322,7 +322,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -356,7 +356,7 @@ public Schema200ResponseMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 4b3d12e860b..3323e43e880 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 @@ -117,7 +117,7 @@ public SelfReferencingArrayModelList validate(List arg, SchemaConfiguration c Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 cf46cae884b..0d6cf96ea9d 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 @@ -174,7 +174,7 @@ public SelfReferencingObjectModelMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java index 707b7d06ec3..1a9201c6fe6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Shape.java @@ -111,7 +111,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -123,7 +123,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -135,7 +135,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -163,7 +163,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -206,7 +206,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -240,7 +240,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java index de5a61a3518..388bc3c5804 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/ShapeOrNull.java @@ -126,7 +126,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -138,7 +138,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -150,7 +150,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -178,7 +178,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -221,7 +221,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -255,7 +255,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 21e800bc477..e0e76218a64 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 @@ -90,7 +90,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -258,7 +258,7 @@ public Schema1Map validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -370,7 +370,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -382,7 +382,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -394,7 +394,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -422,7 +422,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -465,7 +465,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -499,7 +499,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java index 8718a67dee6..9e9d3b17d17 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/SomeObject.java @@ -110,7 +110,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -122,7 +122,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -134,7 +134,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -162,7 +162,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -205,7 +205,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -239,7 +239,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 a215bad464d..53ac33efe31 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 @@ -171,7 +171,7 @@ public SpecialModelnameMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 3cd9d77465b..bed1c3338bc 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 @@ -157,7 +157,7 @@ public StringBooleanMapMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 75aa221d691..176016fc7cc 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 @@ -113,7 +113,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -124,7 +124,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java index 995121cb014..96e3eee226b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValue.java @@ -84,7 +84,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java index 8cb16f298db..9771f084f29 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/StringWithValidation.java @@ -61,7 +61,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 6b1b1a88433..91d96c564f9 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 @@ -226,7 +226,7 @@ public TagMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java index 3bc2f282022..6c59d9ce8c0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/Triangle.java @@ -112,7 +112,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -124,7 +124,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -136,7 +136,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -164,7 +164,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -207,7 +207,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -241,7 +241,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 56a2cbfeeb5..da31ba05dc9 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 @@ -91,7 +91,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -351,7 +351,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -363,7 +363,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -375,7 +375,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -403,7 +403,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -446,7 +446,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -480,7 +480,7 @@ public TriangleInterfaceMap validate(Map arg, SchemaConfiguration configur Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java index 8455abea757..d3cb5ec4d9b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/components/schemas/UUIDString.java @@ -63,7 +63,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 ff051614480..e799c5ef168 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 @@ -184,7 +184,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -217,7 +217,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -352,7 +352,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -364,7 +364,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -376,7 +376,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -404,7 +404,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -447,7 +447,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -481,7 +481,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -1190,7 +1190,7 @@ public UserMap validate(Map arg, SchemaConfiguration configuration) throws Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 10d89abd9fd..610b3b0f7af 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 @@ -105,7 +105,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -345,7 +345,7 @@ public WhaleMap validate(Map arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 0b9d57cfa03..c5fd1a9e37e 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 @@ -98,7 +98,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -187,7 +187,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -475,7 +475,7 @@ public ZebraMap validate(Map arg, SchemaConfiguration configuration) throw Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java index 3413af1911e..43ae0975fe1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/ApiConfiguration.java @@ -1,16 +1,15 @@ package org.openapijsonschematools.client.configurations; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; import org.openapijsonschematools.client.securityrequirementobjects.SecurityRequirementObject; import org.openapijsonschematools.client.servers.Server; -import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.foo.get.FooGetServerInfo; import org.openapijsonschematools.client.paths.petfindbystatus.PetfindbystatusServerInfo; +import org.openapijsonschematools.client.RootServerInfo; import org.openapijsonschematools.client.paths.fake.delete.FakeDeleteSecurityInfo; import org.openapijsonschematools.client.paths.fake.post.FakePostSecurityInfo; +import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.fakemultiplesecurities.get.FakemultiplesecuritiesGetSecurityInfo; import org.openapijsonschematools.client.paths.fakepetiduploadimagewithrequiredfile.post.FakepetiduploadimagewithrequiredfilePostSecurityInfo; -import org.openapijsonschematools.client.paths.fakeclassnametest.patch.FakeclassnametestPatchSecurityInfo; import org.openapijsonschematools.client.paths.pet.post.PetPostSecurityInfo; import org.openapijsonschematools.client.paths.pet.put.PetPutSecurityInfo; import org.openapijsonschematools.client.paths.petfindbystatus.get.PetfindbystatusGetSecurityInfo; @@ -21,7 +20,6 @@ import org.openapijsonschematools.client.paths.petpetiduploadimage.post.PetpetiduploadimagePostSecurityInfo; import org.openapijsonschematools.client.paths.storeinventory.get.StoreinventoryGetSecurityInfo; import org.openapijsonschematools.client.securityschemes.SecurityScheme; -import org.openapijsonschematools.client.exceptions.UnsetPropertyException; import org.checkerframework.checker.nullness.qual.Nullable; import java.time.Duration; @@ -39,10 +37,10 @@ public class ApiConfiguration { private final Map, SecurityScheme> securitySchemeInfo; public ApiConfiguration() { - serverInfo = new ServerInfo(); - serverIndexInfo = new ServerIndexInfo(); + serverInfo = new ServerInfoBuilder().build(); + serverIndexInfo = new ServerIndexInfoBuilder().build(); securityInfo = new SecurityInfo(); - securityIndexInfo = new SecurityIndexInfo(); + securityIndexInfo = new SecurityIndexInfoBuilder().build(); securitySchemeInfo = new HashMap<>(); timeout = null; } @@ -60,68 +58,101 @@ public ApiConfiguration(ServerInfo serverInfo, ServerIndexInfo serverIndexInfo, } public static class ServerInfo { - protected final RootServerInfo.RootServerInfo1 rootServerInfo; - protected final FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo; - protected final PetfindbystatusServerInfo.PetfindbystatusServerInfo1 petfindbystatusServerInfo; + final FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo; + final PetfindbystatusServerInfo.PetfindbystatusServerInfo1 petfindbystatusServerInfo; + final RootServerInfo.RootServerInfo1 rootServerInfo; - public ServerInfo() { - rootServerInfo = new RootServerInfo.RootServerInfo1(); - fooGetServerInfo = new FooGetServerInfo.FooGetServerInfo1(); - petfindbystatusServerInfo = new PetfindbystatusServerInfo.PetfindbystatusServerInfo1(); - } - - public ServerInfo( - RootServerInfo. @Nullable RootServerInfo1 rootServerInfo, + ServerInfo( FooGetServerInfo. @Nullable FooGetServerInfo1 fooGetServerInfo, - PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo + PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo, + RootServerInfo. @Nullable RootServerInfo1 rootServerInfo ) { - this.rootServerInfo = Objects.requireNonNullElseGet(rootServerInfo, RootServerInfo.RootServerInfo1::new); - this.fooGetServerInfo = Objects.requireNonNullElseGet(fooGetServerInfo, FooGetServerInfo.FooGetServerInfo1::new); - this.petfindbystatusServerInfo = Objects.requireNonNullElseGet(petfindbystatusServerInfo, PetfindbystatusServerInfo.PetfindbystatusServerInfo1::new); + this.fooGetServerInfo = Objects.requireNonNullElse(fooGetServerInfo, new FooGetServerInfo.FooGetServerInfoBuilder().build()); + this.petfindbystatusServerInfo = Objects.requireNonNullElse(petfindbystatusServerInfo, new PetfindbystatusServerInfo.PetfindbystatusServerInfoBuilder().build()); + this.rootServerInfo = Objects.requireNonNullElse(rootServerInfo, new RootServerInfo.RootServerInfoBuilder().build()); } } - public static class ServerIndexInfo { - protected RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; - protected FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex; - protected PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex; - public ServerIndexInfo() {} + public static class ServerInfoBuilder { + private FooGetServerInfo. @Nullable FooGetServerInfo1 fooGetServerInfo; + private PetfindbystatusServerInfo. @Nullable PetfindbystatusServerInfo1 petfindbystatusServerInfo; + private RootServerInfo. @Nullable RootServerInfo1 rootServerInfo; + public ServerInfoBuilder() {} - public ServerIndexInfo rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { - this.rootServerInfoServerIndex = serverIndex; + public ServerInfoBuilder fooGetServerInfo(FooGetServerInfo.FooGetServerInfo1 fooGetServerInfo) { + this.fooGetServerInfo = fooGetServerInfo; + return this; + } + + public ServerInfoBuilder petfindbystatusServerInfo(PetfindbystatusServerInfo.PetfindbystatusServerInfo1 petfindbystatusServerInfo) { + this.petfindbystatusServerInfo = petfindbystatusServerInfo; + return this; + } + + public ServerInfoBuilder rootServerInfo(RootServerInfo.RootServerInfo1 rootServerInfo) { + this.rootServerInfo = rootServerInfo; return this; } - public ServerIndexInfo fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex serverIndex) { + public ServerInfo build() { + return new ServerInfo( + fooGetServerInfo, + petfindbystatusServerInfo, + rootServerInfo + ); + } + } + + public static class ServerIndexInfo { + final FooGetServerInfo.ServerIndex fooGetServerInfoServerIndex; + final PetfindbystatusServerInfo.ServerIndex petfindbystatusServerInfoServerIndex; + final RootServerInfo.ServerIndex rootServerInfoServerIndex; + + ServerIndexInfo( + FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex, + PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex, + RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex + ) { + this.fooGetServerInfoServerIndex = Objects.requireNonNullElse(fooGetServerInfoServerIndex, FooGetServerInfo.ServerIndex.SERVER_0); + this.petfindbystatusServerInfoServerIndex = Objects.requireNonNullElse(petfindbystatusServerInfoServerIndex, PetfindbystatusServerInfo.ServerIndex.SERVER_0); + this.rootServerInfoServerIndex = Objects.requireNonNullElse(rootServerInfoServerIndex, RootServerInfo.ServerIndex.SERVER_0); + } + } + + public static class ServerIndexInfoBuilder { + private FooGetServerInfo. @Nullable ServerIndex fooGetServerInfoServerIndex; + private PetfindbystatusServerInfo. @Nullable ServerIndex petfindbystatusServerInfoServerIndex; + private RootServerInfo. @Nullable ServerIndex rootServerInfoServerIndex; + public ServerIndexInfoBuilder() {} + + public ServerIndexInfoBuilder fooGetServerInfoServerIndex(FooGetServerInfo.ServerIndex serverIndex) { this.fooGetServerInfoServerIndex = serverIndex; return this; } - public ServerIndexInfo petfindbystatusServerInfoServerIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { + public ServerIndexInfoBuilder petfindbystatusServerInfoServerIndex(PetfindbystatusServerInfo.ServerIndex serverIndex) { this.petfindbystatusServerInfoServerIndex = serverIndex; return this; } - } - public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { - var serverProvider = serverInfo.rootServerInfo; - if (serverIndex == null) { - RootServerInfo. @Nullable ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; - if (configServerIndex == null) { - throw new RuntimeException("rootServerInfoServerIndex is unset"); - } - return serverProvider.getServer(configServerIndex); + public ServerIndexInfoBuilder rootServerInfoServerIndex(RootServerInfo.ServerIndex serverIndex) { + this.rootServerInfoServerIndex = serverIndex; + return this; + } + + public ServerIndexInfo build() { + return new ServerIndexInfo( + fooGetServerInfoServerIndex, + petfindbystatusServerInfoServerIndex, + rootServerInfoServerIndex + ); } - return serverProvider.getServer(serverIndex); } public Server getServer(FooGetServerInfo. @Nullable ServerIndex serverIndex) { var serverProvider = serverInfo.fooGetServerInfo; if (serverIndex == null) { - FooGetServerInfo. @Nullable ServerIndex configServerIndex = serverIndexInfo.fooGetServerInfoServerIndex; - if (configServerIndex == null) { - throw new RuntimeException("fooGetServerInfoServerIndex is unset"); - } + FooGetServerInfo.ServerIndex configServerIndex = serverIndexInfo.fooGetServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); @@ -130,10 +161,16 @@ public Server getServer(FooGetServerInfo. @Nullable ServerIndex serverIndex) { public Server getServer(PetfindbystatusServerInfo. @Nullable ServerIndex serverIndex) { var serverProvider = serverInfo.petfindbystatusServerInfo; if (serverIndex == null) { - PetfindbystatusServerInfo. @Nullable ServerIndex configServerIndex = serverIndexInfo.petfindbystatusServerInfoServerIndex; - if (configServerIndex == null) { - throw new RuntimeException("petfindbystatusServerInfoServerIndex is unset"); - } + PetfindbystatusServerInfo.ServerIndex configServerIndex = serverIndexInfo.petfindbystatusServerInfoServerIndex; + return serverProvider.getServer(configServerIndex); + } + return serverProvider.getServer(serverIndex); + } + + public Server getServer(RootServerInfo. @Nullable ServerIndex serverIndex) { + var serverProvider = serverInfo.rootServerInfo; + if (serverIndex == null) { + RootServerInfo.ServerIndex configServerIndex = serverIndexInfo.rootServerInfoServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); @@ -142,9 +179,9 @@ public Server getServer(PetfindbystatusServerInfo. @Nullable ServerIndex serverI public static class SecurityInfo { protected final FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1 fakeDeleteSecurityInfo; protected final FakePostSecurityInfo.FakePostSecurityInfo1 fakePostSecurityInfo; + protected final FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1 fakeclassnametestPatchSecurityInfo; protected final FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1 fakemultiplesecuritiesGetSecurityInfo; protected final FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1 fakepetiduploadimagewithrequiredfilePostSecurityInfo; - protected final FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1 fakeclassnametestPatchSecurityInfo; protected final PetPostSecurityInfo.PetPostSecurityInfo1 petPostSecurityInfo; protected final PetPutSecurityInfo.PetPutSecurityInfo1 petPutSecurityInfo; protected final PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1 petfindbystatusGetSecurityInfo; @@ -158,9 +195,9 @@ public static class SecurityInfo { public SecurityInfo() { this.fakeDeleteSecurityInfo = new FakeDeleteSecurityInfo.FakeDeleteSecurityInfo1(); this.fakePostSecurityInfo = new FakePostSecurityInfo.FakePostSecurityInfo1(); + this.fakeclassnametestPatchSecurityInfo = new FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1(); this.fakemultiplesecuritiesGetSecurityInfo = new FakemultiplesecuritiesGetSecurityInfo.FakemultiplesecuritiesGetSecurityInfo1(); this.fakepetiduploadimagewithrequiredfilePostSecurityInfo = new FakepetiduploadimagewithrequiredfilePostSecurityInfo.FakepetiduploadimagewithrequiredfilePostSecurityInfo1(); - this.fakeclassnametestPatchSecurityInfo = new FakeclassnametestPatchSecurityInfo.FakeclassnametestPatchSecurityInfo1(); this.petPostSecurityInfo = new PetPostSecurityInfo.PetPostSecurityInfo1(); this.petPutSecurityInfo = new PetPutSecurityInfo.PetPutSecurityInfo1(); this.petfindbystatusGetSecurityInfo = new PetfindbystatusGetSecurityInfo.PetfindbystatusGetSecurityInfo1(); @@ -174,101 +211,165 @@ public SecurityInfo() { } public static class SecurityIndexInfo { - public FakeDeleteSecurityInfo. @Nullable SecurityIndex fakeDeleteSecurityInfoSecurityIndex; - public FakePostSecurityInfo. @Nullable SecurityIndex fakePostSecurityInfoSecurityIndex; - public FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex fakemultiplesecuritiesGetSecurityInfoSecurityIndex; - public FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex; - public FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex fakeclassnametestPatchSecurityInfoSecurityIndex; - public PetPostSecurityInfo. @Nullable SecurityIndex petPostSecurityInfoSecurityIndex; - public PetPutSecurityInfo. @Nullable SecurityIndex petPutSecurityInfoSecurityIndex; - public PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex petfindbystatusGetSecurityInfoSecurityIndex; - public PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex petfindbytagsGetSecurityInfoSecurityIndex; - public PetpetidDeleteSecurityInfo. @Nullable SecurityIndex petpetidDeleteSecurityInfoSecurityIndex; - public PetpetidGetSecurityInfo. @Nullable SecurityIndex petpetidGetSecurityInfoSecurityIndex; - public PetpetidPostSecurityInfo. @Nullable SecurityIndex petpetidPostSecurityInfoSecurityIndex; - public PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex petpetiduploadimagePostSecurityInfoSecurityIndex; - public StoreinventoryGetSecurityInfo. @Nullable SecurityIndex storeinventoryGetSecurityInfoSecurityIndex; - - public SecurityIndexInfo() {} - - public SecurityIndexInfo fakeDeleteSecurityInfoSecurityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { + final FakeDeleteSecurityInfo.SecurityIndex fakeDeleteSecurityInfoSecurityIndex; + final FakePostSecurityInfo.SecurityIndex fakePostSecurityInfoSecurityIndex; + final FakeclassnametestPatchSecurityInfo.SecurityIndex fakeclassnametestPatchSecurityInfoSecurityIndex; + final FakemultiplesecuritiesGetSecurityInfo.SecurityIndex fakemultiplesecuritiesGetSecurityInfoSecurityIndex; + final FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex; + final PetPostSecurityInfo.SecurityIndex petPostSecurityInfoSecurityIndex; + final PetPutSecurityInfo.SecurityIndex petPutSecurityInfoSecurityIndex; + final PetfindbystatusGetSecurityInfo.SecurityIndex petfindbystatusGetSecurityInfoSecurityIndex; + final PetfindbytagsGetSecurityInfo.SecurityIndex petfindbytagsGetSecurityInfoSecurityIndex; + final PetpetidDeleteSecurityInfo.SecurityIndex petpetidDeleteSecurityInfoSecurityIndex; + final PetpetidGetSecurityInfo.SecurityIndex petpetidGetSecurityInfoSecurityIndex; + final PetpetidPostSecurityInfo.SecurityIndex petpetidPostSecurityInfoSecurityIndex; + final PetpetiduploadimagePostSecurityInfo.SecurityIndex petpetiduploadimagePostSecurityInfoSecurityIndex; + final StoreinventoryGetSecurityInfo.SecurityIndex storeinventoryGetSecurityInfoSecurityIndex; + + SecurityIndexInfo( + FakeDeleteSecurityInfo. @Nullable SecurityIndex fakeDeleteSecurityInfoSecurityIndex, + FakePostSecurityInfo. @Nullable SecurityIndex fakePostSecurityInfoSecurityIndex, + FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex fakeclassnametestPatchSecurityInfoSecurityIndex, + FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex fakemultiplesecuritiesGetSecurityInfoSecurityIndex, + FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex, + PetPostSecurityInfo. @Nullable SecurityIndex petPostSecurityInfoSecurityIndex, + PetPutSecurityInfo. @Nullable SecurityIndex petPutSecurityInfoSecurityIndex, + PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex petfindbystatusGetSecurityInfoSecurityIndex, + PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex petfindbytagsGetSecurityInfoSecurityIndex, + PetpetidDeleteSecurityInfo. @Nullable SecurityIndex petpetidDeleteSecurityInfoSecurityIndex, + PetpetidGetSecurityInfo. @Nullable SecurityIndex petpetidGetSecurityInfoSecurityIndex, + PetpetidPostSecurityInfo. @Nullable SecurityIndex petpetidPostSecurityInfoSecurityIndex, + PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex petpetiduploadimagePostSecurityInfoSecurityIndex, + StoreinventoryGetSecurityInfo. @Nullable SecurityIndex storeinventoryGetSecurityInfoSecurityIndex + ) { + this.fakeDeleteSecurityInfoSecurityIndex = Objects.requireNonNullElse(fakeDeleteSecurityInfoSecurityIndex, FakeDeleteSecurityInfo.SecurityIndex.SECURITY_0); + this.fakePostSecurityInfoSecurityIndex = Objects.requireNonNullElse(fakePostSecurityInfoSecurityIndex, FakePostSecurityInfo.SecurityIndex.SECURITY_0); + this.fakeclassnametestPatchSecurityInfoSecurityIndex = Objects.requireNonNullElse(fakeclassnametestPatchSecurityInfoSecurityIndex, FakeclassnametestPatchSecurityInfo.SecurityIndex.SECURITY_0); + this.fakemultiplesecuritiesGetSecurityInfoSecurityIndex = Objects.requireNonNullElse(fakemultiplesecuritiesGetSecurityInfoSecurityIndex, FakemultiplesecuritiesGetSecurityInfo.SecurityIndex.SECURITY_0); + this.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex = Objects.requireNonNullElse(fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex, FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex.SECURITY_0); + this.petPostSecurityInfoSecurityIndex = Objects.requireNonNullElse(petPostSecurityInfoSecurityIndex, PetPostSecurityInfo.SecurityIndex.SECURITY_0); + this.petPutSecurityInfoSecurityIndex = Objects.requireNonNullElse(petPutSecurityInfoSecurityIndex, PetPutSecurityInfo.SecurityIndex.SECURITY_0); + this.petfindbystatusGetSecurityInfoSecurityIndex = Objects.requireNonNullElse(petfindbystatusGetSecurityInfoSecurityIndex, PetfindbystatusGetSecurityInfo.SecurityIndex.SECURITY_0); + this.petfindbytagsGetSecurityInfoSecurityIndex = Objects.requireNonNullElse(petfindbytagsGetSecurityInfoSecurityIndex, PetfindbytagsGetSecurityInfo.SecurityIndex.SECURITY_0); + this.petpetidDeleteSecurityInfoSecurityIndex = Objects.requireNonNullElse(petpetidDeleteSecurityInfoSecurityIndex, PetpetidDeleteSecurityInfo.SecurityIndex.SECURITY_0); + this.petpetidGetSecurityInfoSecurityIndex = Objects.requireNonNullElse(petpetidGetSecurityInfoSecurityIndex, PetpetidGetSecurityInfo.SecurityIndex.SECURITY_0); + this.petpetidPostSecurityInfoSecurityIndex = Objects.requireNonNullElse(petpetidPostSecurityInfoSecurityIndex, PetpetidPostSecurityInfo.SecurityIndex.SECURITY_0); + this.petpetiduploadimagePostSecurityInfoSecurityIndex = Objects.requireNonNullElse(petpetiduploadimagePostSecurityInfoSecurityIndex, PetpetiduploadimagePostSecurityInfo.SecurityIndex.SECURITY_0); + this.storeinventoryGetSecurityInfoSecurityIndex = Objects.requireNonNullElse(storeinventoryGetSecurityInfoSecurityIndex, StoreinventoryGetSecurityInfo.SecurityIndex.SECURITY_0); + } + } + + public static class SecurityIndexInfoBuilder { + private FakeDeleteSecurityInfo. @Nullable SecurityIndex fakeDeleteSecurityInfoSecurityIndex; + private FakePostSecurityInfo. @Nullable SecurityIndex fakePostSecurityInfoSecurityIndex; + private FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex fakeclassnametestPatchSecurityInfoSecurityIndex; + private FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex fakemultiplesecuritiesGetSecurityInfoSecurityIndex; + private FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex; + private PetPostSecurityInfo. @Nullable SecurityIndex petPostSecurityInfoSecurityIndex; + private PetPutSecurityInfo. @Nullable SecurityIndex petPutSecurityInfoSecurityIndex; + private PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex petfindbystatusGetSecurityInfoSecurityIndex; + private PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex petfindbytagsGetSecurityInfoSecurityIndex; + private PetpetidDeleteSecurityInfo. @Nullable SecurityIndex petpetidDeleteSecurityInfoSecurityIndex; + private PetpetidGetSecurityInfo. @Nullable SecurityIndex petpetidGetSecurityInfoSecurityIndex; + private PetpetidPostSecurityInfo. @Nullable SecurityIndex petpetidPostSecurityInfoSecurityIndex; + private PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex petpetiduploadimagePostSecurityInfoSecurityIndex; + private StoreinventoryGetSecurityInfo. @Nullable SecurityIndex storeinventoryGetSecurityInfoSecurityIndex; + public SecurityIndexInfoBuilder() {} + + public SecurityIndexInfoBuilder fakeDeleteSecurityInfoSecurityIndex(FakeDeleteSecurityInfo.SecurityIndex securityIndex) { this.fakeDeleteSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo fakePostSecurityInfoSecurityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder fakePostSecurityInfoSecurityIndex(FakePostSecurityInfo.SecurityIndex securityIndex) { this.fakePostSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo fakemultiplesecuritiesGetSecurityInfoSecurityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { - this.fakemultiplesecuritiesGetSecurityInfoSecurityIndex = securityIndex; + public SecurityIndexInfoBuilder fakeclassnametestPatchSecurityInfoSecurityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { + this.fakeclassnametestPatchSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { - this.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex = securityIndex; + public SecurityIndexInfoBuilder fakemultiplesecuritiesGetSecurityInfoSecurityIndex(FakemultiplesecuritiesGetSecurityInfo.SecurityIndex securityIndex) { + this.fakemultiplesecuritiesGetSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo fakeclassnametestPatchSecurityInfoSecurityIndex(FakeclassnametestPatchSecurityInfo.SecurityIndex securityIndex) { - this.fakeclassnametestPatchSecurityInfoSecurityIndex = securityIndex; + public SecurityIndexInfoBuilder fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex(FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex securityIndex) { + this.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petPostSecurityInfoSecurityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petPostSecurityInfoSecurityIndex(PetPostSecurityInfo.SecurityIndex securityIndex) { this.petPostSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petPutSecurityInfoSecurityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petPutSecurityInfoSecurityIndex(PetPutSecurityInfo.SecurityIndex securityIndex) { this.petPutSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petfindbystatusGetSecurityInfoSecurityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petfindbystatusGetSecurityInfoSecurityIndex(PetfindbystatusGetSecurityInfo.SecurityIndex securityIndex) { this.petfindbystatusGetSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petfindbytagsGetSecurityInfoSecurityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petfindbytagsGetSecurityInfoSecurityIndex(PetfindbytagsGetSecurityInfo.SecurityIndex securityIndex) { this.petfindbytagsGetSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petpetidDeleteSecurityInfoSecurityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petpetidDeleteSecurityInfoSecurityIndex(PetpetidDeleteSecurityInfo.SecurityIndex securityIndex) { this.petpetidDeleteSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petpetidGetSecurityInfoSecurityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petpetidGetSecurityInfoSecurityIndex(PetpetidGetSecurityInfo.SecurityIndex securityIndex) { this.petpetidGetSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petpetidPostSecurityInfoSecurityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petpetidPostSecurityInfoSecurityIndex(PetpetidPostSecurityInfo.SecurityIndex securityIndex) { this.petpetidPostSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo petpetiduploadimagePostSecurityInfoSecurityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder petpetiduploadimagePostSecurityInfoSecurityIndex(PetpetiduploadimagePostSecurityInfo.SecurityIndex securityIndex) { this.petpetiduploadimagePostSecurityInfoSecurityIndex = securityIndex; return this; } - public SecurityIndexInfo storeinventoryGetSecurityInfoSecurityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder storeinventoryGetSecurityInfoSecurityIndex(StoreinventoryGetSecurityInfo.SecurityIndex securityIndex) { this.storeinventoryGetSecurityInfoSecurityIndex = securityIndex; return this; } + + public SecurityIndexInfo build() { + return new SecurityIndexInfo( + fakeDeleteSecurityInfoSecurityIndex, + fakePostSecurityInfoSecurityIndex, + fakeclassnametestPatchSecurityInfoSecurityIndex, + fakemultiplesecuritiesGetSecurityInfoSecurityIndex, + fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex, + petPostSecurityInfoSecurityIndex, + petPutSecurityInfoSecurityIndex, + petfindbystatusGetSecurityInfoSecurityIndex, + petfindbytagsGetSecurityInfoSecurityIndex, + petpetidDeleteSecurityInfoSecurityIndex, + petpetidGetSecurityInfoSecurityIndex, + petpetidPostSecurityInfoSecurityIndex, + petpetiduploadimagePostSecurityInfoSecurityIndex, + storeinventoryGetSecurityInfoSecurityIndex + ); + } } public SecurityRequirementObject getSecurityRequirementObject(FakeDeleteSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.fakeDeleteSecurityInfo; if (securityIndex == null) { - FakeDeleteSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakeDeleteSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("fakeDeleteSecurityInfoSecurityIndex is unset"); - } + FakeDeleteSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.fakeDeleteSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -276,43 +377,31 @@ public SecurityRequirementObject getSecurityRequirementObject(FakeDeleteSecurity public SecurityRequirementObject getSecurityRequirementObject(FakePostSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.fakePostSecurityInfo; if (securityIndex == null) { - FakePostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakePostSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("fakePostSecurityInfoSecurityIndex is unset"); - } + FakePostSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.fakePostSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); } - public SecurityRequirementObject getSecurityRequirementObject(FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex securityIndex) { - var securityInfoInstance = securityInfo.fakemultiplesecuritiesGetSecurityInfo; + public SecurityRequirementObject getSecurityRequirementObject(FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex securityIndex) { + var securityInfoInstance = securityInfo.fakeclassnametestPatchSecurityInfo; if (securityIndex == null) { - FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakemultiplesecuritiesGetSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("fakemultiplesecuritiesGetSecurityInfoSecurityIndex is unset"); - } + FakeclassnametestPatchSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.fakeclassnametestPatchSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); } - public SecurityRequirementObject getSecurityRequirementObject(FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex securityIndex) { - var securityInfoInstance = securityInfo.fakepetiduploadimagewithrequiredfilePostSecurityInfo; + public SecurityRequirementObject getSecurityRequirementObject(FakemultiplesecuritiesGetSecurityInfo. @Nullable SecurityIndex securityIndex) { + var securityInfoInstance = securityInfo.fakemultiplesecuritiesGetSecurityInfo; if (securityIndex == null) { - FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex is unset"); - } + FakemultiplesecuritiesGetSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.fakemultiplesecuritiesGetSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); } - public SecurityRequirementObject getSecurityRequirementObject(FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex securityIndex) { - var securityInfoInstance = securityInfo.fakeclassnametestPatchSecurityInfo; + public SecurityRequirementObject getSecurityRequirementObject(FakepetiduploadimagewithrequiredfilePostSecurityInfo. @Nullable SecurityIndex securityIndex) { + var securityInfoInstance = securityInfo.fakepetiduploadimagewithrequiredfilePostSecurityInfo; if (securityIndex == null) { - FakeclassnametestPatchSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.fakeclassnametestPatchSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("fakeclassnametestPatchSecurityInfoSecurityIndex is unset"); - } + FakepetiduploadimagewithrequiredfilePostSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.fakepetiduploadimagewithrequiredfilePostSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -320,10 +409,7 @@ public SecurityRequirementObject getSecurityRequirementObject(FakeclassnametestP public SecurityRequirementObject getSecurityRequirementObject(PetPostSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petPostSecurityInfo; if (securityIndex == null) { - PetPostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petPostSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petPostSecurityInfoSecurityIndex is unset"); - } + PetPostSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petPostSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -331,10 +417,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetPostSecurityInf public SecurityRequirementObject getSecurityRequirementObject(PetPutSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petPutSecurityInfo; if (securityIndex == null) { - PetPutSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petPutSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petPutSecurityInfoSecurityIndex is unset"); - } + PetPutSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petPutSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -342,10 +425,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetPutSecurityInfo public SecurityRequirementObject getSecurityRequirementObject(PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petfindbystatusGetSecurityInfo; if (securityIndex == null) { - PetfindbystatusGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petfindbystatusGetSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petfindbystatusGetSecurityInfoSecurityIndex is unset"); - } + PetfindbystatusGetSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petfindbystatusGetSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -353,10 +433,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetfindbystatusGet public SecurityRequirementObject getSecurityRequirementObject(PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petfindbytagsGetSecurityInfo; if (securityIndex == null) { - PetfindbytagsGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petfindbytagsGetSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petfindbytagsGetSecurityInfoSecurityIndex is unset"); - } + PetfindbytagsGetSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petfindbytagsGetSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -364,10 +441,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetfindbytagsGetSe public SecurityRequirementObject getSecurityRequirementObject(PetpetidDeleteSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petpetidDeleteSecurityInfo; if (securityIndex == null) { - PetpetidDeleteSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetidDeleteSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petpetidDeleteSecurityInfoSecurityIndex is unset"); - } + PetpetidDeleteSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petpetidDeleteSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -375,10 +449,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetpetidDeleteSecu public SecurityRequirementObject getSecurityRequirementObject(PetpetidGetSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petpetidGetSecurityInfo; if (securityIndex == null) { - PetpetidGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetidGetSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petpetidGetSecurityInfoSecurityIndex is unset"); - } + PetpetidGetSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petpetidGetSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -386,10 +457,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetpetidGetSecurit public SecurityRequirementObject getSecurityRequirementObject(PetpetidPostSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petpetidPostSecurityInfo; if (securityIndex == null) { - PetpetidPostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetidPostSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petpetidPostSecurityInfoSecurityIndex is unset"); - } + PetpetidPostSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petpetidPostSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -397,10 +465,7 @@ public SecurityRequirementObject getSecurityRequirementObject(PetpetidPostSecuri public SecurityRequirementObject getSecurityRequirementObject(PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.petpetiduploadimagePostSecurityInfo; if (securityIndex == null) { - PetpetiduploadimagePostSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.petpetiduploadimagePostSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("petpetiduploadimagePostSecurityInfoSecurityIndex is unset"); - } + PetpetiduploadimagePostSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.petpetiduploadimagePostSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); @@ -408,10 +473,7 @@ public SecurityRequirementObject getSecurityRequirementObject(Petpetiduploadimag public SecurityRequirementObject getSecurityRequirementObject(StoreinventoryGetSecurityInfo. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.storeinventoryGetSecurityInfo; if (securityIndex == null) { - StoreinventoryGetSecurityInfo. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.storeinventoryGetSecurityInfoSecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("storeinventoryGetSecurityInfoSecurityIndex is unset"); - } + StoreinventoryGetSecurityInfo.SecurityIndex configSecurityIndex = securityIndexInfo.storeinventoryGetSecurityInfoSecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java index df97d799ff0..1223c57764c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlags.java @@ -44,94 +44,6 @@ public record JsonSchemaKeywordFlags( boolean unevaluatedProperties ) { - public static JsonSchemaKeywordFlags ofNone() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - - public static JsonSchemaKeywordFlags onlyFormat() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - public LinkedHashSet getKeywords() { LinkedHashSet enabledKeywords = new LinkedHashSet<>(); if (additionalProperties) { enabledKeywords.add("additionalProperties"); } @@ -175,4 +87,248 @@ public LinkedHashSet getKeywords() { if (unevaluatedProperties) { enabledKeywords.add("unevaluatedProperties"); } return enabledKeywords; } + + public static class Builder { + private boolean additionalProperties; + private boolean allOf; + private boolean anyOf; + private boolean const_; + private boolean contains; + private boolean dependentRequired; + private boolean dependentSchemas; + private boolean discriminator; + private boolean else_; + private boolean enum_; + private boolean exclusiveMaximum; + private boolean exclusiveMinimum; + private boolean format; + private boolean if_; + private boolean maximum; + private boolean minimum; + private boolean items; + private boolean maxContains; + private boolean maxItems; + private boolean maxLength; + private boolean maxProperties; + private boolean minContains; + private boolean minItems; + private boolean minLength; + private boolean minProperties; + private boolean multipleOf; + private boolean not; + private boolean oneOf; + private boolean pattern; + private boolean patternProperties; + private boolean prefixItems; + private boolean properties; + private boolean propertyNames; + private boolean required; + private boolean then; + private boolean type; + private boolean uniqueItems; + private boolean unevaluatedItems; + private boolean unevaluatedProperties; + + public Builder() {} + + public Builder additionalProperties() { + additionalProperties = true; + return this; + } + public Builder allOf() { + allOf = true; + return this; + } + public Builder anyOf() { + anyOf = true; + return this; + } + public Builder const_() { + const_ = true; + return this; + } + public Builder contains() { + contains = true; + return this; + } + public Builder dependentRequired() { + dependentRequired = true; + return this; + } + public Builder dependentSchemas() { + dependentSchemas = true; + return this; + } + public Builder discriminator() { + discriminator = true; + return this; + } + public Builder else_() { + else_ = true; + return this; + } + public Builder enum_() { + enum_ = true; + return this; + } + public Builder exclusiveMaximum() { + exclusiveMaximum = true; + return this; + } + public Builder exclusiveMinimum() { + exclusiveMinimum = true; + return this; + } + public Builder format() { + format = true; + return this; + } + public Builder if_() { + if_ = true; + return this; + } + public Builder maximum() { + maximum = true; + return this; + } + public Builder minimum() { + minimum = true; + return this; + } + public Builder items() { + items = true; + return this; + } + public Builder maxContains() { + maxContains = true; + return this; + } + public Builder maxItems() { + maxItems = true; + return this; + } + public Builder maxLength() { + maxLength = true; + return this; + } + public Builder maxProperties() { + maxProperties = true; + return this; + } + public Builder minContains() { + minContains = true; + return this; + } + public Builder minItems() { + minItems = true; + return this; + } + public Builder minLength() { + minLength = true; + return this; + } + public Builder minProperties() { + minProperties = true; + return this; + } + public Builder multipleOf() { + multipleOf = true; + return this; + } + public Builder not() { + not = true; + return this; + } + public Builder oneOf() { + oneOf = true; + return this; + } + public Builder pattern() { + pattern = true; + return this; + } + public Builder patternProperties() { + patternProperties = true; + return this; + } + public Builder prefixItems() { + prefixItems = true; + return this; + } + public Builder properties() { + properties = true; + return this; + } + public Builder propertyNames() { + propertyNames = true; + return this; + } + public Builder required() { + required = true; + return this; + } + public Builder then() { + then = true; + return this; + } + public Builder type() { + type = true; + return this; + } + public Builder uniqueItems() { + uniqueItems = true; + return this; + } + public Builder unevaluatedItems() { + unevaluatedItems = true; + return this; + } + public Builder unevaluatedProperties() { + unevaluatedProperties = true; + return this; + } + public JsonSchemaKeywordFlags build() { + return new JsonSchemaKeywordFlags( + additionalProperties, + allOf, + anyOf, + const_, + contains, + dependentRequired, + dependentSchemas, + discriminator, + else_, + enum_, + exclusiveMaximum, + exclusiveMinimum, + format, + if_, + maximum, + minimum, + items, + maxContains, + maxItems, + maxLength, + maxProperties, + minContains, + minItems, + minLength, + minProperties, + multipleOf, + not, + oneOf, + pattern, + patternProperties, + prefixItems, + properties, + propertyNames, + required, + then, + type, + uniqueItems, + unevaluatedItems, + unevaluatedProperties + ); + } + } } \ No newline at end of file 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 a721eaf3fb8..42d92915420 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 @@ -154,7 +154,7 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 0dc2b07dfaf..7424543e6c2 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 @@ -174,7 +174,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java index 4110959c0e3..5e27e6693ae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/delete/parameters/parameter1/Schema1.java @@ -74,7 +74,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 9fbb4015a95..905f41a23ef 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 @@ -174,7 +174,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 e8c5c6bd329..0fc34a2dfd4 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 @@ -154,7 +154,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java index b6b17e739c3..bd8854610b9 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/commonparamsubdir/parameters/routeparameter0/RouteParamSchema0.java @@ -74,7 +74,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 4bdf41e9a2f..ff22d5ef1be 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 @@ -154,7 +154,7 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 f0dcd660250..10dd3c3509c 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 @@ -174,7 +174,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 85b788d456c..67d2c45dff6 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 @@ -209,7 +209,7 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 17b5e6d69e9..3df61763b6a 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 @@ -314,7 +314,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java index 417a8c466fb..ec9ab334ddc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter1/Schema1.java @@ -74,7 +74,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java index 595c106806d..023f18175d6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/delete/parameters/parameter4/Schema4.java @@ -74,7 +74,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 6e85c71e181..c2c414a176f 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 @@ -191,7 +191,7 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 837ef9d55d7..1b72ab67825 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 @@ -307,7 +307,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 2b31d119440..0656e20511a 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 @@ -80,7 +80,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -218,7 +218,7 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java index 02907bcc352..c11fb1b0bf8 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter1/Schema1.java @@ -78,7 +78,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 ffb41afbb75..ac7290881ca 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 @@ -80,7 +80,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -218,7 +218,7 @@ public SchemaList2 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java index 37fb6b578b6..10b29f05566 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter3/Schema3.java @@ -78,7 +78,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java index e7762fe4493..31ffdbc7fef 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter4/Schema4.java @@ -124,7 +124,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java index 18dcf62eda7..061a755133a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/parameters/parameter5/Schema5.java @@ -94,7 +94,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index ea8f9b6295e..481e0b1b057 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -88,7 +88,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -226,7 +226,7 @@ public ApplicationxwwwformurlencodedEnumFormStringArrayList validate(List arg Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -315,7 +315,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -516,7 +516,7 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index bb231ecf95e..06108b5c1e0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fake/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -77,7 +77,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -168,7 +168,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -261,7 +261,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -351,7 +351,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -429,7 +429,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -505,7 +505,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -577,7 +577,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -682,7 +682,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -760,7 +760,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -1554,7 +1554,7 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 03360b53511..577273843e9 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 @@ -168,7 +168,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 f3482c8b143..2e940b57cf6 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 @@ -306,7 +306,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 afb07c84f67..ac73ba87fae 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 @@ -168,7 +168,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 552865b8b4c..da39455be18 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlineadditionalproperties/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -146,7 +146,7 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 144b9be7749..eb7668fddb7 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 @@ -233,7 +233,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java index 2ce60fa7be0..b6bf99f49be 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/parameters/parameter0/Schema0.java @@ -71,7 +71,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -174,7 +174,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -186,7 +186,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -269,7 +269,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -303,7 +303,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 44cb10452d6..360cbe62ac4 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 @@ -73,7 +73,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -176,7 +176,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -188,7 +188,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -200,7 +200,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -228,7 +228,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -271,7 +271,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -305,7 +305,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -559,7 +559,7 @@ public SchemaMap1 validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 90eeb11bea9..0d5501bb071 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -71,7 +71,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -174,7 +174,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -186,7 +186,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -269,7 +269,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -303,7 +303,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 469b099493b..61278aa23d3 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -73,7 +73,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -176,7 +176,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -188,7 +188,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -200,7 +200,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -228,7 +228,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -271,7 +271,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -305,7 +305,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -559,7 +559,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java index 168cbeb975c..340a806c573 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/applicationjson/ApplicationjsonSchema.java @@ -71,7 +71,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -174,7 +174,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -186,7 +186,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -198,7 +198,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -226,7 +226,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -269,7 +269,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -303,7 +303,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java index 68748fd1603..8798968b17e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeinlinecomposition/post/responses/code200response/content/multipartformdata/MultipartformdataSchema.java @@ -73,7 +73,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -176,7 +176,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -188,7 +188,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -200,7 +200,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -228,7 +228,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -271,7 +271,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -305,7 +305,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -559,7 +559,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 9a70e8487d3..676abe08d29 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -237,7 +237,7 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java index 16a494f8b3d..a770374fa98 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/applicationjson/ApplicationjsonSchema.java @@ -163,7 +163,7 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 684ede7bd69..1f7af7f9a29 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplerequestbodycontenttypes/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -163,7 +163,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 351fd68acab..ab8fcd644a7 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 @@ -154,7 +154,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 f94e9fadd7a..28dc740b7eb 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 @@ -163,7 +163,7 @@ public SchemaMap0 validate(Map arg, SchemaConfiguration configuration) thr Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 0acba3877bc..da9545c05c8 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 @@ -249,7 +249,7 @@ public CookieParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 904e373ed76..39fa1cd2444 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 @@ -221,7 +221,7 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 8e4742efa0f..49acde7c086 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 @@ -782,7 +782,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 0a9975c014b..99e5b99540f 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 @@ -249,7 +249,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 a568880cab5..2ea4c671fcc 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 @@ -186,7 +186,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index 50a815585cb..e4a05ffe74d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -214,7 +214,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 12618cb5ee0..ae8606df9a8 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 @@ -216,7 +216,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 5f291a86045..287d01c12a6 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 @@ -154,7 +154,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 c4573b4f79d..9b3a467ef31 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 @@ -1478,7 +1478,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 6a6b47f4a85..a1a141e38d1 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 @@ -122,7 +122,7 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 c386c6cd560..f73a4a14c25 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 @@ -122,7 +122,7 @@ public SchemaList1 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 b9a650f1e17..fa6b93e54f0 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 @@ -122,7 +122,7 @@ public SchemaList2 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 2e44f938af9..6301f5135d6 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 @@ -122,7 +122,7 @@ public SchemaList3 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 5dcc583172d..fb955854aee 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 @@ -122,7 +122,7 @@ public SchemaList4 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index bc7210852e6..4632d7c9bae 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfile/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -214,7 +214,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index ceefe884ce3..355c33d6d56 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakeuploadfiles/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -131,7 +131,7 @@ public MultipartformdataFilesList validate(List arg, SchemaConfiguration conf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -288,7 +288,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java index 2a4ba33c38a..ca1bc261831 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/FooGetServerInfo.java @@ -10,15 +10,10 @@ public class FooGetServerInfo { public static class FooGetServerInfo1 implements ServerProvider { - public final FooGetServer0 server0; - public final FooGetServer1 server1; + private final FooGetServer0 server0; + private final FooGetServer1 server1; - public FooGetServerInfo1() { - server0 = new FooGetServer0(); - server1 = new FooGetServer1(); - } - - public FooGetServerInfo1( + FooGetServerInfo1( @Nullable FooGetServer0 server0, @Nullable FooGetServer1 server1 ) { @@ -37,6 +32,30 @@ public Server getServer(ServerIndex serverIndex) { } } + public static class FooGetServerInfoBuilder { + private @Nullable FooGetServer0 server0; + private @Nullable FooGetServer1 server1; + + public FooGetServerInfoBuilder() {} + + public FooGetServerInfoBuilder fooGetServer0(FooGetServer0 server0) { + this.server0 = server0; + return this; + } + + public FooGetServerInfoBuilder fooGetServer1(FooGetServer1 server1) { + this.server1 = server1; + return this; + } + + public FooGetServerInfo1 build() { + return new FooGetServerInfo1( + server0, + server1 + ); + } + } + public enum ServerIndex { SERVER_0, SERVER_1 diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java index 860a1e86279..8c8442fee2b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/responses/codedefaultresponse/content/applicationjson/ApplicationjsonSchema.java @@ -142,7 +142,7 @@ public ApplicationjsonSchemaMap validate(Map arg, SchemaConfiguration conf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java index 336ea6edf71..e4a6dcceb9c 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/FooGetServer1.java @@ -16,7 +16,7 @@ private static Variables.VariablesMap getVariables() { MapUtils.makeMap( new AbstractMap.SimpleEntry<>("version", Variables.Version.getInstance().defaultValue()) ), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()) + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); } catch (ValidationException e) { throw new RuntimeException(e); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java index 8cc25687164..8f803c6d955 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/foo/get/servers/server1/Variables.java @@ -99,7 +99,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -276,7 +276,7 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java index 03839fc4b75..e0ed6efd6f2 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/PetfindbystatusServerInfo.java @@ -10,15 +10,10 @@ public class PetfindbystatusServerInfo { public static class PetfindbystatusServerInfo1 implements ServerProvider { - public final PetfindbystatusServer0 server0; - public final PetfindbystatusServer1 server1; + private final PetfindbystatusServer0 server0; + private final PetfindbystatusServer1 server1; - public PetfindbystatusServerInfo1() { - server0 = new PetfindbystatusServer0(); - server1 = new PetfindbystatusServer1(); - } - - public PetfindbystatusServerInfo1( + PetfindbystatusServerInfo1( @Nullable PetfindbystatusServer0 server0, @Nullable PetfindbystatusServer1 server1 ) { @@ -37,6 +32,30 @@ public Server getServer(ServerIndex serverIndex) { } } + public static class PetfindbystatusServerInfoBuilder { + private @Nullable PetfindbystatusServer0 server0; + private @Nullable PetfindbystatusServer1 server1; + + public PetfindbystatusServerInfoBuilder() {} + + public PetfindbystatusServerInfoBuilder petfindbystatusServer0(PetfindbystatusServer0 server0) { + this.server0 = server0; + return this; + } + + public PetfindbystatusServerInfoBuilder petfindbystatusServer1(PetfindbystatusServer1 server1) { + this.server1 = server1; + return this; + } + + public PetfindbystatusServerInfo1 build() { + return new PetfindbystatusServerInfo1( + server0, + server1 + ); + } + } + public enum ServerIndex { SERVER_0, SERVER_1 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 90468bd21f2..0dcdbdf49d3 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 @@ -169,7 +169,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 d45479cd0dd..43ff824d739 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 @@ -82,7 +82,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -220,7 +220,7 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java index e36810b4c40..3642ace858f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/PetfindbystatusServer1.java @@ -16,7 +16,7 @@ private static Variables.VariablesMap getVariables() { MapUtils.makeMap( new AbstractMap.SimpleEntry<>("version", Variables.Version.getInstance().defaultValue()) ), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()) + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); } catch (ValidationException e) { throw new RuntimeException(e); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java index 402b2e4be8b..066bb13df2a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/servers/server1/Variables.java @@ -99,7 +99,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -276,7 +276,7 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 11bb6b1896d..4352f51e740 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 @@ -169,7 +169,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 420ca7fe8b4..977742f58ab 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 @@ -122,7 +122,7 @@ public SchemaList0 validate(List arg, SchemaConfiguration configuration) thro Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 044c81974e6..c5993ca0b15 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 @@ -154,7 +154,7 @@ public HeaderParametersMap validate(Map arg, SchemaConfiguration configura Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 ed599dfe636..cd01da18f23 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 @@ -186,7 +186,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 65b7c41a406..e5040a92611 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 @@ -186,7 +186,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 a4306745deb..e02194fa9c3 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 @@ -186,7 +186,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java index 0b10b8675bd..c7af01879e4 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/requestbody/content/applicationxwwwformurlencoded/ApplicationxwwwformurlencodedSchema.java @@ -201,7 +201,7 @@ public ApplicationxwwwformurlencodedSchemaMap validate(Map arg, SchemaConf Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 9418fd079ae..9241d858285 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 @@ -186,7 +186,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java index e6b3f39636f..d1d3106be24 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetiduploadimage/post/requestbody/content/multipartformdata/MultipartformdataSchema.java @@ -202,7 +202,7 @@ public MultipartformdataSchemaMap validate(Map arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 d1a63779d53..fa7565f0555 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 @@ -168,7 +168,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 106faf07142..f9fb4048dc0 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 @@ -186,7 +186,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java index 9d05f93bfb2..b81d0724b97 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/storeorderorderid/get/parameters/parameter0/Schema0.java @@ -60,7 +60,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; 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 01dd3860ee8..6da4b7ec867 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 @@ -218,7 +218,7 @@ public QueryParametersMap validate(Map arg, SchemaConfiguration configurat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java index 4b54d1e388b..26bd7f377fc 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/userlogin/get/responses/code200response/Code200ResponseHeadersSchema.java @@ -352,7 +352,7 @@ public Code200ResponseHeadersSchemaMap validate(Map arg, SchemaConfigurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 75de97ae0ee..654eb1b1513 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 @@ -168,7 +168,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 cf14e31de9d..a106cf2af60 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 @@ -168,7 +168,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); 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 a45316dbab8..432e101e9af 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 @@ -168,7 +168,7 @@ public PathParametersMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java index 7990efaa995..6b374aebbe1 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java @@ -89,7 +89,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -101,7 +101,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -113,7 +113,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -141,7 +141,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -183,7 +183,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java index 12af2ba8196..86598ab393d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java @@ -47,7 +47,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java index 4853a27dee8..9e795318d67 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java index a5b4f50d788..3304924e331 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DateTimeJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java index 6651aa44497..f9e3f6a6f3b 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DecimalJsonSchema.java @@ -49,7 +49,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java index 9bcb31d2068..c45d985d95d 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/DoubleJsonSchema.java @@ -49,7 +49,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java index 101b2ea1f57..06a918eecb0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/FloatJsonSchema.java @@ -49,7 +49,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java index 2938d08bf21..b31b7688b58 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int32JsonSchema.java @@ -52,7 +52,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java index c17217a89ab..4ea9603434e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/Int64JsonSchema.java @@ -54,7 +54,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java index 34b79da8f66..a89a70c02c5 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/IntJsonSchema.java @@ -54,7 +54,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java index 8135ed020cf..bce36256ac6 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/ListJsonSchema.java @@ -69,7 +69,7 @@ public static ListJsonSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java index 85396cda11a..02f18d8ba8a 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/MapJsonSchema.java @@ -74,7 +74,7 @@ public static MapJsonSchema1 getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java index 7a1a3367d78..1b5160638ff 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NotAnyTypeJsonSchema.java @@ -91,7 +91,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -103,7 +103,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -143,7 +143,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -185,7 +185,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java index af32938007e..293807e5c12 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NullJsonSchema.java @@ -48,7 +48,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java index 57629ac9557..260d4e15a44 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/NumberJsonSchema.java @@ -53,7 +53,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java index 7185ac28496..92570628dd0 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/StringJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java index 2502602642f..c9ccef0420e 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/UuidJsonSchema.java @@ -50,7 +50,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java index 8e17449eb27..8608632a6dd 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/schemas/validation/UnsetAnyTypeJsonSchema.java @@ -76,7 +76,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -88,7 +88,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -100,7 +100,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -170,7 +170,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public String validate(UUID arg, SchemaConfiguration configuration) throws Valid Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java index b0aa605a011..a33673dc30f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server0.java @@ -19,7 +19,7 @@ private static Variables.VariablesMap getVariables() { new AbstractMap.SimpleEntry<>("port", Variables.Port.getInstance().defaultValue()), new AbstractMap.SimpleEntry<>("server", Variables.Server.getInstance().defaultValue()) ), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()) + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); } catch (ValidationException e) { throw new RuntimeException(e); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java index 555ea894037..c95f74ab89f 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/Server1.java @@ -18,7 +18,7 @@ private static Variables.VariablesMap getVariables() { MapUtils.makeMap( new AbstractMap.SimpleEntry<>("version", Variables.Version.getInstance().defaultValue()) ), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()) + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); } catch (ValidationException e) { throw new RuntimeException(e); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java index 9a17cee2161..e59a8e774ee 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server0/Variables.java @@ -101,7 +101,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -199,7 +199,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -434,7 +434,7 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java index c8f236973c4..e54d83dbf00 100644 --- a/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java +++ b/samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/servers/server1/Variables.java @@ -99,7 +99,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -276,7 +276,7 @@ public VariablesMap validate(Map arg, SchemaConfiguration configuration) t Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessageTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessageTest.java index 26d90810268..82590f8a704 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessageTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AbstractStepMessageTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AbstractStepMessageTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClassTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClassTest.java index dd26157a776..ef80b00c044 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesClassTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AdditionalPropertiesClassTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchemaTest.java index bcf934252d3..de7861d3cb2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AdditionalPropertiesSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnumsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnumsTest.java index a446341c727..f44a71eaea1 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnumsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AdditionalPropertiesWithArrayOfEnumsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AdditionalPropertiesWithArrayOfEnumsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AddressTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AddressTest.java index 5ce5a7cf5d9..eeb0dfc4626 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AddressTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AddressTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AddressTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalFarmTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalFarmTest.java index 55f26b9c871..28531089830 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalFarmTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalFarmTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AnimalFarmTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalTest.java index 97d455d8ec8..f38c301e7f5 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnimalTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AnimalTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormatTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormatTest.java index 0ad31f169ad..d76fcfbd442 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormatTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeAndFormatTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AnyTypeAndFormatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotStringTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotStringTest.java index 52f02c1b6dd..5af249aa1c1 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotStringTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AnyTypeNotStringTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AnyTypeNotStringTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchemaTest.java index ad06c31ac69..70e59c3040f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ApiResponseSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ApiResponseSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleReqTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleReqTest.java index 9f7749a79bd..d7c45b1af68 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleReqTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleReqTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AppleReqTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleTest.java index dd1e597d8e8..491ab8ffb6d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/AppleTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class AppleTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyTypeTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyTypeTest.java index 6b94fb6d3cf..cae93de592c 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyTypeTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayHoldingAnyTypeTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ArrayHoldingAnyTypeTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnlyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnlyTest.java index cb1769530dc..f826dc7742b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfArrayOfNumberOnlyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ArrayOfArrayOfNumberOnlyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnumsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnumsTest.java index d9027fbfaae..6e9a30567d4 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnumsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfEnumsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ArrayOfEnumsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnlyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnlyTest.java index 341dbf0a6e4..46360228172 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnlyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayOfNumberOnlyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ArrayOfNumberOnlyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTestTest.java index 8944c314d88..d4f5c35dbad 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayTestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ArrayTestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItemsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItemsTest.java index fae6ca00c7d..8ac9ee9ecc6 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItemsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ArrayWithValidationsInItemsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ArrayWithValidationsInItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaReqTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaReqTest.java index c57f71162b7..4031dcb9c5c 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaReqTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaReqTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class BananaReqTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaTest.java index 7dd37568562..aa0ff28a5fb 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BananaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class BananaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BarTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BarTest.java index 371e8019f38..0952ffc44fc 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BarTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BarTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class BarTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BasquePigTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BasquePigTest.java index bbf15efed63..c35138daf52 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BasquePigTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BasquePigTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class BasquePigTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanEnumTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanEnumTest.java index 04b11948c55..09beec02136 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanEnumTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanEnumTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class BooleanEnumTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanSchemaTest.java index 8eac335b104..ba183196bcd 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/BooleanSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class BooleanSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CapitalizationTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CapitalizationTest.java index 449b3fc3ed8..37056fa373e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CapitalizationTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CapitalizationTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class CapitalizationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CatTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CatTest.java index 5433d3b52ce..1dca84b8c97 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CatTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CatTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class CatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CategoryTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CategoryTest.java index fa62430e885..884a6476615 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CategoryTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CategoryTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class CategoryTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ChildCatTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ChildCatTest.java index 2ec97e8cbc3..79248832dc9 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ChildCatTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ChildCatTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ChildCatTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClassModelTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClassModelTest.java index 8d320225778..be07f306c54 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClassModelTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClassModelTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ClassModelTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClientTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClientTest.java index 1b8625e1600..8f798029f4f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClientTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ClientTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ClientTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateralTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateralTest.java index 8a4ed85a7b1..a511c075f80 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateralTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComplexQuadrilateralTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComplexQuadrilateralTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidationsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidationsTest.java index 377879e2d00..867b1ef54a2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidationsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedAnyOfDifferentTypesNoValidationsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedAnyOfDifferentTypesNoValidationsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedArrayTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedArrayTest.java index 320f2eaf9c4..88b3b85df5c 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedArrayTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedArrayTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedArrayTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedBoolTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedBoolTest.java index 90b56a74caa..a76023fc9b2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedBoolTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedBoolTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedBoolTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNoneTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNoneTest.java index 07080d596a6..0ccbf3b44f9 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNoneTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNoneTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedNoneTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNumberTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNumberTest.java index a1d719ccf76..a410679ea58 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNumberTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedNumberTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedNumberTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedObjectTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedObjectTest.java index 8fbee32fe6a..0aacfd84f50 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedObjectTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedObjectTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedObjectTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypesTest.java index 671d9b17c15..8c630e0b5cd 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedOneOfDifferentTypesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedOneOfDifferentTypesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedStringTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedStringTest.java index 0d2c79da9ae..b9be19bd3cf 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedStringTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ComposedStringTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ComposedStringTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CurrencyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CurrencyTest.java index 42b87fca7a2..a262a65cde1 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CurrencyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/CurrencyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class CurrencyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DanishPigTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DanishPigTest.java index 58e85a79ac4..327ffa70e1e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DanishPigTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DanishPigTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DanishPigTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeTestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeTestTest.java index 3c60251a500..383bdc5fee1 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeTestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeTestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DateTimeTestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidationsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidationsTest.java index e3d64ea4f49..c7f15d7866b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidationsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateTimeWithValidationsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DateTimeWithValidationsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateWithValidationsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateWithValidationsTest.java index db79cd2c001..cec992f3cd6 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateWithValidationsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DateWithValidationsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DateWithValidationsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DecimalPayloadTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DecimalPayloadTest.java index 9109e350071..450ac6beb0e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DecimalPayloadTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DecimalPayloadTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DecimalPayloadTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DogTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DogTest.java index 5df062f6422..1698e6b82ad 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DogTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DogTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DogTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DrawingTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DrawingTest.java index f87cfd0b4c7..9589e7e326f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DrawingTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/DrawingTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class DrawingTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumArraysTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumArraysTest.java index 42c76796a7a..9bfba584c0c 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumArraysTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumArraysTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class EnumArraysTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumClassTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumClassTest.java index bad616e00fe..2202d623476 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumClassTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumClassTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class EnumClassTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumTestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumTestTest.java index 6539fe68332..9676b34d4ce 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumTestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EnumTestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class EnumTestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangleTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangleTest.java index 5ca85d89e84..6d75d2d7e3b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangleTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/EquilateralTriangleTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class EquilateralTriangleTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClassTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClassTest.java index a025fd082a5..1d5bc8b29f5 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClassTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileSchemaTestClassTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FileSchemaTestClassTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileTest.java index f1af1767867..54ce06dc444 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FileTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FileTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FooTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FooTest.java index 7e8eef0b318..2feb1595fc9 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FooTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FooTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FooTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FormatTestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FormatTestTest.java index 7b262aa83b1..7d017bb8eef 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FormatTestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FormatTestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FormatTestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FromSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FromSchemaTest.java index 3c3c85bc680..378ffb904f6 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FromSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FromSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FromSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitReqTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitReqTest.java index 50684bfeafe..f299cf8cbbb 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitReqTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitReqTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FruitReqTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitTest.java index 5321c55bfb3..9d6594733dd 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/FruitTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class FruitTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GmFruitTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GmFruitTest.java index 745ad54e584..bf570ab57e6 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GmFruitTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GmFruitTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class GmFruitTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimalTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimalTest.java index 33db2f523d3..930d4fe4049 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimalTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/GrandparentAnimalTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class GrandparentAnimalTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnlyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnlyTest.java index b73e2c79657..3a286d0ff01 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnlyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HasOnlyReadOnlyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class HasOnlyReadOnlyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HealthCheckResultTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HealthCheckResultTest.java index 6183f4d7e99..279d614f9fe 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HealthCheckResultTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/HealthCheckResultTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class HealthCheckResultTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBigTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBigTest.java index 32eab4d286e..77ed6c4d822 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBigTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumBigTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IntegerEnumBigTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValueTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValueTest.java index 5ad579a0627..8a005624d3f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValueTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumOneValueTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IntegerEnumOneValueTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumTest.java index e96a16b1558..898b123a094 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IntegerEnumTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValueTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValueTest.java index 7765b48eba6..df79ff7d437 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValueTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerEnumWithDefaultValueTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IntegerEnumWithDefaultValueTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMax10Test.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMax10Test.java index 788d36e69ab..4e809cd1c84 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMax10Test.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMax10Test.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IntegerMax10Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMin15Test.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMin15Test.java index 8108d4d4f15..ead4611e53b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMin15Test.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IntegerMin15Test.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IntegerMin15Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangleTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangleTest.java index 643cd54912c..7c0bd3d8ca2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangleTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/IsoscelesTriangleTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class IsoscelesTriangleTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsTest.java index f529009f5f4..d6d26bc51b1 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ItemsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ItemsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTestTest.java index 82013b05de5..7ac8dc5d85e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestAddReplaceTestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class JSONPatchRequestAddReplaceTestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopyTest.java index 920fd7eb85a..8f01a7c1b97 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestMoveCopyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class JSONPatchRequestMoveCopyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemoveTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemoveTest.java index 932cf8d2932..d896defd64a 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemoveTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestRemoveTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class JSONPatchRequestRemoveTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestTest.java index 69eb1595a8f..64f57bc881e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/JSONPatchRequestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class JSONPatchRequestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MammalTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MammalTest.java index cb127841bc4..54525d02af1 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MammalTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MammalTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class MammalTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MapTestTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MapTestTest.java index 88105c72dbf..3b8e6f70bfa 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MapTestTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MapTestTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class MapTestTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClassTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClassTest.java index 1eabdc3b19d..64fd5bbbbc4 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClassTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MixedPropertiesAndAdditionalPropertiesClassTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class MixedPropertiesAndAdditionalPropertiesClassTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MoneyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MoneyTest.java index 61e44b93121..74495479867 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MoneyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MoneyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class MoneyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MyObjectDtoTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MyObjectDtoTest.java index 768525eae33..87f7d053a13 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MyObjectDtoTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/MyObjectDtoTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class MyObjectDtoTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NameTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NameTest.java index 818954ac663..76a95741398 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NameTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NameTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NameTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NoAdditionalPropertiesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NoAdditionalPropertiesTest.java index 7c7d68d2412..d79e22490ff 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NoAdditionalPropertiesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NoAdditionalPropertiesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NoAdditionalPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableClassTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableClassTest.java index 0ed9f5d3b29..0c581203075 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableClassTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableClassTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NullableClassTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableShapeTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableShapeTest.java index 432ba83f13e..ad28aa7079a 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableShapeTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableShapeTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NullableShapeTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableStringTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableStringTest.java index c335e01c520..5b1d78012e4 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableStringTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NullableStringTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NullableStringTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberOnlyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberOnlyTest.java index c6d38d9f9d2..0ac1388ab72 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberOnlyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberOnlyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NumberOnlyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberSchemaTest.java index 41111d393b8..ddf1eb7a687 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NumberSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMaxTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMaxTest.java index 6050f517605..7ea2fffdb56 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMaxTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithExclusiveMinMaxTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NumberWithExclusiveMinMaxTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithValidationsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithValidationsTest.java index ab2da06c6b8..b0e61f9802c 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithValidationsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/NumberWithValidationsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class NumberWithValidationsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBaseTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBaseTest.java index 91f7c1dbca3..3b15661c054 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBaseTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsBaseTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjWithRequiredPropsBaseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsTest.java index 99b1ad48084..105eb63fe1e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjWithRequiredPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjWithRequiredPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectInterfaceTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectInterfaceTest.java index 3eb1673e902..10a0a08b90d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectInterfaceTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectInterfaceTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectInterfaceTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsPropertiesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsPropertiesTest.java index 0f2e63e702f..1d20ae276a9 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsPropertiesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithArgAndArgsPropertiesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectModelWithArgAndArgsPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefPropsTest.java index 7511bca5225..b6423a6441e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectModelWithRefPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectModelWithRefPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest.java index a7522f662b5..846af3fd6b0 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithAllOfWithReqTestPropFromUnsetAddPropTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingPropertiesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingPropertiesTest.java index aa3d568148f..2ae79b4633e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingPropertiesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithCollidingPropertiesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithCollidingPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalPropertiesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalPropertiesTest.java index 4fb561e0f7b..f024635f998 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalPropertiesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDecimalPropertiesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithDecimalPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedPropsTest.java index b140cd41e9b..3411862b9f3 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithDifficultlyNamedPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithDifficultlyNamedPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionPropertyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionPropertyTest.java index f2458f9cff7..9218c238074 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionPropertyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInlineCompositionPropertyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithInlineCompositionPropertyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedPropertiesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedPropertiesTest.java index 5d2b46e68fa..57023085317 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedPropertiesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithInvalidNamedRefedPropertiesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithInvalidNamedRefedPropertiesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValuesTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValuesTest.java index c421fff865e..0ec9e09a45a 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValuesTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithNonIntersectingValuesTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithNonIntersectingValuesTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalPropsTest.java index 3449e282dc5..16859d34c5d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOnlyOptionalPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithOnlyOptionalPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestPropTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestPropTest.java index d2e97475171..fbfbd396a61 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestPropTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithOptionalTestPropTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithOptionalTestPropTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidationsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidationsTest.java index 5ed0c3cdf38..9d02a043155 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidationsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ObjectWithValidationsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ObjectWithValidationsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/OrderTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/OrderTest.java index 33104c39a46..6f89d9bbcbe 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/OrderTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/OrderTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class OrderTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDtoTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDtoTest.java index b93e652c03f..d786673816b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDtoTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PaginatedResultMyObjectDtoTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class PaginatedResultMyObjectDtoTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ParentPetTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ParentPetTest.java index 7049a94acb6..8850228ea48 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ParentPetTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ParentPetTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ParentPetTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PetTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PetTest.java index f4858f16e25..c9188d89ccb 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PetTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PetTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class PetTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PigTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PigTest.java index c95f11161e7..15fa50b9931 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PigTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PigTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class PigTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PlayerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PlayerTest.java index ce484f82c8f..f3a60c5761d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PlayerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PlayerTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class PlayerTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PublicKeyTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PublicKeyTest.java index e9e37266933..01422255c9e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PublicKeyTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/PublicKeyTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class PublicKeyTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterfaceTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterfaceTest.java index 95ae2e94e4a..457533d9723 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterfaceTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralInterfaceTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class QuadrilateralInterfaceTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralTest.java index 5892af5bc22..930bf3ff189 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/QuadrilateralTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class QuadrilateralTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirstTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirstTest.java index 6cb761b4ad2..51415cd0e25 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirstTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReadOnlyFirstTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ReadOnlyFirstTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefPetTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefPetTest.java index 8cc80a9289e..e745fbfe372 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefPetTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/RefPetTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class RefPetTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddPropsTest.java index ad3c979fa28..29805a43b33 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromExplicitAddPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ReqPropsFromExplicitAddPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddPropsTest.java index c3c6dd8cc5c..abcf4962d81 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromTrueAddPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ReqPropsFromTrueAddPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddPropsTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddPropsTest.java index c4da9757cf5..a777a2ee5ca 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddPropsTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReqPropsFromUnsetAddPropsTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ReqPropsFromUnsetAddPropsTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReturnSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReturnSchemaTest.java index b982061ef58..12a41f23c6d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReturnSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ReturnSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ReturnSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangleTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangleTest.java index eabd899f161..d60ac9bd407 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangleTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ScaleneTriangleTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ScaleneTriangleTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/Schema200ResponseTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/Schema200ResponseTest.java index 589b4ac0236..4833132cc77 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/Schema200ResponseTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/Schema200ResponseTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class Schema200ResponseTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModelTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModelTest.java index 5451ecf6e18..8aa9425537e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModelTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingArrayModelTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class SelfReferencingArrayModelTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModelTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModelTest.java index 667db9d0191..9c615b0f705 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModelTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SelfReferencingObjectModelTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class SelfReferencingObjectModelTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeOrNullTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeOrNullTest.java index ee186963177..1dd467f87d4 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeOrNullTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeOrNullTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ShapeOrNullTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeTest.java index 93b244c0537..820879988cf 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ShapeTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ShapeTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateralTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateralTest.java index a8198711960..4d2222c704a 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateralTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SimpleQuadrilateralTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class SimpleQuadrilateralTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SomeObjectTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SomeObjectTest.java index 054d3e1b2e2..a57621c0667 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SomeObjectTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SomeObjectTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class SomeObjectTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SpecialModelnameTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SpecialModelnameTest.java index 4cc8d82deb0..7434c9f5316 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SpecialModelnameTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/SpecialModelnameTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class SpecialModelnameTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringBooleanMapTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringBooleanMapTest.java index b80f045eb13..c75df4cbc46 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringBooleanMapTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringBooleanMapTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class StringBooleanMapTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumTest.java index 62c372bbd94..c569016b2fb 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class StringEnumTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValueTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValueTest.java index 84812e25559..27b9cfa0b45 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValueTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringEnumWithDefaultValueTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class StringEnumWithDefaultValueTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringSchemaTest.java index bfed19d6f0a..b8ec5d22b05 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringSchemaTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class StringSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringWithValidationTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringWithValidationTest.java index bc2e9c815be..a870e7edd7d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringWithValidationTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/StringWithValidationTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class StringWithValidationTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TagTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TagTest.java index f5bab27ae3c..c2159d54437 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TagTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TagTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class TagTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleInterfaceTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleInterfaceTest.java index 3945ca06116..a0bfa6346c2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleInterfaceTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleInterfaceTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class TriangleInterfaceTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleTest.java index 9c82b019410..827ce35050f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/TriangleTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class TriangleTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UUIDStringTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UUIDStringTest.java index 19b4c1e0146..c86ba04ef40 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UUIDStringTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UUIDStringTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class UUIDStringTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UserTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UserTest.java index 476ef2aaa8f..940968976d5 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UserTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/UserTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class UserTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/WhaleTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/WhaleTest.java index 8276f7838da..234c293f88d 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/WhaleTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/WhaleTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class WhaleTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ZebraTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ZebraTest.java index 5bed29a10c5..e88737726e2 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ZebraTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/components/schemas/ZebraTest.java @@ -5,7 +5,6 @@ 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.validation.MapUtils; import org.checkerframework.checker.nullness.qual.Nullable; @@ -15,5 +14,5 @@ import java.util.AbstractMap; public class ZebraTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); } diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java index 476dab2c3da..b16e6ddb941 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/ContentHeaderTest.java @@ -90,7 +90,7 @@ public void testSerialization() throws ValidationException, NotImplementedExcept true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; class ApplicationJsonMediaType implements MediaType { @Override diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java index b1dc30975ab..6f2c8ce93cf 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/header/SchemaHeaderTest.java @@ -86,7 +86,7 @@ public void testSerialization() throws ValidationException, NotImplementedExcept true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; for (ParamTestCase testCase: testCases) { var header = new SchemaHeader( @@ -128,7 +128,7 @@ private void assertNull(@Nullable Object object) { @Test public void testDeserialization() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); SchemaHeader header = getHeader(NullJsonSchema.NullJsonSchema1.getInstance()); @Nullable Object deserialized = header.deserialize(List.of(""), false, configuration); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java index 93a5adb916a..b44c2e57a4e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java @@ -96,7 +96,7 @@ private String getJsonBody(SerializedRequestBody requestBody) { @Test public void testSerializeApplicationJson() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); String jsonBody; SerializedRequestBody requestBody = serializer.serialize( @@ -167,7 +167,7 @@ public void testSerializeApplicationJson() throws ValidationException, NotImplem @Test public void testSerializeTextPlain() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); SerializedRequestBody requestBody = serializer.serialize( new TextplainRequestBody( diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java index e4656ecbbc3..8ead62eb4d8 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java @@ -155,7 +155,7 @@ public void testDeserializeApplicationJsonNull() throws ValidationException, Api var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -171,7 +171,7 @@ public void testDeserializeApplicationJsonTrue() throws ValidationException, Api var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -187,7 +187,7 @@ public void testDeserializeApplicationJsonFalse() throws ValidationException, Ap var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -203,7 +203,7 @@ public void testDeserializeApplicationJsonInt() throws ValidationException, ApiE var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -219,7 +219,7 @@ public void testDeserializeApplicationJsonFloat() throws ValidationException, Ap var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -235,7 +235,7 @@ public void testDeserializeApplicationJsonString() throws ValidationException, A var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java index 206c683cd50..ef64ccf8f8b 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java @@ -18,7 +18,7 @@ public class AnyTypeSchemaTest { static final AnyTypeJsonSchema.AnyTypeJsonSchema1 schema = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance(); - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); @SuppressWarnings("nullness") private Void assertNull(@Nullable Object object) { diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java index 0ca5e56ecd2..297432ee456 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java @@ -22,7 +22,7 @@ import java.util.Set; public class ArrayTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -69,7 +69,7 @@ public FrozenList validate(List arg, SchemaConfiguration configuratio Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -155,7 +155,7 @@ public ArrayWithOutputClsSchemaList validate(List arg, SchemaConfiguration co Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java index 7ac24fbeaa2..d2990773fa7 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class BooleanSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 booleanJsonSchema = BooleanJsonSchema.BooleanJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java index 17d5f35dcbe..15967a549cc 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ListSchemaTest.java @@ -16,7 +16,7 @@ import java.util.List; public class ListSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ListJsonSchema.ListJsonSchema1 listJsonSchema = ListJsonSchema.ListJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java index 5b03fec8609..68c00adfc8e 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/MapSchemaTest.java @@ -18,7 +18,7 @@ import java.util.Map; public class MapSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java index eb1c70ef049..a4f96beb7ca 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NullSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NullSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NullJsonSchema.NullJsonSchema1 nullJsonSchema = NullJsonSchema.NullJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java index fcde27495e3..46e3454809f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/NumberSchemaTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NumberSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NumberJsonSchema.NumberJsonSchema1 numberJsonSchema = NumberJsonSchema.NumberJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java index fad3d574369..28dc7c066ef 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/ObjectTypeSchemaTest.java @@ -24,7 +24,7 @@ import java.util.Set; public class ObjectTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -82,7 +82,7 @@ public static ObjectWithPropsSchema getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -169,7 +169,7 @@ public FrozenMap validate(Map arg, SchemaConfiguration configurati Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -255,7 +255,7 @@ public static ObjectWithPropsAndAddpropsSchema getInstance() { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -350,7 +350,7 @@ public ObjectWithOutputTypeSchemaMap validate(Map arg, SchemaConfiguration Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java index d3cba69fb20..23b73510e3f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/RefBooleanSchemaTest.java @@ -17,7 +17,7 @@ public static class RefBooleanSchema { public static class RefBooleanSchema1 extends BooleanJsonSchema.BooleanJsonSchema1 {} } - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 refBooleanJsonSchema = RefBooleanSchema.RefBooleanSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java index ea3ec6ae8c3..f0049b7e93f 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/AdditionalPropertiesValidatorTest.java @@ -74,7 +74,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -109,7 +109,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -129,7 +129,7 @@ public void testIncorrectPropertyValueFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java index cb03bcf8f5b..ca2ec5a1299 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/FormatValidatorTest.java @@ -23,7 +23,7 @@ public class FormatValidatorTest { static final ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java index 5b70aada50c..391888f03ec 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/ItemsValidatorTest.java @@ -58,7 +58,7 @@ public void testCorrectItemsSucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -92,7 +92,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -112,7 +112,7 @@ public void testIncorrectItemFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java index c1cc4c84e9e..302ae7eeeec 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/JsonSchemaTest.java @@ -61,7 +61,7 @@ public void testValidateSucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java index e35b145e721..0112b383f84 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/PropertiesValidatorTest.java @@ -63,7 +63,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -96,7 +96,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -116,7 +116,7 @@ public void testIncorrectPropertyValueFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java index 58c160a0499..72d044cf4cf 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/RequiredValidatorTest.java @@ -58,7 +58,7 @@ public void testCorrectPropertySucceeds() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -81,7 +81,7 @@ public void testNotApplicableTypeReturnsNull() throws ValidationException { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -101,7 +101,7 @@ public void testIncorrectPropertyFails() { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java index c31855af4ff..01378dd4d41 100644 --- a/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java +++ b/samples/client/petstore/java/src/test/java/org/openapijsonschematools/client/schemas/validation/TypeValidatorTest.java @@ -22,7 +22,7 @@ public void testValidateSucceeds() throws ValidationException { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -41,7 +41,7 @@ public void testValidateFailsIntIsNotString() { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md b/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md index 2371ebebf77..783901eac42 100644 --- a/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/components/headers/header_ref_content_schema_header/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**string_with_validation.StringWithValidation**](../../../../../../components/schema/string_with_validation.md) | str | str +[**string_with_validation.StringWithValidation**](../../../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/headers/headers/content/application_json/schema.md b/samples/client/petstore/python/docs/components/headers/headers/content/application_json/schema.md deleted file mode 100644 index 2371ebebf77..00000000000 --- a/samples/client/petstore/python/docs/components/headers/headers/content/application_json/schema.md +++ /dev/null @@ -1,9 +0,0 @@ -# Schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**string_with_validation.StringWithValidation**](../../../../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/headers/headers/schema.md b/samples/client/petstore/python/docs/components/headers/headers/schema.md deleted file mode 100644 index 6c4c2fa9ac2..00000000000 --- a/samples/client/petstore/python/docs/components/headers/headers/schema.md +++ /dev/null @@ -1,9 +0,0 @@ -# Schema -``` -type: schemas.Schema -``` - -## Ref Schema Info -Ref Schema | Input Type | Output Type ----------- | ---------- | ----------- -[**string_with_validation.StringWithValidation**](../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md b/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md index 2371ebebf77..783901eac42 100644 --- a/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/components/parameters/parameter_component_ref_schema_string_with_validation/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**string_with_validation.StringWithValidation**](../../../../../../components/schema/string_with_validation.md) | str | str +[**string_with_validation.StringWithValidation**](../../../../../components/schema/string_with_validation.md) | str | str diff --git a/samples/client/petstore/python/docs/components/responses/response_headers_with_no_body/headers/headers/schema.md b/samples/client/petstore/python/docs/components/responses/response_headers_with_no_body/headers/headers/schema.md deleted file mode 100644 index d9270bb57c1..00000000000 --- a/samples/client/petstore/python/docs/components/responses/response_headers_with_no_body/headers/headers/schema.md +++ /dev/null @@ -1,9 +0,0 @@ -# Schema -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -str | str | diff --git a/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/headers/headers/schema.md b/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/headers/headers/schema.md deleted file mode 100644 index d9270bb57c1..00000000000 --- a/samples/client/petstore/python/docs/components/responses/response_success_inline_content_and_header/headers/headers/schema.md +++ /dev/null @@ -1,9 +0,0 @@ -# Schema -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -str | str | diff --git a/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md b/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md index f57cfff3b27..1f3a4e91089 100644 --- a/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/components/responses/response_success_with_json_api_response/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**api_response.ApiResponse**](../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../components/schema/api_response.md#apiresponsedict) +[**api_response.ApiResponse**](../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md index ebcaaa9c93d..9bb5d264b87 100644 --- a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_json/schema.md @@ -28,7 +28,7 @@ type: typing.Union[ ``` List/Tuple Item Type | Description | Notes -------------------- | ------------- | ------------- -[pet.PetDictInput](../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../components/schema/pet.md#petdict) | | +[pet.PetDictInput](../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../components/schema/pet.md#petdict) | | ## SchemaTuple ``` @@ -46,4 +46,4 @@ configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None ### methods Method | Input Type | Return Type | Notes ------ | ---------- | ----------- | ------ -__getitem__ | int | [pet.PetDict](../../../../../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called +__getitem__ | int | [pet.PetDict](../../../../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md index dd39c894998..863205ccfcd 100644 --- a/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md +++ b/samples/client/petstore/python/docs/components/responses/response_successful_xml_and_json_array_of_pet/content/application_xml/schema.md @@ -28,7 +28,7 @@ type: typing.Union[ ``` List/Tuple Item Type | Description | Notes -------------------- | ------------- | ------------- -[pet.PetDictInput](../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../components/schema/pet.md#petdict) | | +[pet.PetDictInput](../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../components/schema/pet.md#petdict) | | ## SchemaTuple ``` @@ -46,4 +46,4 @@ configuration | typing.Optional[schema_configuration.SchemaConfiguration] = None ### methods Method | Input Type | Return Type | Notes ------ | ---------- | ----------- | ------ -__getitem__ | int | [pet.PetDict](../../../../../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called +__getitem__ | int | [pet.PetDict](../../../../../components/schema/pet.md#petdict) | This method is used under the hood when instance[0] is called diff --git a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md index c0b85ba6a06..eb2a840ba64 100644 --- a/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/another_fake_dummy/patch/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**client.Client**](../../../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../../../components/schema/client.md#clientdict) +[**client.Client**](../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/paths/common_param_sub_dir/parameters/0/schema.md b/samples/client/petstore/python/docs/paths/common_param_sub_dir/parameters/0/schema.md deleted file mode 100644 index 37cef94ee9a..00000000000 --- a/samples/client/petstore/python/docs/paths/common_param_sub_dir/parameters/0/schema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Schema -petstore_api.paths.common_param_sub_dir.parameters.0.schema -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -typing.Literal["a", "b"] | typing.Literal["a", "b"] | must be one of ["a", "b"] diff --git a/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md index c0b85ba6a06..eb2a840ba64 100644 --- a/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake/patch/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**client.Client**](../../../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../../../components/schema/client.md#clientdict) +[**client.Client**](../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md index e0e5660d7ab..978ab8b4c9a 100644 --- a/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_additional_properties_with_array_of_enums/get/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums**](../../../../../../../../../components/schema/additional_properties_with_array_of_enums.md) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) +[**additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnums**](../../../../../../../components/schema/additional_properties_with_array_of_enums.md) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDictInput](../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdictinput), [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) | [additional_properties_with_array_of_enums.AdditionalPropertiesWithArrayOfEnumsDict](../../../../../../../components/schema/additional_properties_with_array_of_enums.md#additionalpropertieswitharrayofenumsdict) diff --git a/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md index c0b85ba6a06..eb2a840ba64 100644 --- a/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_classname_test/patch/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**client.Client**](../../../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../../../components/schema/client.md#clientdict) +[**client.Client**](../../../../../../../components/schema/client.md) | [client.ClientDictInput](../../../../../../../components/schema/client.md#clientdictinput), [client.ClientDict](../../../../../../../components/schema/client.md#clientdict) | [client.ClientDict](../../../../../../../components/schema/client.md#clientdict) diff --git a/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md index 7fc464a6a08..e144921074a 100644 --- a/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_health/get/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**health_check_result.HealthCheckResult**](../../../../../../../../../components/schema/health_check_result.md) | [health_check_result.HealthCheckResultDictInput](../../../../../../../../../components/schema/health_check_result.md#healthcheckresultdictinput), [health_check_result.HealthCheckResultDict](../../../../../../../../../components/schema/health_check_result.md#healthcheckresultdict) | [health_check_result.HealthCheckResultDict](../../../../../../../../../components/schema/health_check_result.md#healthcheckresultdict) +[**health_check_result.HealthCheckResult**](../../../../../../../components/schema/health_check_result.md) | [health_check_result.HealthCheckResultDictInput](../../../../../../../components/schema/health_check_result.md#healthcheckresultdictinput), [health_check_result.HealthCheckResultDict](../../../../../../../components/schema/health_check_result.md#healthcheckresultdict) | [health_check_result.HealthCheckResultDict](../../../../../../../components/schema/health_check_result.md#healthcheckresultdict) diff --git a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md index bdac4c70d4b..2bf736fc461 100644 --- a/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_pet_id_upload_image_with_required_file/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**api_response.ApiResponse**](../../../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../../../components/schema/api_response.md#apiresponsedict) +[**api_response.ApiResponse**](../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md index 5cceb97b8dc..4f46da8c96c 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_array_of_enums/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**array_of_enums.ArrayOfEnums**](../../../../../../../../../components/schema/array_of_enums.md) | [array_of_enums.ArrayOfEnumsTupleInput](../../../../../../../../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../../../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) | [array_of_enums.ArrayOfEnumsTuple](../../../../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) +[**array_of_enums.ArrayOfEnums**](../../../../../../../components/schema/array_of_enums.md) | [array_of_enums.ArrayOfEnumsTupleInput](../../../../../../../components/schema/array_of_enums.md#arrayofenumstupleinput), [array_of_enums.ArrayOfEnumsTuple](../../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) | [array_of_enums.ArrayOfEnumsTuple](../../../../../../../components/schema/array_of_enums.md#arrayofenumstuple) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md index 94d79b0fae9..f4143ded2d8 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_arraymodel/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**animal_farm.AnimalFarm**](../../../../../../../../../components/schema/animal_farm.md) | [animal_farm.AnimalFarmTupleInput](../../../../../../../../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../../../../../../../../components/schema/animal_farm.md#animalfarmtuple) | [animal_farm.AnimalFarmTuple](../../../../../../../../../components/schema/animal_farm.md#animalfarmtuple) +[**animal_farm.AnimalFarm**](../../../../../../../components/schema/animal_farm.md) | [animal_farm.AnimalFarmTupleInput](../../../../../../../components/schema/animal_farm.md#animalfarmtupleinput), [animal_farm.AnimalFarmTuple](../../../../../../../components/schema/animal_farm.md#animalfarmtuple) | [animal_farm.AnimalFarmTuple](../../../../../../../components/schema/animal_farm.md#animalfarmtuple) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md index 08275070995..04222111b60 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_boolean/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**boolean.Boolean**](../../../../../../../../../components/schema/boolean.md) | bool | bool +[**boolean.Boolean**](../../../../../../../components/schema/boolean.md) | bool | bool diff --git a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md index 47736ffbee2..74c47d6bcb7 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_composed_one_of_number_with_validations/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**composed_one_of_different_types.ComposedOneOfDifferentTypes**](../../../../../../../../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**composed_one_of_different_types.ComposedOneOfDifferentTypes**](../../../../../../../components/schema/composed_one_of_different_types.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md index 65e46daa5e2..311fad29c72 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_enum/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**string_enum.StringEnum**](../../../../../../../../../components/schema/string_enum.md) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] +[**string_enum.StringEnum**](../../../../../../../components/schema/string_enum.md) | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] | None, typing.Literal["placed", "approved", "delivered", "single quoted", "multiple\nlines", "double quote \n with newline"] diff --git a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md index 42efb20d56f..7c672eb2495 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_mammal/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**mammal.Mammal**](../../../../../../../../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO +[**mammal.Mammal**](../../../../../../../components/schema/mammal.md) | dict, schemas.immutabledict, str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO diff --git a/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md index f940da15e7c..3eb12fbbca2 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_number/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**number_with_validations.NumberWithValidations**](../../../../../../../../../components/schema/number_with_validations.md) | float, int | float, int +[**number_with_validations.NumberWithValidations**](../../../../../../../components/schema/number_with_validations.md) | float, int | float, int diff --git a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md index e29a68d0a04..70eb061f00c 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_object_model_with_ref_props/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**object_model_with_ref_props.ObjectModelWithRefProps**](../../../../../../../../../components/schema/object_model_with_ref_props.md) | [object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) +[**object_model_with_ref_props.ObjectModelWithRefProps**](../../../../../../../components/schema/object_model_with_ref_props.md) | [object_model_with_ref_props.ObjectModelWithRefPropsDictInput](../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdictinput), [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) | [object_model_with_ref_props.ObjectModelWithRefPropsDict](../../../../../../../components/schema/object_model_with_ref_props.md#objectmodelwithrefpropsdict) diff --git a/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md index 513c50c148a..9ecd41d6929 100644 --- a/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_refs_string/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**string.String**](../../../../../../../../../components/schema/string.md) | str | str +[**string.String**](../../../../../../../components/schema/string.md) | str | str diff --git a/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md index bdac4c70d4b..2bf736fc461 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_file/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**api_response.ApiResponse**](../../../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../../../components/schema/api_response.md#apiresponsedict) +[**api_response.ApiResponse**](../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md index bdac4c70d4b..2bf736fc461 100644 --- a/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/fake_upload_files/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**api_response.ApiResponse**](../../../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../../../components/schema/api_response.md#apiresponsedict) +[**api_response.ApiResponse**](../../../../../../../components/schema/api_response.md) | [api_response.ApiResponseDictInput](../../../../../../../components/schema/api_response.md#apiresponsedictinput), [api_response.ApiResponseDict](../../../../../../../components/schema/api_response.md#apiresponsedict) | [api_response.ApiResponseDict](../../../../../../../components/schema/api_response.md#apiresponsedict) diff --git a/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md index 4ebde166145..408d34d4a80 100644 --- a/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/foo/get/responses/response_default/content/application_json/schema.md @@ -14,7 +14,7 @@ type: typing.Mapping[str, schemas.INPUT_TYPES_ALL] ``` Key | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**string** | [foo.FooDictInput](../../../../../../../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../../../../../../../components/schema/foo.md#foodict) | | [optional] +**string** | [foo.FooDictInput](../../../../../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../../../../../components/schema/foo.md#foodict) | | [optional] **any_string_name** | dict, schemas.immutabledict, list, tuple, decimal.Decimal, float, int, str, datetime.date, datetime.datetime, uuid.UUID, bool, None, bytes, io.FileIO, io.BufferedReader, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] ## SchemaDict @@ -25,13 +25,13 @@ base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] ### __new__ method Keyword Argument | Type | Description | Notes ---------------- | ---- | ----------- | ----- -**string** | [foo.FooDictInput](../../../../../../../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../../../../../../../components/schema/foo.md#foodict), schemas.Unset | | [optional] +**string** | [foo.FooDictInput](../../../../../../../components/schema/foo.md#foodictinput), [foo.FooDict](../../../../../../../components/schema/foo.md#foodict), schemas.Unset | | [optional] **kwargs** | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO | any string name can be used but the value must be the correct type | [optional] typed value is accessed with the get_additional_property_ method ### properties Property | Type | Description | Notes -------- | ---- | ----------- | ----- -**string** | [foo.FooDict](../../../../../../../../../components/schema/foo.md#foodict), schemas.Unset | | [optional] +**string** | [foo.FooDict](../../../../../../../components/schema/foo.md#foodict), schemas.Unset | | [optional] ### methods Method | Input Type | Return Type | Notes diff --git a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md index a74a0ed3279..d7dee242c11 100644 --- a/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md +++ b/samples/client/petstore/python/docs/paths/pet_find_by_status/get.md @@ -126,6 +126,7 @@ server_index | Class | Description #### Url https://path-server-test.petstore.local/v2 + ### Server1 #### Url diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md index cd31f449b25..5df311896e1 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**ref_pet.RefPet**](../../../../../../../../../components/schema/ref_pet.md) | [pet.PetDictInput](../../../../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../../../../../../components/schema/pet.md#petdict) +[**ref_pet.RefPet**](../../../../../../../components/schema/ref_pet.md) | [pet.PetDictInput](../../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../../../../components/schema/pet.md#petdict) diff --git a/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md index aca75d53866..757e2da3bd9 100644 --- a/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md +++ b/samples/client/petstore/python/docs/paths/pet_pet_id/get/responses/response_200/content/application_xml/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**pet.Pet**](../../../../../../../../../components/schema/pet.md) | [pet.PetDictInput](../../../../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../../../../../../components/schema/pet.md#petdict) +[**pet.Pet**](../../../../../../../components/schema/pet.md) | [pet.PetDictInput](../../../../../../../components/schema/pet.md#petdictinput), [pet.PetDict](../../../../../../../components/schema/pet.md#petdict) | [pet.PetDict](../../../../../../../components/schema/pet.md#petdict) diff --git a/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md index db1b5c51580..442903201dc 100644 --- a/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**order.Order**](../../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) +[**order.Order**](../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md index db1b5c51580..442903201dc 100644 --- a/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md +++ b/samples/client/petstore/python/docs/paths/store_order/post/responses/response_200/content/application_xml/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**order.Order**](../../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) +[**order.Order**](../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md index db1b5c51580..442903201dc 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**order.Order**](../../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) +[**order.Order**](../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md index db1b5c51580..442903201dc 100644 --- a/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md +++ b/samples/client/petstore/python/docs/paths/store_order_order_id/get/responses/response_200/content/application_xml/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**order.Order**](../../../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../../../components/schema/order.md#orderdict) +[**order.Order**](../../../../../../../components/schema/order.md) | [order.OrderDictInput](../../../../../../../components/schema/order.md#orderdictinput), [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) | [order.OrderDict](../../../../../../../components/schema/order.md#orderdict) diff --git a/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/header_parameters.md b/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/header_parameters.md deleted file mode 100644 index 568e95e6ac1..00000000000 --- a/samples/client/petstore/python/docs/paths/user_login/get/responses/response_200/header_parameters.md +++ /dev/null @@ -1,44 +0,0 @@ -# Headers -``` -type: schemas.Schema -``` - -## validate method -Input Type | Return Type | Notes ------------- | ------------- | ------------- -[HeadersDictInput](#headersdictinput), [HeadersDict](#headersdict) | [HeadersDict](#headersdict) | - -## HeadersDictInput -``` -type: typing.TypedDict -``` -Key | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**X-Rate-Limit** | int | | -**int32** | int | | -**ref-content-schema-header** | str | | -**X-Expires-After** | str, datetime.datetime | | [optional] -**numberHeader** | str | | [optional] - -## HeadersDict -``` -base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES] - -``` -### __new__ method -Keyword Argument | Type | Description | Notes ----------------- | ---- | ----------- | ----- -**int32** | int | | -**numberHeader** | str, schemas.Unset | | [optional] - -### properties -Property | Type | Description | Notes --------- | ---- | ----------- | ----- -**int32** | int | | -**numberHeader** | str, schemas.Unset | | [optional] - -### methods -Method | Input Type | Return Type | Notes ------- | ---------- | ----------- | ------ -from_dict_ | [HeadersDictInput](#headersdictinput), [HeadersDict](#headersdict) | [HeadersDict](#headersdict) | a constructor -__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["X-Rate-Limit"], instance["ref-content-schema-header"], instance["X-Expires-After"], diff --git a/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md index 8720ba900b2..95c59621bdc 100644 --- a/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md +++ b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_json/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**user.User**](../../../../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../../../../components/schema/user.md#userdict) +[**user.User**](../../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../../components/schema/user.md#userdict) diff --git a/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md index 8720ba900b2..95c59621bdc 100644 --- a/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md +++ b/samples/client/petstore/python/docs/paths/user_username/get/responses/response_200/content/application_xml/schema.md @@ -6,4 +6,4 @@ type: schemas.Schema ## Ref Schema Info Ref Schema | Input Type | Output Type ---------- | ---------- | ----------- -[**user.User**](../../../../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../../../../components/schema/user.md#userdict) +[**user.User**](../../../../../../../components/schema/user.md) | [user.UserDictInput](../../../../../../../components/schema/user.md#userdictinput), [user.UserDict](../../../../../../../components/schema/user.md#userdict) | [user.UserDict](../../../../../../../components/schema/user.md#userdict) diff --git a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java index 46742e3d501..852cc36ba23 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java +++ b/src/main/java/org/openapijsonschematools/codegen/generatorrunner/DefaultGeneratorRunner.java @@ -496,7 +496,7 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI generateXDocs(files, operationJsonPath, CodegenConstants.JSON_PATH_LOCATION_TYPE.OPERATION, CodegenConstants.APIS, endpointInfo, true); // paths.some_path.security.security_requirement_0.py - if (operation.security != null) { + if (operation.security != null && operation.security.subpackage != null && operation.security.subpackage.equals(operation.responses.subpackage)) { String securityJsonPath = operationJsonPath + "/security"; generateSecurity(files, operation.security, securityJsonPath, "../../../"); } @@ -508,7 +508,7 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI generateRequestBodyDoc(files, operation.requestBody, requestBodyJsonPath, "../../../", generator.shouldGenerateFile(requestBodyJsonPath, true)); } - if (operation.servers != null) { + if (operation.servers != null && operation.servers.subpackage != null && operation.servers.subpackage.equals(operation.responses.subpackage)) { generateServers(files, operation.servers, operationJsonPath + "/servers", "../../../"); } @@ -549,7 +549,7 @@ private void generatePathItem(List files, CodegenKey pathKey, CodegenPathI String code = responseEntry.getKey(); CodegenResponse response = responseEntry.getValue(); String responseJsonPath = responsesJsonPath + "/" + code; - generateResponse(files, response, responseJsonPath, "../../../../../"); + generateResponse(files, response, responseJsonPath, "../../../../"); } } @@ -607,7 +607,7 @@ private void generateContent(List files, LinkedHashMap contentTypeTemplateInfo = generator.jsonPathTemplateFiles().get(CodegenConstants.JSON_PATH_LOCATION_TYPE.CONTENT_TYPE); if (contentTypeTemplateInfo == null || contentTypeTemplateInfo.isEmpty()) { @@ -726,7 +726,7 @@ private void generateRequestBody(List files, CodegenRequestBody requestBod // schemas LinkedHashMap content = requestBody.content; if (content != null && !content.isEmpty()) { - generateContent(files, content, jsonPath, docRoot); + generateContent(files, content, jsonPath, docRoot + "../"); } } @@ -1350,8 +1350,8 @@ Map buildSupportFileBundle( bundle.put("apiPackage", generator.apiPackage()); URL url = URLPathUtils.getServerURL(openAPI, null); - List> allServers = new ArrayList<>(); - List> allSecurity = new ArrayList<>(); + TreeSet> allServers = new TreeSet<>(); + TreeSet> allSecurity = new TreeSet<>(); boolean hasServers = false; if (servers != null) { allServers.add(servers); @@ -1368,11 +1368,11 @@ Map buildSupportFileBundle( } if (pathItem.operations != null) { for (CodegenOperation operation: pathItem.operations.values()) { - if (operation.servers != null) { + if (operation.servers != null && !allServers.contains(operation.servers)) { allServers.add(operation.servers); hasServers = true; } - if (operation.security != null) { + if (operation.security != null && !allSecurity.contains(operation.security)) { allSecurity.add(operation.security); } } diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java index 6d5daca1765..aa467a0700b 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/DefaultGenerator.java @@ -2965,12 +2965,12 @@ public CodegenOperation fromOperation(Operation operation, String jsonPath, Link summary, description, produces, - servers, + usedServers, requestBody, parametersInfo, hasRequiredParamOrBody, hasOptionalParamOrBody, - security, + usedSecurity, tags, responses, statusCodeResponses, diff --git a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java index b7de7443a23..c9ec28837f9 100644 --- a/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java +++ b/src/main/java/org/openapijsonschematools/codegen/generators/openapimodels/CodegenList.java @@ -6,7 +6,7 @@ /** * A class to store inline codegenschema definitions */ -public class CodegenList extends AbstractList implements OperationInputProvider { +public class CodegenList extends AbstractList implements OperationInputProvider, Comparable { public final List items; public final CodegenKey jsonPathPiece; public final String subpackage; @@ -49,4 +49,9 @@ public String operationInputVariableName() { public String pathFromDocRoot() { return pathFromDocRoot; } + + @Override + public int compareTo(CodegenList o) { + return jsonPathPiece.pascalCase.compareTo(o.jsonPathPiece.pascalCase); + } } diff --git a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs index 697141b80f9..f4622bd47a0 100644 --- a/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs +++ b/src/main/resources/java/src/main/java/packagename/components/schemas/SchemaClass/_validate_implementor.hbs @@ -7,7 +7,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -57,7 +57,7 @@ public {{#if ../mapOutputJsonPathPiece}}{{../mapOutputJsonPathPiece.pascalCase}} Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -105,7 +105,7 @@ public {{#if ../arrayOutputJsonPathPiece}}{{../arrayOutputJsonPathPiece.pascalCa Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -122,7 +122,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -136,7 +136,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -167,7 +167,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -238,7 +238,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); return castArg; @@ -252,7 +252,7 @@ public Void validate(Void arg, SchemaConfiguration configuration) throws Validat Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -264,7 +264,7 @@ public boolean validate(boolean arg, SchemaConfiguration configuration) throws V Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -276,7 +276,7 @@ public Number validate(Number arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -304,7 +304,7 @@ public String validate(String arg, SchemaConfiguration configuration) throws Val Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -362,7 +362,7 @@ public {{#if arrayOutputJsonPathPiece}}{{arrayOutputJsonPathPiece.pascalCase}}{{ Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -411,7 +411,7 @@ public {{#if mapOutputJsonPathPiece}}{{mapOutputJsonPathPiece.pascalCase}}{{else Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); 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 9f1f33ad456..c7ca5b775b4 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 @@ -148,7 +148,7 @@ import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); {{> src/main/java/packagename/components/schemas/validateSchemaCodeSample payloadVarName="validatedPayload" configVarName="configuration" }} ``` {{/if}} diff --git a/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs b/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs index e1e0e38be0d..4d6caf869bb 100644 --- a/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs +++ b/src/main/resources/java/src/main/java/packagename/configurations/ApiConfiguration.hbs @@ -1,7 +1,6 @@ package {{{packageName}}}.configurations; {{#gt allSecurity.size 0}} -import {{{packageName}}}.exceptions.UnsetPropertyException; import {{{packageName}}}.securityrequirementobjects.SecurityRequirementObject; {{/gt}} import {{{packageName}}}.servers.Server; @@ -21,7 +20,6 @@ import {{packageName}}.{{jsonPathPiece.pascalCase}}; {{/each}} {{#if securitySchemes}} import {{packageName}}.securityschemes.SecurityScheme; -import {{packageName}}.exceptions.UnsetPropertyException; {{/if}} import org.checkerframework.checker.nullness.qual.Nullable; @@ -44,11 +42,11 @@ public class ApiConfiguration { {{/if}} public ApiConfiguration() { - serverInfo = new ServerInfo(); - serverIndexInfo = new ServerIndexInfo(); + serverInfo = new ServerInfoBuilder().build(); + serverIndexInfo = new ServerIndexInfoBuilder().build(); {{#gt allSecurity.size 0}} securityInfo = new SecurityInfo(); - securityIndexInfo = new SecurityIndexInfo(); + securityIndexInfo = new SecurityIndexInfoBuilder().build(); {{/gt}} {{#if securitySchemes}} securitySchemeInfo = new HashMap<>(); @@ -74,48 +72,85 @@ public class ApiConfiguration { public static class ServerInfo { {{#each allServers}} - protected final {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1 {{jsonPathPiece.camelCase}}; + final {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1 {{jsonPathPiece.camelCase}}; {{/each}} - public ServerInfo() { + ServerInfo( + {{#each allServers}} + {{jsonPathPiece.pascalCase}}. @Nullable {{jsonPathPiece.pascalCase}}1 {{jsonPathPiece.camelCase}}{{#unless @last}},{{/unless}} + {{/each}} + ) { {{#each allServers}} - {{jsonPathPiece.camelCase}} = new {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1(); + this.{{jsonPathPiece.camelCase}} = Objects.requireNonNullElse({{jsonPathPiece.camelCase}}, new {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}Builder().build()); {{/each}} } + } - public ServerInfo( + public static class ServerInfoBuilder { {{#each allServers}} - {{jsonPathPiece.pascalCase}}. @Nullable {{jsonPathPiece.pascalCase}}1 {{jsonPathPiece.camelCase}}{{#unless @last}},{{/unless}} + private {{jsonPathPiece.pascalCase}}. @Nullable {{jsonPathPiece.pascalCase}}1 {{jsonPathPiece.camelCase}}; {{/each}} - ) { + public ServerInfoBuilder() {} {{#each allServers}} - this.{{jsonPathPiece.camelCase}} = Objects.requireNonNullElseGet({{jsonPathPiece.camelCase}}, {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1::new); + + public ServerInfoBuilder {{jsonPathPiece.camelCase}}({{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1 {{jsonPathPiece.camelCase}}) { + this.{{jsonPathPiece.camelCase}} = {{jsonPathPiece.camelCase}}; + return this; + } {{/each}} + + public ServerInfo build() { + return new ServerInfo( + {{#each allServers}} + {{jsonPathPiece.camelCase}}{{#unless @last}},{{/unless}} + {{/each}} + ); } } public static class ServerIndexInfo { {{#each allServers}} - protected {{jsonPathPiece.pascalCase}}. @Nullable ServerIndex {{jsonPathPiece.camelCase}}ServerIndex; + final {{jsonPathPiece.pascalCase}}.ServerIndex {{jsonPathPiece.camelCase}}ServerIndex; + {{/each}} + + ServerIndexInfo( + {{#each allServers}} + {{jsonPathPiece.pascalCase}}. @Nullable ServerIndex {{jsonPathPiece.camelCase}}ServerIndex{{#unless @last}},{{/unless}} {{/each}} - public ServerIndexInfo() {} + ) { {{#each allServers}} + this.{{jsonPathPiece.camelCase}}ServerIndex = Objects.requireNonNullElse({{jsonPathPiece.camelCase}}ServerIndex, {{jsonPathPiece.pascalCase}}.ServerIndex.SERVER_0); + {{/each}} + } + } - public ServerIndexInfo {{jsonPathPiece.camelCase}}ServerIndex({{jsonPathPiece.pascalCase}}.ServerIndex serverIndex) { + public static class ServerIndexInfoBuilder { + {{#each allServers}} + private {{jsonPathPiece.pascalCase}}. @Nullable ServerIndex {{jsonPathPiece.camelCase}}ServerIndex; + {{/each}} + public ServerIndexInfoBuilder() {} + {{#each allServers}} + + public ServerIndexInfoBuilder {{jsonPathPiece.camelCase}}ServerIndex({{jsonPathPiece.pascalCase}}.ServerIndex serverIndex) { this.{{jsonPathPiece.camelCase}}ServerIndex = serverIndex; return this; } {{/each}} + + public ServerIndexInfo build() { + return new ServerIndexInfo( + {{#each allServers}} + {{jsonPathPiece.camelCase}}ServerIndex{{#unless @last}},{{/unless}} + {{/each}} + ); + } } {{#each allServers}} public Server getServer({{jsonPathPiece.pascalCase}}. @Nullable ServerIndex serverIndex) { var serverProvider = serverInfo.{{jsonPathPiece.camelCase}}; if (serverIndex == null) { - {{jsonPathPiece.pascalCase}}. @Nullable ServerIndex configServerIndex = serverIndexInfo.{{jsonPathPiece.camelCase}}ServerIndex; - if (configServerIndex == null) { - throw new RuntimeException("{{jsonPathPiece.camelCase}}ServerIndex is unset"); - } + {{jsonPathPiece.pascalCase}}.ServerIndex configServerIndex = serverIndexInfo.{{jsonPathPiece.camelCase}}ServerIndex; return serverProvider.getServer(configServerIndex); } return serverProvider.getServer(serverIndex); @@ -137,27 +172,47 @@ public class ApiConfiguration { public static class SecurityIndexInfo { {{#each allSecurity}} - public {{jsonPathPiece.pascalCase}}. @Nullable SecurityIndex {{jsonPathPiece.camelCase}}SecurityIndex; + final {{jsonPathPiece.pascalCase}}.SecurityIndex {{jsonPathPiece.camelCase}}SecurityIndex; {{/each}} - public SecurityIndexInfo() {} + SecurityIndexInfo( + {{#each allSecurity}} + {{jsonPathPiece.pascalCase}}. @Nullable SecurityIndex {{jsonPathPiece.camelCase}}SecurityIndex{{#unless @last}},{{/unless}} + {{/each}} + ) { + {{#each allSecurity}} + this.{{jsonPathPiece.camelCase}}SecurityIndex = Objects.requireNonNullElse({{jsonPathPiece.camelCase}}SecurityIndex, {{jsonPathPiece.pascalCase}}.SecurityIndex.SECURITY_0); + {{/each}} + } + } + + public static class SecurityIndexInfoBuilder { {{#each allSecurity}} + private {{jsonPathPiece.pascalCase}}. @Nullable SecurityIndex {{jsonPathPiece.camelCase}}SecurityIndex; + {{/each}} + public SecurityIndexInfoBuilder() {} + {{#each allSecurity}} - public SecurityIndexInfo {{jsonPathPiece.camelCase}}SecurityIndex({{jsonPathPiece.pascalCase}}.SecurityIndex securityIndex) { + public SecurityIndexInfoBuilder {{jsonPathPiece.camelCase}}SecurityIndex({{jsonPathPiece.pascalCase}}.SecurityIndex securityIndex) { this.{{jsonPathPiece.camelCase}}SecurityIndex = securityIndex; return this; } - {{/each}} + {{/each}} + + public SecurityIndexInfo build() { + return new SecurityIndexInfo( + {{#each allSecurity}} + {{jsonPathPiece.camelCase}}SecurityIndex{{#unless @last}},{{/unless}} + {{/each}} + ); + } } {{#each allSecurity}} public SecurityRequirementObject getSecurityRequirementObject({{jsonPathPiece.pascalCase}}. @Nullable SecurityIndex securityIndex) { var securityInfoInstance = securityInfo.{{jsonPathPiece.camelCase}}; if (securityIndex == null) { - {{jsonPathPiece.pascalCase}}. @Nullable SecurityIndex configSecurityIndex = securityIndexInfo.{{jsonPathPiece.camelCase}}SecurityIndex; - if (configSecurityIndex == null) { - throw new RuntimeException("{{jsonPathPiece.camelCase}}SecurityIndex is unset"); - } + {{jsonPathPiece.pascalCase}}.SecurityIndex configSecurityIndex = securityIndexInfo.{{jsonPathPiece.camelCase}}SecurityIndex; return securityInfoInstance.getSecurityRequirementObject(configSecurityIndex); } return securityInfoInstance.getSecurityRequirementObject(securityIndex); diff --git a/src/main/resources/java/src/main/java/packagename/configurations/JsonSchemaKeywordFlags.hbs b/src/main/resources/java/src/main/java/packagename/configurations/JsonSchemaKeywordFlags.hbs index b7bc99dc167..8301c727ef8 100644 --- a/src/main/resources/java/src/main/java/packagename/configurations/JsonSchemaKeywordFlags.hbs +++ b/src/main/resources/java/src/main/java/packagename/configurations/JsonSchemaKeywordFlags.hbs @@ -44,94 +44,6 @@ public record JsonSchemaKeywordFlags( boolean unevaluatedProperties ) { - public static JsonSchemaKeywordFlags ofNone() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - - public static JsonSchemaKeywordFlags onlyFormat() { - return new JsonSchemaKeywordFlags( - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ); - } - public LinkedHashSet getKeywords() { LinkedHashSet enabledKeywords = new LinkedHashSet<>(); if (additionalProperties) { enabledKeywords.add("additionalProperties"); } @@ -175,4 +87,248 @@ public record JsonSchemaKeywordFlags( if (unevaluatedProperties) { enabledKeywords.add("unevaluatedProperties"); } return enabledKeywords; } + + public static class Builder { + private boolean additionalProperties; + private boolean allOf; + private boolean anyOf; + private boolean const_; + private boolean contains; + private boolean dependentRequired; + private boolean dependentSchemas; + private boolean discriminator; + private boolean else_; + private boolean enum_; + private boolean exclusiveMaximum; + private boolean exclusiveMinimum; + private boolean format; + private boolean if_; + private boolean maximum; + private boolean minimum; + private boolean items; + private boolean maxContains; + private boolean maxItems; + private boolean maxLength; + private boolean maxProperties; + private boolean minContains; + private boolean minItems; + private boolean minLength; + private boolean minProperties; + private boolean multipleOf; + private boolean not; + private boolean oneOf; + private boolean pattern; + private boolean patternProperties; + private boolean prefixItems; + private boolean properties; + private boolean propertyNames; + private boolean required; + private boolean then; + private boolean type; + private boolean uniqueItems; + private boolean unevaluatedItems; + private boolean unevaluatedProperties; + + public Builder() {} + + public Builder additionalProperties() { + additionalProperties = true; + return this; + } + public Builder allOf() { + allOf = true; + return this; + } + public Builder anyOf() { + anyOf = true; + return this; + } + public Builder const_() { + const_ = true; + return this; + } + public Builder contains() { + contains = true; + return this; + } + public Builder dependentRequired() { + dependentRequired = true; + return this; + } + public Builder dependentSchemas() { + dependentSchemas = true; + return this; + } + public Builder discriminator() { + discriminator = true; + return this; + } + public Builder else_() { + else_ = true; + return this; + } + public Builder enum_() { + enum_ = true; + return this; + } + public Builder exclusiveMaximum() { + exclusiveMaximum = true; + return this; + } + public Builder exclusiveMinimum() { + exclusiveMinimum = true; + return this; + } + public Builder format() { + format = true; + return this; + } + public Builder if_() { + if_ = true; + return this; + } + public Builder maximum() { + maximum = true; + return this; + } + public Builder minimum() { + minimum = true; + return this; + } + public Builder items() { + items = true; + return this; + } + public Builder maxContains() { + maxContains = true; + return this; + } + public Builder maxItems() { + maxItems = true; + return this; + } + public Builder maxLength() { + maxLength = true; + return this; + } + public Builder maxProperties() { + maxProperties = true; + return this; + } + public Builder minContains() { + minContains = true; + return this; + } + public Builder minItems() { + minItems = true; + return this; + } + public Builder minLength() { + minLength = true; + return this; + } + public Builder minProperties() { + minProperties = true; + return this; + } + public Builder multipleOf() { + multipleOf = true; + return this; + } + public Builder not() { + not = true; + return this; + } + public Builder oneOf() { + oneOf = true; + return this; + } + public Builder pattern() { + pattern = true; + return this; + } + public Builder patternProperties() { + patternProperties = true; + return this; + } + public Builder prefixItems() { + prefixItems = true; + return this; + } + public Builder properties() { + properties = true; + return this; + } + public Builder propertyNames() { + propertyNames = true; + return this; + } + public Builder required() { + required = true; + return this; + } + public Builder then() { + then = true; + return this; + } + public Builder type() { + type = true; + return this; + } + public Builder uniqueItems() { + uniqueItems = true; + return this; + } + public Builder unevaluatedItems() { + unevaluatedItems = true; + return this; + } + public Builder unevaluatedProperties() { + unevaluatedProperties = true; + return this; + } + public JsonSchemaKeywordFlags build() { + return new JsonSchemaKeywordFlags( + additionalProperties, + allOf, + anyOf, + const_, + contains, + dependentRequired, + dependentSchemas, + discriminator, + else_, + enum_, + exclusiveMaximum, + exclusiveMinimum, + format, + if_, + maximum, + minimum, + items, + maxContains, + maxItems, + maxLength, + maxProperties, + minContains, + minItems, + minLength, + minProperties, + multipleOf, + not, + oneOf, + pattern, + patternProperties, + prefixItems, + properties, + propertyNames, + required, + then, + type, + uniqueItems, + unevaluatedItems, + unevaluatedProperties + ); + } + } } \ No newline at end of file diff --git a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs index 9a712b2b7b9..8762d450860 100644 --- a/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs +++ b/src/main/resources/java/src/main/java/packagename/paths/path/verb/_OperationDocCodeSample.hbs @@ -79,45 +79,43 @@ import {{{packageName}}}.{{subpackage}}.{{containerJsonPathPiece.pascalCase}}; {{/with}} {{/with}} {{/each}} + {{#with servers}} +import {{packageName}}.{{#if subpackage}}{{subpackage}}{{else}}servers{{/if}}.{{jsonPathPiece.pascalCase}}; + {{/with}} import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; + {{#with responses}} +import {{packageName}}.{{subpackage}}.{{jsonPathPiece.pascalCase}}; + {{/with}} import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.AbstractMap; -// if you want to use a sever that is not SERVER_0 pass it in here and change the ServerIndex input below -ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfo( - {{#each builders}} +// if you want to use a server that is not SERVER_0 pass it in here and change the ServerIndex input below +ApiConfiguration.ServerInfo serverInfo = new ApiConfiguration.ServerInfoBuilder() + .{{servers.jsonPathPiece.camelCase}}( + new {{servers.jsonPathPiece.pascalCase}}.{{servers.jsonPathPiece.pascalCase}}Builder() + {{#each servers}} {{#if @first}} - {{#each keyToBuilder}} - {{#eq @key.camelCase "serverIndex"}} - {{#with property}} - {{! CodegenList of CodegenServer }} - {{#each this}} - {{#if @first}} - new {{jsonPathPiece.pascalCase}}(){{#unless @last}},{{/unless}} - {{else}} - null{{#unless @last}},{{/unless}} - {{/if}} - {{/each}} - {{/with}} - {{/eq}} - {{/each}} + .{{jsonPathPiece.camelCase}}(new {{jsonPathPiece.pascalCase}}()) + .build() {{/if}} {{/each}} -); -ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfo() + ) + .build(); +ApiConfiguration.ServerIndexInfo serverIndexInfo = new ApiConfiguration.ServerIndexInfoBuilder() {{#each builders}} {{#if @first}} {{#each keyToBuilder}} {{#eq @key.camelCase "serverIndex"}} {{#with property}} {{! CodegenList of CodegenServer }} - .{{jsonPathPiece.camelCase}}ServerIndex({{jsonPathPiece.pascalCase}}.ServerIndex.SERVER_0); + .{{jsonPathPiece.camelCase}}ServerIndex({{jsonPathPiece.pascalCase}}.ServerIndex.SERVER_0) {{/with}} {{/eq}} {{/each}} + .build(); {{/if}} {{/each}} {{#each builders}} @@ -134,13 +132,18 @@ List securitySchemes = new ArrayList(); {{/with}} {{/each}} {{/each}} -ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfo(); - .{{jsonPathPiece.camelCase}}SecurityIndex({{jsonPathPiece.pascalCase}}.SecurityIndex.SECURITY_0); {{/with}} {{/eq}} {{/each}} {{/if}} {{/each}} + {{#each security}} + {{#if @first}} +ApiConfiguration.SecurityIndexInfo securityIndexInfo = new ApiConfiguration.SecurityIndexInfoBuilder() + .{{jsonPathPiece.camelCase}}SecurityIndex({{jsonPathPiece.pascalCase}}.SecurityIndex.SECURITY_0) + .build(); + {{/if}} + {{/each}} Duration timeout = Duration.ofSeconds(1L); ApiConfiguration apiConfiguration = new ApiConfiguration( serverInfo @@ -157,7 +160,7 @@ ApiConfiguration apiConfiguration = new ApiConfiguration( {{/each}} timeout ); -SchemaConfiguration schemaConfiguration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); +SchemaConfiguration schemaConfiguration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1 apiClient = new {{jsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}1(apiConfiguration, schemaConfiguration); {{#gt builders.size 1}} diff --git a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs index a567563caeb..a8f709b55bc 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/AnyTypeJsonSchema.hbs @@ -89,7 +89,7 @@ public class AnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -101,7 +101,7 @@ public class AnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -113,7 +113,7 @@ public class AnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -141,7 +141,7 @@ public class AnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -183,7 +183,7 @@ public class AnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -217,7 +217,7 @@ public class AnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs index ec11de46bb8..03aa21b39c6 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/BooleanJsonSchema.hbs @@ -47,7 +47,7 @@ public class BooleanJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs index 4db4d871f87..da5e22633bf 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateJsonSchema.hbs @@ -50,7 +50,7 @@ public class DateJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs index eb371aaaa3b..71684407104 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DateTimeJsonSchema.hbs @@ -50,7 +50,7 @@ public class DateTimeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs index 5761cc9a553..c6628ee64c5 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DecimalJsonSchema.hbs @@ -49,7 +49,7 @@ public class DecimalJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs index 0fced18b575..cdf3dabb960 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/DoubleJsonSchema.hbs @@ -49,7 +49,7 @@ public class DoubleJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs index 246ffc2f834..4c6e03a0631 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/FloatJsonSchema.hbs @@ -49,7 +49,7 @@ public class FloatJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs index 6f9b9ccd666..8e5990d2b9a 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int32JsonSchema.hbs @@ -52,7 +52,7 @@ public class Int32JsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs index c3e46a01fc3..4ef6aa5f5a7 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/Int64JsonSchema.hbs @@ -54,7 +54,7 @@ public class Int64JsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs index b82c7692e20..d4d8980f787 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/IntJsonSchema.hbs @@ -54,7 +54,7 @@ public class IntJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs index 13c3d3b24d2..a969998c5a0 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/ListJsonSchema.hbs @@ -69,7 +69,7 @@ public class ListJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs index 769d4ad1723..3b6b8b802bc 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/MapJsonSchema.hbs @@ -74,7 +74,7 @@ public class MapJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs index 7a3ab0c79d5..e007547505f 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NotAnyTypeJsonSchema.hbs @@ -91,7 +91,7 @@ public class NotAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -103,7 +103,7 @@ public class NotAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -115,7 +115,7 @@ public class NotAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -143,7 +143,7 @@ public class NotAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -185,7 +185,7 @@ public class NotAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -219,7 +219,7 @@ public class NotAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs index 5013b032120..c1b918e970d 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NullJsonSchema.hbs @@ -48,7 +48,7 @@ public class NullJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs index a0b9a93c7f8..736994d2f51 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/NumberJsonSchema.hbs @@ -53,7 +53,7 @@ public class NumberJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs index e78b29157a6..56912a48a39 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/StringJsonSchema.hbs @@ -50,7 +50,7 @@ public class StringJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs index 46cc06847b4..5a6f515c37f 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/UuidJsonSchema.hbs @@ -50,7 +50,7 @@ public class UuidJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs index 4f2f6606f3d..b3f7f5e5054 100644 --- a/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs +++ b/src/main/resources/java/src/main/java/packagename/schemas/validation/UnsetAnyTypeJsonSchema.hbs @@ -76,7 +76,7 @@ public class UnsetAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Void castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -88,7 +88,7 @@ public class UnsetAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); boolean castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -100,7 +100,7 @@ public class UnsetAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Number castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -128,7 +128,7 @@ public class UnsetAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); String castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -170,7 +170,7 @@ public class UnsetAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); @@ -204,7 +204,7 @@ public class UnsetAnyTypeJsonSchema { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0]"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); PathToSchemasMap validatedPathToSchemas = new PathToSchemasMap(); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, validatedPathToSchemas, new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); diff --git a/src/main/resources/java/src/main/java/packagename/servers/ServerInfo.hbs b/src/main/resources/java/src/main/java/packagename/servers/ServerInfo.hbs index 9da445d272d..5c5999cc15d 100644 --- a/src/main/resources/java/src/main/java/packagename/servers/ServerInfo.hbs +++ b/src/main/resources/java/src/main/java/packagename/servers/ServerInfo.hbs @@ -16,16 +16,10 @@ import java.util.Objects; public class {{servers.jsonPathPiece.pascalCase}} { public static class {{servers.jsonPathPiece.pascalCase}}1 implements ServerProvider { {{#each servers}} - public final {{jsonPathPiece.pascalCase}} server{{@index}}; + private final {{jsonPathPiece.pascalCase}} server{{@index}}; {{/each}} - public {{servers.jsonPathPiece.pascalCase}}1() { - {{#each servers}} - server{{@index}} = new {{jsonPathPiece.pascalCase}}(); - {{/each}} - } - - public {{servers.jsonPathPiece.pascalCase}}1( + {{servers.jsonPathPiece.pascalCase}}1( {{#each servers}} @Nullable {{jsonPathPiece.pascalCase}} server{{@index}}{{#unless @last}},{{/unless}} {{/each}} @@ -55,6 +49,29 @@ public class {{servers.jsonPathPiece.pascalCase}} { } } + public static class {{servers.jsonPathPiece.pascalCase}}Builder { + {{#each servers}} + private @Nullable {{jsonPathPiece.pascalCase}} server{{@index}}; + {{/each}} + + public {{servers.jsonPathPiece.pascalCase}}Builder() {} + {{#each servers}} + + public {{../servers.jsonPathPiece.pascalCase}}Builder {{jsonPathPiece.camelCase}}({{jsonPathPiece.pascalCase}} server{{@index}}) { + this.server{{@index}} = server{{@index}}; + return this; + } + {{/each}} + + public {{servers.jsonPathPiece.pascalCase}}1 build() { + return new {{servers.jsonPathPiece.pascalCase}}1( + {{#each servers}} + server{{@index}}{{#unless @last}},{{/unless}} + {{/each}} + ); + } + } + public enum ServerIndex { {{#each servers}} SERVER_{{@index}}{{#unless @last}},{{/unless}} diff --git a/src/main/resources/java/src/main/java/packagename/servers/ServerInfoDoc.hbs b/src/main/resources/java/src/main/java/packagename/servers/ServerInfoDoc.hbs index 0a978304385..b792f715dfb 100644 --- a/src/main/resources/java/src/main/java/packagename/servers/ServerInfoDoc.hbs +++ b/src/main/resources/java/src/main/java/packagename/servers/ServerInfoDoc.hbs @@ -5,12 +5,14 @@ public class {{servers.jsonPathPiece.pascalCase}} A class that provides a server, and any needed server info classes - a class that is a ServerProvider +- a builder for the ServerProvider - an enum class that stores server index values {{headerSize}}# Nested Class Summary | Modifier and Type | Class and Description | | ----------------- | --------------------- | | static class | [{{servers.jsonPathPiece.pascalCase}}.{{servers.jsonPathPiece.pascalCase}}1](#{{servers.jsonPathPiece.kebabCase}}1)
class that stores a server index | +| static class | [{{servers.jsonPathPiece.pascalCase}}.{{servers.jsonPathPiece.pascalCase}}Builder](#{{servers.jsonPathPiece.kebabCase}}builder)
class that stores a server index | | enum | [{{servers.jsonPathPiece.pascalCase}}.ServerIndex](#serverindex)
class that stores a server index | {{headerSize}}# {{servers.jsonPathPiece.pascalCase}}1 @@ -21,7 +23,6 @@ A class that stores servers and allows one to be returned with a ServerIndex ins {{headerSize}}## Constructor Summary | Constructor and Description | | --------------------------- | -| {{servers.jsonPathPiece.pascalCase}}1()
Creates an instance using default server variable values | | {{servers.jsonPathPiece.pascalCase}}1({{#each servers}}@Nullable [{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md) server{{@index}}{{#unless @last}},{{/unless}}{{/each}})
Creates an instance using passed in servers | {{headerSize}}## Field Summary @@ -36,6 +37,23 @@ A class that stores servers and allows one to be returned with a ServerIndex ins | ----------------- | ---------------------- | | Server | getServer([ServerIndex](#serverindex) serverIndex) | +{{headerSize}}# {{servers.jsonPathPiece.pascalCase}}Builder + +a builder for [{{servers.jsonPathPiece.pascalCase}}1](#{{servers.jsonPathPiece.kebabCase}}1) + +{{headerSize}}## Constructor Summary +| Constructor and Description | +| --------------------------- | +| {{servers.jsonPathPiece.pascalCase}}Builder()
Creates an instance | + +{{headerSize}}## Method Summary +| Modifier and Type | Method and Description | +| ----------------- | ---------------------- | +{{#each servers}} +| [{{servers.jsonPathPiece.pascalCase}}Builder](#{{servers.jsonPathPiece.kebabCase}}builder) | {{jsonPathPiece.camelCase}}([{{jsonPathPiece.pascalCase}}]({{docRoot}}{{pathFromDocRoot}}.md) server{{@index}})
sets the server | +{{/each}} +| [{{servers.jsonPathPiece.pascalCase}}1](#{{servers.jsonPathPiece.kebabCase}}1) | build() | + {{headerSize}}# ServerIndex enum ServerIndex
diff --git a/src/main/resources/java/src/main/java/packagename/servers/ServerN.hbs b/src/main/resources/java/src/main/java/packagename/servers/ServerN.hbs index 386249654e8..0a691bd2d1b 100644 --- a/src/main/resources/java/src/main/java/packagename/servers/ServerN.hbs +++ b/src/main/resources/java/src/main/java/packagename/servers/ServerN.hbs @@ -27,7 +27,7 @@ public class {{../jsonPathPiece.pascalCase}} extends ServerWithVariables<{{conta new AbstractMap.SimpleEntry<>("{{{@key.original}}}", {{../containerJsonPathPiece.pascalCase}}.{{jsonPathPiece.pascalCase}}.getInstance().defaultValue()){{#unless @last}},{{/unless}} {{/each}} ), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()) + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()) ); } catch (ValidationException e) { throw new RuntimeException(e); 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 b87aae73c8d..a6eb4c7528c 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 @@ -15,7 +15,7 @@ import java.util.AbstractMap; {{#with schema}} public class {{containerJsonPathPiece.pascalCase}}Test { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.onlyFormat()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().format().build()); {{#each testCases}} {{#with this }} diff --git a/src/main/resources/java/src/test/java/packagename/header/ContentHeaderTest.hbs b/src/main/resources/java/src/test/java/packagename/header/ContentHeaderTest.hbs index 9ba7d43cc12..b5df506777d 100644 --- a/src/main/resources/java/src/test/java/packagename/header/ContentHeaderTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/header/ContentHeaderTest.hbs @@ -90,7 +90,7 @@ public class ContentHeaderTest { true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; class ApplicationJsonMediaType implements MediaType { @Override diff --git a/src/main/resources/java/src/test/java/packagename/header/SchemaHeaderTest.hbs b/src/main/resources/java/src/test/java/packagename/header/SchemaHeaderTest.hbs index e7e046a0615..356b4e067da 100644 --- a/src/main/resources/java/src/test/java/packagename/header/SchemaHeaderTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/header/SchemaHeaderTest.hbs @@ -86,7 +86,7 @@ public class SchemaHeaderTest { true ) ); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); BiPredicate headerFilter = (key, val) -> true; for (ParamTestCase testCase: testCases) { var header = new SchemaHeader( @@ -128,7 +128,7 @@ public class SchemaHeaderTest { @Test public void testDeserialization() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); SchemaHeader header = getHeader(NullJsonSchema.NullJsonSchema1.getInstance()); @Nullable Object deserialized = header.deserialize(List.of(""), false, configuration); diff --git a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs index 9cb130f9a46..8a091930d89 100644 --- a/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/requestbody/RequestBodySerializerTest.hbs @@ -96,7 +96,7 @@ public final class RequestBodySerializerTest { @Test public void testSerializeApplicationJson() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); String jsonBody; SerializedRequestBody requestBody = serializer.serialize( @@ -167,7 +167,7 @@ public final class RequestBodySerializerTest { @Test public void testSerializeTextPlain() throws ValidationException, NotImplementedException { - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); var serializer = new MyRequestBodySerializer(); SerializedRequestBody requestBody = serializer.serialize( new TextplainRequestBody( diff --git a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs index d2c30db34aa..dfb8a81722f 100644 --- a/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/response/ResponseDeserializerTest.hbs @@ -155,7 +155,7 @@ public class ResponseDeserializerTest { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(null).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -171,7 +171,7 @@ public class ResponseDeserializerTest { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(true).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -187,7 +187,7 @@ public class ResponseDeserializerTest { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(false).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -203,7 +203,7 @@ public class ResponseDeserializerTest { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(1).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -219,7 +219,7 @@ public class ResponseDeserializerTest { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson(3.14).getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); @@ -235,7 +235,7 @@ public class ResponseDeserializerTest { var deserializer = new MyResponseDeserializer(); byte[] bodyBytes = toJson("a").getBytes(StandardCharsets.UTF_8); BytesHttpResponse response = new BytesHttpResponse(bodyBytes, "application/json"); - SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); DeserializedHttpResponse apiResponse = deserializer.deserialize(response, configuration); if (!(apiResponse.body() instanceof ApplicationjsonBody jsonBody)) { throw new RuntimeException("body must be type ApplicationjsonBody"); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/AnyTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/AnyTypeSchemaTest.hbs index 734ad4a080f..7d774a2ac90 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/AnyTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/AnyTypeSchemaTest.hbs @@ -18,7 +18,7 @@ import java.util.LinkedHashMap; public class AnyTypeSchemaTest { static final AnyTypeJsonSchema.AnyTypeJsonSchema1 schema = AnyTypeJsonSchema.AnyTypeJsonSchema1.getInstance(); - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); @SuppressWarnings("nullness") private Void assertNull(@Nullable Object object) { diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs index c2b9687a5b2..d12b920fa1a 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ArrayTypeSchemaTest.hbs @@ -22,7 +22,7 @@ import java.util.Objects; import java.util.Set; public class ArrayTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -69,7 +69,7 @@ public class ArrayTypeSchemaTest { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -155,7 +155,7 @@ public class ArrayTypeSchemaTest { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); List castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/BooleanSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/BooleanSchemaTest.hbs index 39213dd8fd2..a7a42e569fe 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/BooleanSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/BooleanSchemaTest.hbs @@ -13,7 +13,7 @@ import java.util.LinkedHashSet; import java.util.List; public class BooleanSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 booleanJsonSchema = BooleanJsonSchema.BooleanJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ListSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ListSchemaTest.hbs index 56c0f867483..9d6d6c04740 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ListSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ListSchemaTest.hbs @@ -16,7 +16,7 @@ import java.util.LinkedHashSet; import java.util.List; public class ListSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ListJsonSchema.ListJsonSchema1 listJsonSchema = ListJsonSchema.ListJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/src/main/resources/java/src/test/java/packagename/schemas/MapSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/MapSchemaTest.hbs index 9cd90ec8758..f904e88b564 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/MapSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/MapSchemaTest.hbs @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; public class MapSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final MapJsonSchema.MapJsonSchema1 mapJsonSchema = MapJsonSchema.MapJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/src/main/resources/java/src/test/java/packagename/schemas/NullSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/NullSchemaTest.hbs index b5a0bc3b6fc..4e4d4979e90 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/NullSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/NullSchemaTest.hbs @@ -13,7 +13,7 @@ import java.util.LinkedHashSet; import java.util.List; public class NullSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NullJsonSchema.NullJsonSchema1 nullJsonSchema = NullJsonSchema.NullJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/src/main/resources/java/src/test/java/packagename/schemas/NumberSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/NumberSchemaTest.hbs index a757fee8539..9c3b46cd028 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/NumberSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/NumberSchemaTest.hbs @@ -13,7 +13,7 @@ import java.util.LinkedHashSet; import java.util.List; public class NumberSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final NumberJsonSchema.NumberJsonSchema1 numberJsonSchema = NumberJsonSchema.NumberJsonSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs index 10824eef52c..ca9475ee331 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/ObjectTypeSchemaTest.hbs @@ -24,7 +24,7 @@ import java.util.Objects; import java.util.Set; public class ObjectTypeSchemaTest { - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), configuration, @@ -82,7 +82,7 @@ public class ObjectTypeSchemaTest { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -169,7 +169,7 @@ public class ObjectTypeSchemaTest { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -255,7 +255,7 @@ public class ObjectTypeSchemaTest { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); @@ -350,7 +350,7 @@ public class ObjectTypeSchemaTest { Set> pathSet = new HashSet<>(); List pathToItem = List.of("args[0"); Map castArg = castToAllowedTypes(arg, pathToItem, pathSet); - SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone())); + SchemaConfiguration usedConfiguration = Objects.requireNonNullElseGet(configuration, () -> new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build())); ValidationMetadata validationMetadata = new ValidationMetadata(pathToItem, usedConfiguration, new PathToSchemasMap(), new LinkedHashSet<>()); PathToSchemasMap pathToSchemasMap = getPathToSchemas(this, castArg, validationMetadata, pathSet); return getNewInstance(castArg, validationMetadata.pathToItem(), pathToSchemasMap); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/RefBooleanSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/RefBooleanSchemaTest.hbs index 41fd5c775b2..aeb7b350a5a 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/RefBooleanSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/RefBooleanSchemaTest.hbs @@ -17,7 +17,7 @@ public class RefBooleanSchemaTest { public static class RefBooleanSchema1 extends BooleanJsonSchema.BooleanJsonSchema1 {} } - static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); + static final SchemaConfiguration configuration = new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()); static final BooleanJsonSchema.BooleanJsonSchema1 refBooleanJsonSchema = RefBooleanSchema.RefBooleanSchema1.getInstance(); static final ValidationMetadata validationMetadata = new ValidationMetadata( List.of("args[0"), diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs index 69b1e893316..24947c3ffa2 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/AdditionalPropertiesValidatorTest.hbs @@ -74,7 +74,7 @@ public class AdditionalPropertiesValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -109,7 +109,7 @@ public class AdditionalPropertiesValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -129,7 +129,7 @@ public class AdditionalPropertiesValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/FormatValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/FormatValidatorTest.hbs index 1bc43ac90fe..f521c9d7f04 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/FormatValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/FormatValidatorTest.hbs @@ -23,7 +23,7 @@ import java.util.LinkedHashSet; public class FormatValidatorTest { static final ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs index 8d71ecef85f..028ac5fef89 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/ItemsValidatorTest.hbs @@ -58,7 +58,7 @@ public class ItemsValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -92,7 +92,7 @@ public class ItemsValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -112,7 +112,7 @@ public class ItemsValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs index ad24b1854fc..dd50f7cb1d1 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/JsonSchemaTest.hbs @@ -61,7 +61,7 @@ public class JsonSchemaTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs index 5ef9900e320..6b44fc3d8bd 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/PropertiesValidatorTest.hbs @@ -63,7 +63,7 @@ public class PropertiesValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -96,7 +96,7 @@ public class PropertiesValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -116,7 +116,7 @@ public class PropertiesValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs index 8107f561c88..c7846f7194d 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/RequiredValidatorTest.hbs @@ -58,7 +58,7 @@ public class RequiredValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -81,7 +81,7 @@ public class RequiredValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -101,7 +101,7 @@ public class RequiredValidatorTest { List pathToItem = List.of("args[0]"); ValidationMetadata validationMetadata = new ValidationMetadata( pathToItem, - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/java/src/test/java/packagename/schemas/validation/TypeValidatorTest.hbs b/src/main/resources/java/src/test/java/packagename/schemas/validation/TypeValidatorTest.hbs index 98a9de31eca..62a150dfae4 100644 --- a/src/main/resources/java/src/test/java/packagename/schemas/validation/TypeValidatorTest.hbs +++ b/src/main/resources/java/src/test/java/packagename/schemas/validation/TypeValidatorTest.hbs @@ -22,7 +22,7 @@ public class TypeValidatorTest { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); @@ -41,7 +41,7 @@ public class TypeValidatorTest { final TypeValidator validator = new TypeValidator(); ValidationMetadata validationMetadata = new ValidationMetadata( new ArrayList<>(), - new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()), + new SchemaConfiguration(new JsonSchemaKeywordFlags.Builder().build()), new PathToSchemasMap(), new LinkedHashSet<>() ); diff --git a/src/main/resources/python/configurations/api_configuration.hbs b/src/main/resources/python/configurations/api_configuration.hbs index 7ee7f147d5c..d1652a497f6 100644 --- a/src/main/resources/python/configurations/api_configuration.hbs +++ b/src/main/resources/python/configurations/api_configuration.hbs @@ -35,11 +35,11 @@ from {{packageName}}.paths.{{../@key.snakeCase}}.servers import {{jsonPathPiece. {{/if}} {{#if operations}} {{#each operations}} - {{#if servers}} + {{#eq responses.subpackage servers.subpackage}} {{#each servers}} from {{packageName}}.paths.{{../../@key.snakeCase}}.{{../@key.original}}.servers import {{jsonPathPiece.snakeCase}} as {{../../@key.snakeCase}}_{{../@key.original}}_{{jsonPathPiece.snakeCase}} {{/each}} - {{/if}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -71,9 +71,11 @@ SecurityIndexInfoOptional = typing.TypedDict( {{#each paths}} {{#if operations}} {{#each operations}} - {{#if security}} + {{#eq responses.subpackage security.subpackage}} + {{#gt security.size 0}} "paths/{{../@key.original}}/{{@key.original}}/security": typing.Literal[{{#each security}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], - {{/if}} + {{/gt}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -105,11 +107,11 @@ ServerInfo = typing.TypedDict( {{/if}} {{#if operations}} {{#each operations}} - {{#if servers}} + {{#eq responses.subpackage servers.subpackage}} {{#each servers}} "paths/{{../../@key.original}}/{{../@key.original}}/servers/{{@key}}": {{../../@key.snakeCase}}_{{../@key.original}}_{{jsonPathPiece.snakeCase}}.{{jsonPathPiece.pascalCase}}, {{/each}} - {{/if}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -134,9 +136,9 @@ ServerIndexInfoOptional = typing.TypedDict( {{/if}} {{#if operations}} {{#each operations}} - {{#if servers}} + {{#eq responses.subpackage servers.subpackage}} "paths/{{../@key.original}}/{{@key.original}}/servers": typing.Literal[{{#each servers}}{{#unless @first}}, {{/unless}}{{@key}}{{/each}}], - {{/if}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -207,11 +209,11 @@ class ApiConfiguration(object): {{/if}} {{#if operations}} {{#each operations}} - {{#if servers}} + {{#eq responses.subpackage servers.subpackage}} {{#each servers}} "paths/{{../../@key.original}}/{{../@key.original}}/servers/{{@key}}": {{../../@key.snakeCase}}_{{../@key.original}}_{{jsonPathPiece.snakeCase}}.{{jsonPathPiece.pascalCase}}(), {{/each}} - {{/if}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -415,9 +417,9 @@ class ApiConfiguration(object): {{/if}} {{#if operations}} {{#each operations}} - {{#if servers}} + {{#eq responses.subpackage servers.subpackage}} "paths/{{../@key.original}}/{{@key.original}}/servers", - {{/if}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -449,11 +451,11 @@ class ApiConfiguration(object): {{/if}} {{#if operations}} {{#each operations}} - {{#if servers}} + {{#eq responses.subpackage servers.subpackage}} {{#each servers}} "paths/{{../../@key.original}}/{{../@key.original}}/servers/{{@key}}", {{/each}} - {{/if}} + {{/eq}} {{/each}} {{/if}} {{/each}} @@ -474,9 +476,11 @@ class ApiConfiguration(object): {{#each paths}} {{#if operations}} {{#each operations}} - {{#if security}} + {{#eq responses.subpackage security.subpackage}} + {{#gt security.size 0}} "paths/{{../@key.original}}/{{@key.original}}/security", - {{/if}} + {{/gt}} + {{/eq}} {{/each}} {{/if}} {{/each}} diff --git a/src/main/resources/python/paths/path/verb/operation.hbs b/src/main/resources/python/paths/path/verb/operation.hbs index 83d6726b3a9..2622d10dc27 100644 --- a/src/main/resources/python/paths/path/verb/operation.hbs +++ b/src/main/resources/python/paths/path/verb/operation.hbs @@ -3,23 +3,6 @@ {{> _helper_header }} from {{packageName}} import api_client{{#or operation.errorStatusCodes operation.errorWildcardStatusCodes}}, exceptions{{/or}}{{#neq operation.security null}}{{#gt operation.security.size 0}}, security_schemes{{/gt}}{{else}}{{#neq security null}}{{#gt security.size 0}}, security_schemes{{/gt}}{{/neq}}{{/neq}} -{{#eq operation.security null}} - {{#neq security null}} - {{#gt security.size 0}} - {{#eq security.size 1}} - {{#each security}} -from {{packageName}}.security import security_requirement_object_{{@key}} - {{/each}} - {{else}} -from {{packageName}}.security import ( - {{#each security}} - security_requirement_object_{{@key}}, - {{/each}} -) - {{/eq}} - {{/gt}} - {{/neq}} -{{/eq}} from {{packageName}}.shared_imports.operation_imports import * # pyright: ignore [reportWildcardImportFromLibrary] {{#if imports}} @@ -81,13 +64,21 @@ from ..parameters import ( {{#gt security.size 0}} {{#eq security.size 1}} {{#each security}} + {{#eq responses.subpackage security.subpackage}} from .security import security_requirement_object_{{@key}} + {{else}} +from {{packageName}}.security import security_requirement_object_{{@key}} + {{/eq}} {{/each}} {{else}} + {{#eq responses.subpackage security.subpackage}} from .security import ( - {{#each security}} + {{else}} +from {{packageName}}.security import ( + {{/eq}} + {{#each security}} security_requirement_object_{{@key}}, - {{/each}} + {{/each}} ) {{/eq}} {{/gt}} @@ -386,39 +377,37 @@ class BaseApi(api_client.Api): headers=headers ) {{/if}} - {{#if servers}} + {{#neq servers.subpackage null}} + {{#eq servers.subpackage responses.subpackage}} host = self.api_client.configuration.get_server_url( "paths/{{{path.original}}}/{{httpMethod.original}}/servers", server_index ) - {{else}} - {{#if pathItem.servers}} + {{else}} host = self.api_client.configuration.get_server_url( "paths/{{{path.original}}}/servers", server_index ) - {{else}} + {{/eq}} + {{else}} host = self.api_client.configuration.get_server_url( "servers", server_index ) - {{/if}} - {{/if}} + {{/neq}} {{#neq security null}} {{#gt security.size 0}} + {{#eq responses.subpackage security.subpackage}} security_requirement_object = self.api_client.configuration.get_security_requirement_object( "paths/{{{path.original}}}/{{httpMethod.original}}/security", _security, security_index ) - {{/gt}} - {{else}} - {{#neq ../security null}} - {{#gt ../security.size 0}} + {{else}} security_requirement_object = self.api_client.configuration.get_security_requirement_object( "security", _security, security_index ) - {{/gt}} - {{/neq}} + {{/eq}} + {{/gt}} {{/neq}} raw_response = self.api_client.call_api( diff --git a/src/main/resources/python/paths/path/verb/operation_doc.hbs b/src/main/resources/python/paths/path/verb/operation_doc.hbs index e34e59e6ddd..fc1d732863a 100644 --- a/src/main/resources/python/paths/path/verb/operation_doc.hbs +++ b/src/main/resources/python/paths/path/verb/operation_doc.hbs @@ -196,56 +196,45 @@ Set the available servers by defining your used servers in ApiConfiguration.serv Then select your server by setting a server index in ApiConfiguration.server_index_info or by passing server_index in to the endpoint method. {{#if servers}} + {{#neq servers.subpackage null}} + {{#eq servers.subpackage responses.subpackage}} - these servers are specific to this endpoint - {{#with servers.0}} -- defaults to server_index=0, server.url = {{defaultUrl}} - {{/with}} -{{else}} - {{#if pathItem.servers}} + {{else}} - these servers are specific to this "{{{path.original}}}" path - {{#with pathItem.servers.0}} -- defaults to server_index=0, server.url = {{defaultUrl}} - {{/with}} + {{/eq}} {{else}} - these servers are the general api servers - {{#each ../servers}} - {{#if @first}} + {{/neq}} + {{#with servers.0}} - defaults to server_index=0, server.url = {{defaultUrl}} - {{/if}} - {{/each}} - {{/if}} + {{/with}} {{/if}} server_index | Class | Description ------------ | ----- | ------------ {{#if servers}} - {{#each servers}} + {{#neq servers.subpackage null}} + {{#eq servers.subpackage responses.subpackage}} + {{#each servers}} {{@key}} | [{{jsonPathPiece.pascalCase}}](#{{jsonPathPiece.kebabCase}}) |{{#if description}} {{description.originalWithBr}}{{/if}} - {{/each}} -{{else}} - {{#if pathItem.servers}} - {{#each pathItem.servers}} + {{/each}} + {{else}} + {{#each servers}} {{@key}} | [{{jsonPathPiece.pascalCase}}](#{{jsonPathPiece.kebabCase}}) |{{#if description}} {{description.originalWithBr}}{{/if}} - {{/each}} + {{/each}} + {{/eq}} {{else}} - {{#each ../servers}} + {{#each servers}} {{@key}} | [{{jsonPathPiece.pascalCase}}](../../servers/{{jsonPathPiece.snakeCase}}.md) |{{#if description}} {{description.originalWithBr}}{{/if}} {{/each}} - {{/if}} + {{/neq}} {{/if}} -{{#if servers}} +{{#neq servers.subpackage null}} {{#each servers}} {{> servers/server_doc server=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} {{/each}} -{{else}} - {{#if pathItem.servers}} - - {{#each pathItem.servers}} -{{> servers/server_doc server=this headerSize=(join headerSize "##" "") identifierPieces=(append identifierPieces jsonPathPiece) }} - {{/each}} - {{/if}} -{{/if}} +{{/neq}} {{headerSize}}# Code Sample