diff --git a/.circleci/parallel.sh b/.circleci/parallel.sh
index bf7704d5b2e..bf67b7738be 100755
--- a/.circleci/parallel.sh
+++ b/.circleci/parallel.sh
@@ -28,6 +28,7 @@ elif [ "$JOB_ID" = "testPythonClientSamples" ]; then
elif [ "$JOB_ID" = "testJava17ClientSamples" ]; then
echo "Running job $JOB_ID ..."
java -version
+ mvn -version
cat ./.circleci/testJava17ClientSamples.sh | parallel
else
diff --git a/docs/generators/java.md b/docs/generators/java.md
index 580f3c8f638..9b4c5ca80f0 100644
--- a/docs/generators/java.md
+++ b/docs/generators/java.md
@@ -178,7 +178,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
| Name | Supported | Defined By |
| ---- | --------- | ---------- |
|schemas|✓|OAS3
-|responses|✗|OAS3
+|responses|✓|OAS3
|parameters|✗|OAS3
|examples|✗|OAS3
|requestBodies|✓|OAS3
@@ -220,7 +220,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|Servers|✓|OAS3
|Security|✗|OAS2,OAS3
|ComponentSchemas|✓|OAS3
-|ComponentResponses|✗|OAS3
+|ComponentResponses|✓|OAS3
|ComponentParameters|✗|OAS3
|ComponentRequestBodies|✓|OAS3
|ComponentHeaders|✗|OAS3
diff --git a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES
index 5f64d40a904..a10ac39dd60 100644
--- a/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES
+++ b/samples/client/3_0_3_unit_test/java/.openapi-generator/FILES
@@ -190,6 +190,9 @@ src/main/java/org/openapijsonschematools/client/parameter/ParameterStyle.java
src/main/java/org/openapijsonschematools/client/requestbody/GenericRequestBody.java
src/main/java/org/openapijsonschematools/client/requestbody/RequestBodySerializer.java
src/main/java/org/openapijsonschematools/client/requestbody/SerializedRequestBody.java
+src/main/java/org/openapijsonschematools/client/response/ApiResponse.java
+src/main/java/org/openapijsonschematools/client/response/DeserializedApiResponse.java
+src/main/java/org/openapijsonschematools/client/response/ResponseDeserializer.java
src/main/java/org/openapijsonschematools/client/schemas/AnyTypeJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/BooleanJsonSchema.java
src/main/java/org/openapijsonschematools/client/schemas/DateJsonSchema.java
@@ -292,6 +295,7 @@ src/main/java/org/openapijsonschematools/client/servers/ServerWithVariables.java
src/main/java/org/openapijsonschematools/client/servers/ServerWithoutVariables.java
src/test/java/org/openapijsonschematools/client/configurations/JsonSchemaKeywordFlagsTest.java
src/test/java/org/openapijsonschematools/client/requestbody/RequestBodySerializerTest.java
+src/test/java/org/openapijsonschematools/client/response/ResponseDeserializerTest.java
src/test/java/org/openapijsonschematools/client/schemas/AnyTypeSchemaTest.java
src/test/java/org/openapijsonschematools/client/schemas/ArrayTypeSchemaTest.java
src/test/java/org/openapijsonschematools/client/schemas/BooleanSchemaTest.java
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 345b70bc1b2..7c340eb79de 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
@@ -4,7 +4,7 @@ public class AdditionalpropertiesAllowsASchemaWhichShouldValidate
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,53 +12,54 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed](#additionalpropertiesallowsaschemawhichshouldvalidate1boxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap](#additionalpropertiesallowsaschemawhichshouldvalidate1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed](#additionalpropertiesallowsaschemawhichshouldvalidate1boxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap](#additionalpropertiesallowsaschemawhichshouldvalidate1boxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidate1](#additionalpropertiesallowsaschemawhichshouldvalidate1) schema class |
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) builder for Map payloads |
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) output class for Map payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedVoid](#barboxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedBoolean](#barboxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedList](#barboxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedMap](#barboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedVoid](#barboxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedBoolean](#barboxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedList](#barboxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.BarBoxedMap](#barboxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.Bar](#bar) schema class |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.Foo](#foo) schema class |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalPropertiesBoxed](#additionalpropertiesboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean) boxed class to store validated boolean payloads |
+| sealed interface | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalPropertiesBoxed](#additionalpropertiesboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean) boxed class to store validated boolean payloads |
| static class | [AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalProperties](#additionalproperties) schema class |
## AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed
-public static abstract sealed class AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed
+public sealed interface AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed
permits
[AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap](#additionalpropertiesallowsaschemawhichshouldvalidate1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap
-public static final class AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap
-extends [AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed](#additionalpropertiesallowsaschemawhichshouldvalidate1boxed)
+public record AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap
+implements [AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed](#additionalpropertiesallowsaschemawhichshouldvalidate1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap([AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | data validated payload |
+| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAllowsASchemaWhichShouldValidate1
public static class AdditionalpropertiesAllowsASchemaWhichShouldValidate1
@@ -104,7 +105,9 @@ AdditionalpropertiesAllowsASchemaWhichShouldValidate.AdditionalpropertiesAllowsA
| ----------------- | ---------------------- |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidateMap](#additionalpropertiesallowsaschemawhichshouldvalidatemap) | validate([Map<?, ?>](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap](#additionalpropertiesallowsaschemawhichshouldvalidate1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesallowsaschemawhichshouldvalidatemapbuilder) arg, SchemaConfiguration configuration) |
+| [AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed](#additionalpropertiesallowsaschemawhichshouldvalidate1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder
public class AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder
builder for `Map`
@@ -155,7 +158,7 @@ A class to store validated Map payloads
| boolean | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedVoid](#barboxedvoid),
[BarBoxedBoolean](#barboxedboolean),
@@ -164,103 +167,109 @@ permits
[BarBoxedList](#barboxedlist),
[BarBoxedMap](#barboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedVoid
-public static final class BarBoxedVoid
-extends [BarBoxed](#barboxed)
+public record BarBoxedVoid
+implements [BarBoxed](#barboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedBoolean
-public static final class BarBoxedBoolean
-extends [BarBoxed](#barboxed)
+public record BarBoxedBoolean
+implements [BarBoxed](#barboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedString
-public static final class BarBoxedString
-extends [BarBoxed](#barboxed)
+public record BarBoxedString
+implements [BarBoxed](#barboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedList
-public static final class BarBoxedList
-extends [BarBoxed](#barboxed)
+public record BarBoxedList
+implements [BarBoxed](#barboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedMap
-public static final class BarBoxedMap
-extends [BarBoxed](#barboxed)
+public record BarBoxedMap
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -274,7 +283,7 @@ A schema class that validates payloads
| validateAndBox |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -283,103 +292,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
@@ -393,27 +408,28 @@ A schema class that validates payloads
| validateAndBox |
## AdditionalPropertiesBoxed
-public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalPropertiesBoxedBoolean
-public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed)
+public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalPropertiesBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalProperties
public static class AdditionalProperties
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md
index 3d0102a4a24..b7e5ca27e35 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md
@@ -4,7 +4,7 @@ public class AdditionalpropertiesAreAllowedByDefault
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,35 +12,35 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedVoid](#additionalpropertiesareallowedbydefault1boxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedBoolean](#additionalpropertiesareallowedbydefault1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedNumber](#additionalpropertiesareallowedbydefault1boxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedString](#additionalpropertiesareallowedbydefault1boxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedList](#additionalpropertiesareallowedbydefault1boxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedMap](#additionalpropertiesareallowedbydefault1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedVoid](#additionalpropertiesareallowedbydefault1boxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedBoolean](#additionalpropertiesareallowedbydefault1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedNumber](#additionalpropertiesareallowedbydefault1boxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedString](#additionalpropertiesareallowedbydefault1boxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedList](#additionalpropertiesareallowedbydefault1boxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1BoxedMap](#additionalpropertiesareallowedbydefault1boxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefault1](#additionalpropertiesareallowedbydefault1) schema class |
| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMapBuilder](#additionalpropertiesareallowedbydefaultmapbuilder) builder for Map payloads |
| static class | [AdditionalpropertiesAreAllowedByDefault.AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) output class for Map payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxedVoid](#barboxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxedBoolean](#barboxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxedList](#barboxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.BarBoxedMap](#barboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesAreAllowedByDefault.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.BarBoxedVoid](#barboxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.BarBoxedBoolean](#barboxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.BarBoxedList](#barboxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.BarBoxedMap](#barboxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesAreAllowedByDefault.Bar](#bar) schema class |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesAreAllowedByDefault.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesAreAllowedByDefault.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesAreAllowedByDefault.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesAreAllowedByDefault.Foo](#foo) schema class |
## AdditionalpropertiesAreAllowedByDefault1Boxed
-public static abstract sealed class AdditionalpropertiesAreAllowedByDefault1Boxed
+public sealed interface AdditionalpropertiesAreAllowedByDefault1Boxed
permits
[AdditionalpropertiesAreAllowedByDefault1BoxedVoid](#additionalpropertiesareallowedbydefault1boxedvoid),
[AdditionalpropertiesAreAllowedByDefault1BoxedBoolean](#additionalpropertiesareallowedbydefault1boxedboolean),
@@ -49,103 +49,109 @@ permits
[AdditionalpropertiesAreAllowedByDefault1BoxedList](#additionalpropertiesareallowedbydefault1boxedlist),
[AdditionalpropertiesAreAllowedByDefault1BoxedMap](#additionalpropertiesareallowedbydefault1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalpropertiesAreAllowedByDefault1BoxedVoid
-public static final class AdditionalpropertiesAreAllowedByDefault1BoxedVoid
-extends [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
+public record AdditionalpropertiesAreAllowedByDefault1BoxedVoid
+implements [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefault1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAreAllowedByDefault1BoxedBoolean
-public static final class AdditionalpropertiesAreAllowedByDefault1BoxedBoolean
-extends [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
+public record AdditionalpropertiesAreAllowedByDefault1BoxedBoolean
+implements [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefault1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAreAllowedByDefault1BoxedNumber
-public static final class AdditionalpropertiesAreAllowedByDefault1BoxedNumber
-extends [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
+public record AdditionalpropertiesAreAllowedByDefault1BoxedNumber
+implements [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefault1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAreAllowedByDefault1BoxedString
-public static final class AdditionalpropertiesAreAllowedByDefault1BoxedString
-extends [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
+public record AdditionalpropertiesAreAllowedByDefault1BoxedString
+implements [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefault1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAreAllowedByDefault1BoxedList
-public static final class AdditionalpropertiesAreAllowedByDefault1BoxedList
-extends [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
+public record AdditionalpropertiesAreAllowedByDefault1BoxedList
+implements [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefault1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAreAllowedByDefault1BoxedMap
-public static final class AdditionalpropertiesAreAllowedByDefault1BoxedMap
-extends [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
+public record AdditionalpropertiesAreAllowedByDefault1BoxedMap
+implements [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesAreAllowedByDefault1BoxedMap([AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | data validated payload |
+| [AdditionalpropertiesAreAllowedByDefaultMap](#additionalpropertiesareallowedbydefaultmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesAreAllowedByDefault1
public static class AdditionalpropertiesAreAllowedByDefault1
@@ -177,7 +183,9 @@ A schema class that validates payloads
| [AdditionalpropertiesAreAllowedByDefault1BoxedBoolean](#additionalpropertiesareallowedbydefault1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesAreAllowedByDefault1BoxedMap](#additionalpropertiesareallowedbydefault1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesareallowedbydefaultmapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesAreAllowedByDefault1BoxedList](#additionalpropertiesareallowedbydefault1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AdditionalpropertiesAreAllowedByDefault1Boxed](#additionalpropertiesareallowedbydefault1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## AdditionalpropertiesAreAllowedByDefaultMapBuilder
public class AdditionalpropertiesAreAllowedByDefaultMapBuilder
builder for `Map`
@@ -236,7 +244,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedVoid](#barboxedvoid),
[BarBoxedBoolean](#barboxedboolean),
@@ -245,103 +253,109 @@ permits
[BarBoxedList](#barboxedlist),
[BarBoxedMap](#barboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedVoid
-public static final class BarBoxedVoid
-extends [BarBoxed](#barboxed)
+public record BarBoxedVoid
+implements [BarBoxed](#barboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedBoolean
-public static final class BarBoxedBoolean
-extends [BarBoxed](#barboxed)
+public record BarBoxedBoolean
+implements [BarBoxed](#barboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedString
-public static final class BarBoxedString
-extends [BarBoxed](#barboxed)
+public record BarBoxedString
+implements [BarBoxed](#barboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedList
-public static final class BarBoxedList
-extends [BarBoxed](#barboxed)
+public record BarBoxedList
+implements [BarBoxed](#barboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedMap
-public static final class BarBoxedMap
-extends [BarBoxed](#barboxed)
+public record BarBoxedMap
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -355,7 +369,7 @@ A schema class that validates payloads
| validateAndBox |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -364,103 +378,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
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 159c5b6a253..b2488de4fd8 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
@@ -4,7 +4,7 @@ public class AdditionalpropertiesCanExistByItself
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,37 +12,38 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1Boxed](#additionalpropertiescanexistbyitself1boxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1BoxedMap](#additionalpropertiescanexistbyitself1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1Boxed](#additionalpropertiescanexistbyitself1boxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1BoxedMap](#additionalpropertiescanexistbyitself1boxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItself1](#additionalpropertiescanexistbyitself1) schema class |
| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMapBuilder](#additionalpropertiescanexistbyitselfmapbuilder) builder for Map payloads |
| static class | [AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) output class for Map payloads |
-| static class | [AdditionalpropertiesCanExistByItself.AdditionalPropertiesBoxed](#additionalpropertiesboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesCanExistByItself.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean) boxed class to store validated boolean payloads |
+| sealed interface | [AdditionalpropertiesCanExistByItself.AdditionalPropertiesBoxed](#additionalpropertiesboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesCanExistByItself.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean) boxed class to store validated boolean payloads |
| static class | [AdditionalpropertiesCanExistByItself.AdditionalProperties](#additionalproperties) schema class |
## AdditionalpropertiesCanExistByItself1Boxed
-public static abstract sealed class AdditionalpropertiesCanExistByItself1Boxed
+public sealed interface AdditionalpropertiesCanExistByItself1Boxed
permits
[AdditionalpropertiesCanExistByItself1BoxedMap](#additionalpropertiescanexistbyitself1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalpropertiesCanExistByItself1BoxedMap
-public static final class AdditionalpropertiesCanExistByItself1BoxedMap
-extends [AdditionalpropertiesCanExistByItself1Boxed](#additionalpropertiescanexistbyitself1boxed)
+public record AdditionalpropertiesCanExistByItself1BoxedMap
+implements [AdditionalpropertiesCanExistByItself1Boxed](#additionalpropertiescanexistbyitself1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesCanExistByItself1BoxedMap([AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | data validated payload |
+| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesCanExistByItself1
public static class AdditionalpropertiesCanExistByItself1
@@ -87,7 +88,9 @@ AdditionalpropertiesCanExistByItself.AdditionalpropertiesCanExistByItselfMap val
| ----------------- | ---------------------- |
| [AdditionalpropertiesCanExistByItselfMap](#additionalpropertiescanexistbyitselfmap) | validate([Map<?, ?>](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesCanExistByItself1BoxedMap](#additionalpropertiescanexistbyitself1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiescanexistbyitselfmapbuilder) arg, SchemaConfiguration configuration) |
+| [AdditionalpropertiesCanExistByItself1Boxed](#additionalpropertiescanexistbyitself1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## AdditionalpropertiesCanExistByItselfMapBuilder
public class AdditionalpropertiesCanExistByItselfMapBuilder
builder for `Map`
@@ -118,27 +121,28 @@ A class to store validated Map payloads
| boolean | getAdditionalProperty(String name) provides type safety for additional properties |
## AdditionalPropertiesBoxed
-public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalPropertiesBoxedBoolean
-public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed)
+public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalPropertiesBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalProperties
public static class AdditionalProperties
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md
index e6386d2d5e2..465de81c43a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md
@@ -4,7 +4,7 @@ public class AdditionalpropertiesShouldNotLookInApplicators
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,40 +12,40 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid](#additionalpropertiesshouldnotlookinapplicators1boxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean](#additionalpropertiesshouldnotlookinapplicators1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber](#additionalpropertiesshouldnotlookinapplicators1boxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedString](#additionalpropertiesshouldnotlookinapplicators1boxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedList](#additionalpropertiesshouldnotlookinapplicators1boxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedMap](#additionalpropertiesshouldnotlookinapplicators1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid](#additionalpropertiesshouldnotlookinapplicators1boxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean](#additionalpropertiesshouldnotlookinapplicators1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber](#additionalpropertiesshouldnotlookinapplicators1boxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedString](#additionalpropertiesshouldnotlookinapplicators1boxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedList](#additionalpropertiesshouldnotlookinapplicators1boxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1BoxedMap](#additionalpropertiesshouldnotlookinapplicators1boxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicators1](#additionalpropertiesshouldnotlookinapplicators1) schema class |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder](#additionalpropertiesshouldnotlookinapplicatorsmapbuilder) builder for Map payloads |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) output class for Map payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesShouldNotLookInApplicators.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0](#schema0) schema class |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0MapBuilder](#schema0mapbuilder) builder for Map payloads |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Schema0Map](#schema0map) output class for Map payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.Foo](#foo) schema class |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalPropertiesBoxed](#additionalpropertiesboxed) abstract sealed validated payload class |
-| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean) boxed class to store validated boolean payloads |
+| sealed interface | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalPropertiesBoxed](#additionalpropertiesboxed) sealed interface for validated payloads |
+| record | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean) boxed class to store validated boolean payloads |
| static class | [AdditionalpropertiesShouldNotLookInApplicators.AdditionalProperties](#additionalproperties) schema class |
## AdditionalpropertiesShouldNotLookInApplicators1Boxed
-public static abstract sealed class AdditionalpropertiesShouldNotLookInApplicators1Boxed
+public sealed interface AdditionalpropertiesShouldNotLookInApplicators1Boxed
permits
[AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid](#additionalpropertiesshouldnotlookinapplicators1boxedvoid),
[AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean](#additionalpropertiesshouldnotlookinapplicators1boxedboolean),
@@ -54,103 +54,109 @@ permits
[AdditionalpropertiesShouldNotLookInApplicators1BoxedList](#additionalpropertiesshouldnotlookinapplicators1boxedlist),
[AdditionalpropertiesShouldNotLookInApplicators1BoxedMap](#additionalpropertiesshouldnotlookinapplicators1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid
-public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid
-extends [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
+public record AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid
+implements [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesShouldNotLookInApplicators1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean
-public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean
-extends [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
+public record AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean
+implements [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber
-public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber
-extends [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
+public record AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber
+implements [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesShouldNotLookInApplicators1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesShouldNotLookInApplicators1BoxedString
-public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedString
-extends [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
+public record AdditionalpropertiesShouldNotLookInApplicators1BoxedString
+implements [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesShouldNotLookInApplicators1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesShouldNotLookInApplicators1BoxedList
-public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedList
-extends [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
+public record AdditionalpropertiesShouldNotLookInApplicators1BoxedList
+implements [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesShouldNotLookInApplicators1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesShouldNotLookInApplicators1BoxedMap
-public static final class AdditionalpropertiesShouldNotLookInApplicators1BoxedMap
-extends [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
+public record AdditionalpropertiesShouldNotLookInApplicators1BoxedMap
+implements [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalpropertiesShouldNotLookInApplicators1BoxedMap([AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | data validated payload |
+| [AdditionalpropertiesShouldNotLookInApplicatorsMap](#additionalpropertiesshouldnotlookinapplicatorsmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalpropertiesShouldNotLookInApplicators1
public static class AdditionalpropertiesShouldNotLookInApplicators1
@@ -183,7 +189,9 @@ A schema class that validates payloads
| [AdditionalpropertiesShouldNotLookInApplicators1BoxedBoolean](#additionalpropertiesshouldnotlookinapplicators1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesShouldNotLookInApplicators1BoxedMap](#additionalpropertiesshouldnotlookinapplicators1boxedmap) | validateAndBox([Map<?, ?>](#additionalpropertiesshouldnotlookinapplicatorsmapbuilder) arg, SchemaConfiguration configuration) |
| [AdditionalpropertiesShouldNotLookInApplicators1BoxedList](#additionalpropertiesshouldnotlookinapplicators1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AdditionalpropertiesShouldNotLookInApplicators1Boxed](#additionalpropertiesshouldnotlookinapplicators1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder
public class AdditionalpropertiesShouldNotLookInApplicatorsMapBuilder
builder for `Map`
@@ -214,7 +222,7 @@ A class to store validated Map payloads
| boolean | getAdditionalProperty(String name) provides type safety for additional properties |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -223,103 +231,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap([Schema0Map](#schema0map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema0Map](#schema0map) | data validated payload |
+| [Schema0Map](#schema0map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -351,7 +365,9 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0MapBuilder
public class Schema0MapBuilder
builder for `Map`
@@ -400,7 +416,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -409,103 +425,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
@@ -519,27 +541,28 @@ A schema class that validates payloads
| validateAndBox |
## AdditionalPropertiesBoxed
-public static abstract sealed class AdditionalPropertiesBoxed
+public sealed interface AdditionalPropertiesBoxed
permits
[AdditionalPropertiesBoxedBoolean](#additionalpropertiesboxedboolean)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AdditionalPropertiesBoxedBoolean
-public static final class AdditionalPropertiesBoxedBoolean
-extends [AdditionalPropertiesBoxed](#additionalpropertiesboxed)
+public record AdditionalPropertiesBoxedBoolean
+implements [AdditionalPropertiesBoxed](#additionalpropertiesboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AdditionalPropertiesBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AdditionalProperties
public static class AdditionalProperties
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md
index 208abe021c6..079e4fe18ca 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md
@@ -4,7 +4,7 @@ public class Allof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,43 +12,43 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Allof.Allof1Boxed](#allof1boxed) abstract sealed validated payload class |
-| static class | [Allof.Allof1BoxedVoid](#allof1boxedvoid) boxed class to store validated null payloads |
-| static class | [Allof.Allof1BoxedBoolean](#allof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Allof.Allof1BoxedNumber](#allof1boxednumber) boxed class to store validated Number payloads |
-| static class | [Allof.Allof1BoxedString](#allof1boxedstring) boxed class to store validated String payloads |
-| static class | [Allof.Allof1BoxedList](#allof1boxedlist) boxed class to store validated List payloads |
-| static class | [Allof.Allof1BoxedMap](#allof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Allof.Allof1Boxed](#allof1boxed) sealed interface for validated payloads |
+| record | [Allof.Allof1BoxedVoid](#allof1boxedvoid) boxed class to store validated null payloads |
+| record | [Allof.Allof1BoxedBoolean](#allof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Allof.Allof1BoxedNumber](#allof1boxednumber) boxed class to store validated Number payloads |
+| record | [Allof.Allof1BoxedString](#allof1boxedstring) boxed class to store validated String payloads |
+| record | [Allof.Allof1BoxedList](#allof1boxedlist) boxed class to store validated List payloads |
+| record | [Allof.Allof1BoxedMap](#allof1boxedmap) boxed class to store validated Map payloads |
| static class | [Allof.Allof1](#allof1) schema class |
-| static class | [Allof.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [Allof.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [Allof.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Allof.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [Allof.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [Allof.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [Allof.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Allof.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [Allof.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [Allof.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Allof.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [Allof.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [Allof.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [Allof.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [Allof.Schema1](#schema1) schema class |
| static class | [Allof.Schema1MapBuilder](#schema1mapbuilder) builder for Map payloads |
| static class | [Allof.Schema1Map](#schema1map) output class for Map payloads |
-| static class | [Allof.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [Allof.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| sealed interface | [Allof.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [Allof.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
| static class | [Allof.Foo](#foo) schema class |
-| static class | [Allof.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [Allof.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [Allof.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Allof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [Allof.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [Allof.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [Allof.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Allof.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [Allof.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [Allof.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [Allof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [Allof.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [Allof.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [Allof.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [Allof.Schema0](#schema0) schema class |
| static class | [Allof.Schema0MapBuilder](#schema0mapbuilder) builder for Map payloads |
| static class | [Allof.Schema0Map](#schema0map) output class for Map payloads |
-| static class | [Allof.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [Allof.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [Allof.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [Allof.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
| static class | [Allof.Bar](#bar) schema class |
## Allof1Boxed
-public static abstract sealed class Allof1Boxed
+public sealed interface Allof1Boxed
permits
[Allof1BoxedVoid](#allof1boxedvoid),
[Allof1BoxedBoolean](#allof1boxedboolean),
@@ -57,103 +57,109 @@ permits
[Allof1BoxedList](#allof1boxedlist),
[Allof1BoxedMap](#allof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Allof1BoxedVoid
-public static final class Allof1BoxedVoid
-extends [Allof1Boxed](#allof1boxed)
+public record Allof1BoxedVoid
+implements [Allof1Boxed](#allof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Allof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Allof1BoxedBoolean
-public static final class Allof1BoxedBoolean
-extends [Allof1Boxed](#allof1boxed)
+public record Allof1BoxedBoolean
+implements [Allof1Boxed](#allof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Allof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Allof1BoxedNumber
-public static final class Allof1BoxedNumber
-extends [Allof1Boxed](#allof1boxed)
+public record Allof1BoxedNumber
+implements [Allof1Boxed](#allof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Allof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Allof1BoxedString
-public static final class Allof1BoxedString
-extends [Allof1Boxed](#allof1boxed)
+public record Allof1BoxedString
+implements [Allof1Boxed](#allof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Allof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Allof1BoxedList
-public static final class Allof1BoxedList
-extends [Allof1Boxed](#allof1boxed)
+public record Allof1BoxedList
+implements [Allof1Boxed](#allof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Allof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Allof1BoxedMap
-public static final class Allof1BoxedMap
-extends [Allof1Boxed](#allof1boxed)
+public record Allof1BoxedMap
+implements [Allof1Boxed](#allof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Allof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Allof1
public static class Allof1
@@ -185,9 +191,11 @@ A schema class that validates payloads
| [Allof1BoxedBoolean](#allof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Allof1BoxedMap](#allof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Allof1BoxedList](#allof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Allof1Boxed](#allof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -196,103 +204,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap([Schema1Map](#schema1map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema1Map](#schema1map) | data validated payload |
+| [Schema1Map](#schema1map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -325,7 +339,9 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Map0Builder
public class Schema1Map0Builder
builder for `Map`
@@ -381,27 +397,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedString](#fooboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
@@ -415,7 +432,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -424,103 +441,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap([Schema0Map](#schema0map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema0Map](#schema0map) | data validated payload |
+| [Schema0Map](#schema0map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -553,7 +576,9 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Map0Builder
public class Schema0Map0Builder
builder for `Map`
@@ -612,27 +637,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedNumber](#barboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md
index 6a21dc5716c..8aa4f4859ce 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md
@@ -4,47 +4,47 @@ public class AllofCombinedWithAnyofOneof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed) abstract sealed validated payload class |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedVoid](#allofcombinedwithanyofoneof1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedBoolean](#allofcombinedwithanyofoneof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedNumber](#allofcombinedwithanyofoneof1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedString](#allofcombinedwithanyofoneof1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedList](#allofcombinedwithanyofoneof1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedMap](#allofcombinedwithanyofoneof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed) sealed interface for validated payloads |
+| record | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedVoid](#allofcombinedwithanyofoneof1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedBoolean](#allofcombinedwithanyofoneof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedNumber](#allofcombinedwithanyofoneof1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedString](#allofcombinedwithanyofoneof1boxedstring) boxed class to store validated String payloads |
+| record | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedList](#allofcombinedwithanyofoneof1boxedlist) boxed class to store validated List payloads |
+| record | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1BoxedMap](#allofcombinedwithanyofoneof1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofCombinedWithAnyofOneof.AllofCombinedWithAnyofOneof1](#allofcombinedwithanyofoneof1) schema class |
-| static class | [AllofCombinedWithAnyofOneof.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofCombinedWithAnyofOneof.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofCombinedWithAnyofOneof.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AllofCombinedWithAnyofOneof.Schema0](#schema0) schema class |
-| static class | [AllofCombinedWithAnyofOneof.Schema01Boxed](#schema01boxed) abstract sealed validated payload class |
-| static class | [AllofCombinedWithAnyofOneof.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema01BoxedBoolean](#schema01boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema01BoxedNumber](#schema01boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema01BoxedString](#schema01boxedstring) boxed class to store validated String payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema01BoxedList](#schema01boxedlist) boxed class to store validated List payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema01BoxedMap](#schema01boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofCombinedWithAnyofOneof.Schema01Boxed](#schema01boxed) sealed interface for validated payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema01BoxedBoolean](#schema01boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema01BoxedNumber](#schema01boxednumber) boxed class to store validated Number payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema01BoxedString](#schema01boxedstring) boxed class to store validated String payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema01BoxedList](#schema01boxedlist) boxed class to store validated List payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema01BoxedMap](#schema01boxedmap) boxed class to store validated Map payloads |
| static class | [AllofCombinedWithAnyofOneof.Schema01](#schema01) schema class |
-| static class | [AllofCombinedWithAnyofOneof.Schema02Boxed](#schema02boxed) abstract sealed validated payload class |
-| static class | [AllofCombinedWithAnyofOneof.Schema02BoxedVoid](#schema02boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema02BoxedBoolean](#schema02boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema02BoxedNumber](#schema02boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema02BoxedString](#schema02boxedstring) boxed class to store validated String payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema02BoxedList](#schema02boxedlist) boxed class to store validated List payloads |
-| static class | [AllofCombinedWithAnyofOneof.Schema02BoxedMap](#schema02boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofCombinedWithAnyofOneof.Schema02Boxed](#schema02boxed) sealed interface for validated payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema02BoxedVoid](#schema02boxedvoid) boxed class to store validated null payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema02BoxedBoolean](#schema02boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema02BoxedNumber](#schema02boxednumber) boxed class to store validated Number payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema02BoxedString](#schema02boxedstring) boxed class to store validated String payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema02BoxedList](#schema02boxedlist) boxed class to store validated List payloads |
+| record | [AllofCombinedWithAnyofOneof.Schema02BoxedMap](#schema02boxedmap) boxed class to store validated Map payloads |
| static class | [AllofCombinedWithAnyofOneof.Schema02](#schema02) schema class |
## AllofCombinedWithAnyofOneof1Boxed
-public static abstract sealed class AllofCombinedWithAnyofOneof1Boxed
+public sealed interface AllofCombinedWithAnyofOneof1Boxed
permits
[AllofCombinedWithAnyofOneof1BoxedVoid](#allofcombinedwithanyofoneof1boxedvoid),
[AllofCombinedWithAnyofOneof1BoxedBoolean](#allofcombinedwithanyofoneof1boxedboolean),
@@ -53,103 +53,109 @@ permits
[AllofCombinedWithAnyofOneof1BoxedList](#allofcombinedwithanyofoneof1boxedlist),
[AllofCombinedWithAnyofOneof1BoxedMap](#allofcombinedwithanyofoneof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofCombinedWithAnyofOneof1BoxedVoid
-public static final class AllofCombinedWithAnyofOneof1BoxedVoid
-extends [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
+public record AllofCombinedWithAnyofOneof1BoxedVoid
+implements [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofCombinedWithAnyofOneof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofCombinedWithAnyofOneof1BoxedBoolean
-public static final class AllofCombinedWithAnyofOneof1BoxedBoolean
-extends [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
+public record AllofCombinedWithAnyofOneof1BoxedBoolean
+implements [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofCombinedWithAnyofOneof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofCombinedWithAnyofOneof1BoxedNumber
-public static final class AllofCombinedWithAnyofOneof1BoxedNumber
-extends [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
+public record AllofCombinedWithAnyofOneof1BoxedNumber
+implements [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofCombinedWithAnyofOneof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofCombinedWithAnyofOneof1BoxedString
-public static final class AllofCombinedWithAnyofOneof1BoxedString
-extends [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
+public record AllofCombinedWithAnyofOneof1BoxedString
+implements [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofCombinedWithAnyofOneof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofCombinedWithAnyofOneof1BoxedList
-public static final class AllofCombinedWithAnyofOneof1BoxedList
-extends [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
+public record AllofCombinedWithAnyofOneof1BoxedList
+implements [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofCombinedWithAnyofOneof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofCombinedWithAnyofOneof1BoxedMap
-public static final class AllofCombinedWithAnyofOneof1BoxedMap
-extends [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
+public record AllofCombinedWithAnyofOneof1BoxedMap
+implements [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofCombinedWithAnyofOneof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofCombinedWithAnyofOneof1
public static class AllofCombinedWithAnyofOneof1
@@ -183,9 +189,11 @@ A schema class that validates payloads
| [AllofCombinedWithAnyofOneof1BoxedBoolean](#allofcombinedwithanyofoneof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofCombinedWithAnyofOneof1BoxedMap](#allofcombinedwithanyofoneof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AllofCombinedWithAnyofOneof1BoxedList](#allofcombinedwithanyofoneof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofCombinedWithAnyofOneof1Boxed](#allofcombinedwithanyofoneof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -194,103 +202,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -322,9 +336,11 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema01Boxed
-public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedVoid](#schema01boxedvoid),
[Schema01BoxedBoolean](#schema01boxedboolean),
@@ -333,103 +349,109 @@ permits
[Schema01BoxedList](#schema01boxedlist),
[Schema01BoxedMap](#schema01boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema01BoxedVoid
-public static final class Schema01BoxedVoid
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedVoid
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01BoxedBoolean
-public static final class Schema01BoxedBoolean
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedBoolean
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01BoxedNumber
-public static final class Schema01BoxedNumber
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedNumber
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01BoxedString
-public static final class Schema01BoxedString
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedString
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01BoxedList
-public static final class Schema01BoxedList
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedList
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01BoxedMap
-public static final class Schema01BoxedMap
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedMap
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01
public static class Schema01
@@ -461,9 +483,11 @@ A schema class that validates payloads
| [Schema01BoxedBoolean](#schema01boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema01BoxedMap](#schema01boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema01BoxedList](#schema01boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema01Boxed](#schema01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema02Boxed
-public static abstract sealed class Schema02Boxed
+public sealed interface Schema02Boxed
permits
[Schema02BoxedVoid](#schema02boxedvoid),
[Schema02BoxedBoolean](#schema02boxedboolean),
@@ -472,103 +496,109 @@ permits
[Schema02BoxedList](#schema02boxedlist),
[Schema02BoxedMap](#schema02boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema02BoxedVoid
-public static final class Schema02BoxedVoid
-extends [Schema02Boxed](#schema02boxed)
+public record Schema02BoxedVoid
+implements [Schema02Boxed](#schema02boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema02BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema02BoxedBoolean
-public static final class Schema02BoxedBoolean
-extends [Schema02Boxed](#schema02boxed)
+public record Schema02BoxedBoolean
+implements [Schema02Boxed](#schema02boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema02BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema02BoxedNumber
-public static final class Schema02BoxedNumber
-extends [Schema02Boxed](#schema02boxed)
+public record Schema02BoxedNumber
+implements [Schema02Boxed](#schema02boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema02BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema02BoxedString
-public static final class Schema02BoxedString
-extends [Schema02Boxed](#schema02boxed)
+public record Schema02BoxedString
+implements [Schema02Boxed](#schema02boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema02BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema02BoxedList
-public static final class Schema02BoxedList
-extends [Schema02Boxed](#schema02boxed)
+public record Schema02BoxedList
+implements [Schema02Boxed](#schema02boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema02BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema02BoxedMap
-public static final class Schema02BoxedMap
-extends [Schema02Boxed](#schema02boxed)
+public record Schema02BoxedMap
+implements [Schema02Boxed](#schema02boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema02BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema02
public static class Schema02
@@ -600,5 +630,7 @@ A schema class that validates payloads
| [Schema02BoxedBoolean](#schema02boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema02BoxedMap](#schema02boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema02BoxedList](#schema02boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema02Boxed](#schema02boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofSimpleTypes.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofSimpleTypes.md
index 0d06f2192b5..6e506fe215a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofSimpleTypes.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofSimpleTypes.md
@@ -4,39 +4,39 @@ public class AllofSimpleTypes
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1Boxed](#allofsimpletypes1boxed) abstract sealed validated payload class |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1BoxedVoid](#allofsimpletypes1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1BoxedBoolean](#allofsimpletypes1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1BoxedNumber](#allofsimpletypes1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1BoxedString](#allofsimpletypes1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1BoxedList](#allofsimpletypes1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofSimpleTypes.AllofSimpleTypes1BoxedMap](#allofsimpletypes1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofSimpleTypes.AllofSimpleTypes1Boxed](#allofsimpletypes1boxed) sealed interface for validated payloads |
+| record | [AllofSimpleTypes.AllofSimpleTypes1BoxedVoid](#allofsimpletypes1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofSimpleTypes.AllofSimpleTypes1BoxedBoolean](#allofsimpletypes1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofSimpleTypes.AllofSimpleTypes1BoxedNumber](#allofsimpletypes1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofSimpleTypes.AllofSimpleTypes1BoxedString](#allofsimpletypes1boxedstring) boxed class to store validated String payloads |
+| record | [AllofSimpleTypes.AllofSimpleTypes1BoxedList](#allofsimpletypes1boxedlist) boxed class to store validated List payloads |
+| record | [AllofSimpleTypes.AllofSimpleTypes1BoxedMap](#allofsimpletypes1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofSimpleTypes.AllofSimpleTypes1](#allofsimpletypes1) schema class |
-| static class | [AllofSimpleTypes.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AllofSimpleTypes.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofSimpleTypes.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofSimpleTypes.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofSimpleTypes.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofSimpleTypes.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofSimpleTypes.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofSimpleTypes.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AllofSimpleTypes.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofSimpleTypes.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofSimpleTypes.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofSimpleTypes.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofSimpleTypes.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofSimpleTypes.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofSimpleTypes.Schema1](#schema1) schema class |
-| static class | [AllofSimpleTypes.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofSimpleTypes.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofSimpleTypes.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofSimpleTypes.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofSimpleTypes.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AllofSimpleTypes.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AllofSimpleTypes.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofSimpleTypes.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofSimpleTypes.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AllofSimpleTypes.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofSimpleTypes.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AllofSimpleTypes.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AllofSimpleTypes.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AllofSimpleTypes.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AllofSimpleTypes.Schema0](#schema0) schema class |
## AllofSimpleTypes1Boxed
-public static abstract sealed class AllofSimpleTypes1Boxed
+public sealed interface AllofSimpleTypes1Boxed
permits
[AllofSimpleTypes1BoxedVoid](#allofsimpletypes1boxedvoid),
[AllofSimpleTypes1BoxedBoolean](#allofsimpletypes1boxedboolean),
@@ -45,103 +45,109 @@ permits
[AllofSimpleTypes1BoxedList](#allofsimpletypes1boxedlist),
[AllofSimpleTypes1BoxedMap](#allofsimpletypes1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofSimpleTypes1BoxedVoid
-public static final class AllofSimpleTypes1BoxedVoid
-extends [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
+public record AllofSimpleTypes1BoxedVoid
+implements [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofSimpleTypes1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofSimpleTypes1BoxedBoolean
-public static final class AllofSimpleTypes1BoxedBoolean
-extends [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
+public record AllofSimpleTypes1BoxedBoolean
+implements [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofSimpleTypes1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofSimpleTypes1BoxedNumber
-public static final class AllofSimpleTypes1BoxedNumber
-extends [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
+public record AllofSimpleTypes1BoxedNumber
+implements [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofSimpleTypes1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofSimpleTypes1BoxedString
-public static final class AllofSimpleTypes1BoxedString
-extends [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
+public record AllofSimpleTypes1BoxedString
+implements [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofSimpleTypes1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofSimpleTypes1BoxedList
-public static final class AllofSimpleTypes1BoxedList
-extends [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
+public record AllofSimpleTypes1BoxedList
+implements [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofSimpleTypes1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofSimpleTypes1BoxedMap
-public static final class AllofSimpleTypes1BoxedMap
-extends [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
+public record AllofSimpleTypes1BoxedMap
+implements [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofSimpleTypes1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofSimpleTypes1
public static class AllofSimpleTypes1
@@ -173,9 +179,11 @@ A schema class that validates payloads
| [AllofSimpleTypes1BoxedBoolean](#allofsimpletypes1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofSimpleTypes1BoxedMap](#allofsimpletypes1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AllofSimpleTypes1BoxedList](#allofsimpletypes1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofSimpleTypes1Boxed](#allofsimpletypes1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -184,103 +192,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -312,9 +326,11 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -323,103 +339,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -451,5 +473,7 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md
index 02f0f53d81e..81125243a09 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md
@@ -4,7 +4,7 @@ public class AllofWithBaseSchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,48 +12,48 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedVoid](#allofwithbaseschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedBoolean](#allofwithbaseschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedNumber](#allofwithbaseschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedString](#allofwithbaseschema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedList](#allofwithbaseschema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedMap](#allofwithbaseschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithBaseSchema.AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed) sealed interface for validated payloads |
+| record | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedVoid](#allofwithbaseschema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedBoolean](#allofwithbaseschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedNumber](#allofwithbaseschema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedString](#allofwithbaseschema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedList](#allofwithbaseschema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithBaseSchema.AllofWithBaseSchema1BoxedMap](#allofwithbaseschema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithBaseSchema.AllofWithBaseSchema1](#allofwithbaseschema1) schema class |
| static class | [AllofWithBaseSchema.AllofWithBaseSchemaMapBuilder](#allofwithbaseschemamapbuilder) builder for Map payloads |
| static class | [AllofWithBaseSchema.AllofWithBaseSchemaMap](#allofwithbaseschemamap) output class for Map payloads |
-| static class | [AllofWithBaseSchema.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [AllofWithBaseSchema.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [AllofWithBaseSchema.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [AllofWithBaseSchema.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
| static class | [AllofWithBaseSchema.Bar](#bar) schema class |
-| static class | [AllofWithBaseSchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithBaseSchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithBaseSchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithBaseSchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithBaseSchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithBaseSchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithBaseSchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithBaseSchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AllofWithBaseSchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithBaseSchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithBaseSchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithBaseSchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithBaseSchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithBaseSchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithBaseSchema.Schema1](#schema1) schema class |
| static class | [AllofWithBaseSchema.Schema1MapBuilder](#schema1mapbuilder) builder for Map payloads |
| static class | [AllofWithBaseSchema.Schema1Map](#schema1map) output class for Map payloads |
-| static class | [AllofWithBaseSchema.BazBoxed](#bazboxed) abstract sealed validated payload class |
-| static class | [AllofWithBaseSchema.BazBoxedVoid](#bazboxedvoid) boxed class to store validated null payloads |
+| sealed interface | [AllofWithBaseSchema.BazBoxed](#bazboxed) sealed interface for validated payloads |
+| record | [AllofWithBaseSchema.BazBoxedVoid](#bazboxedvoid) boxed class to store validated null payloads |
| static class | [AllofWithBaseSchema.Baz](#baz) schema class |
-| static class | [AllofWithBaseSchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofWithBaseSchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithBaseSchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithBaseSchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithBaseSchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithBaseSchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithBaseSchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithBaseSchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofWithBaseSchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithBaseSchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithBaseSchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithBaseSchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithBaseSchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithBaseSchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithBaseSchema.Schema0](#schema0) schema class |
| static class | [AllofWithBaseSchema.Schema0MapBuilder](#schema0mapbuilder) builder for Map payloads |
| static class | [AllofWithBaseSchema.Schema0Map](#schema0map) output class for Map payloads |
-| static class | [AllofWithBaseSchema.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [AllofWithBaseSchema.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| sealed interface | [AllofWithBaseSchema.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [AllofWithBaseSchema.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
| static class | [AllofWithBaseSchema.Foo](#foo) schema class |
## AllofWithBaseSchema1Boxed
-public static abstract sealed class AllofWithBaseSchema1Boxed
+public sealed interface AllofWithBaseSchema1Boxed
permits
[AllofWithBaseSchema1BoxedVoid](#allofwithbaseschema1boxedvoid),
[AllofWithBaseSchema1BoxedBoolean](#allofwithbaseschema1boxedboolean),
@@ -62,103 +62,109 @@ permits
[AllofWithBaseSchema1BoxedList](#allofwithbaseschema1boxedlist),
[AllofWithBaseSchema1BoxedMap](#allofwithbaseschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofWithBaseSchema1BoxedVoid
-public static final class AllofWithBaseSchema1BoxedVoid
-extends [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
+public record AllofWithBaseSchema1BoxedVoid
+implements [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithBaseSchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithBaseSchema1BoxedBoolean
-public static final class AllofWithBaseSchema1BoxedBoolean
-extends [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
+public record AllofWithBaseSchema1BoxedBoolean
+implements [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithBaseSchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithBaseSchema1BoxedNumber
-public static final class AllofWithBaseSchema1BoxedNumber
-extends [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
+public record AllofWithBaseSchema1BoxedNumber
+implements [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithBaseSchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithBaseSchema1BoxedString
-public static final class AllofWithBaseSchema1BoxedString
-extends [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
+public record AllofWithBaseSchema1BoxedString
+implements [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithBaseSchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithBaseSchema1BoxedList
-public static final class AllofWithBaseSchema1BoxedList
-extends [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
+public record AllofWithBaseSchema1BoxedList
+implements [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithBaseSchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithBaseSchema1BoxedMap
-public static final class AllofWithBaseSchema1BoxedMap
-extends [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
+public record AllofWithBaseSchema1BoxedMap
+implements [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithBaseSchema1BoxedMap([AllofWithBaseSchemaMap](#allofwithbaseschemamap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | data validated payload |
+| [AllofWithBaseSchemaMap](#allofwithbaseschemamap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithBaseSchema1
public static class AllofWithBaseSchema1
@@ -192,7 +198,9 @@ A schema class that validates payloads
| [AllofWithBaseSchema1BoxedBoolean](#allofwithbaseschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofWithBaseSchema1BoxedMap](#allofwithbaseschema1boxedmap) | validateAndBox([Map<?, ?>](#allofwithbaseschemamapbuilder) arg, SchemaConfiguration configuration) |
| [AllofWithBaseSchema1BoxedList](#allofwithbaseschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofWithBaseSchema1Boxed](#allofwithbaseschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## AllofWithBaseSchemaMap0Builder
public class AllofWithBaseSchemaMap0Builder
builder for `Map`
@@ -251,27 +259,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedNumber](#barboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -285,7 +294,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -294,103 +303,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap([Schema1Map](#schema1map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema1Map](#schema1map) | data validated payload |
+| [Schema1Map](#schema1map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -423,7 +438,9 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Map0Builder
public class Schema1Map0Builder
builder for `Map`
@@ -479,27 +496,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BazBoxed
-public static abstract sealed class BazBoxed
+public sealed interface BazBoxed
permits
[BazBoxedVoid](#bazboxedvoid)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BazBoxedVoid
-public static final class BazBoxedVoid
-extends [BazBoxed](#bazboxed)
+public record BazBoxedVoid
+implements [BazBoxed](#bazboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BazBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Baz
public static class Baz
@@ -513,7 +531,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -522,103 +540,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap([Schema0Map](#schema0map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema0Map](#schema0map) | data validated payload |
+| [Schema0Map](#schema0map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -651,7 +675,9 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Map0Builder
public class Schema0Map0Builder
builder for `Map`
@@ -707,27 +733,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedString](#fooboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md
index 8bb3b9ca2ec..353eef7b1a4 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithOneEmptySchema.md
@@ -4,31 +4,31 @@ public class AllofWithOneEmptySchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedVoid](#allofwithoneemptyschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedBoolean](#allofwithoneemptyschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedNumber](#allofwithoneemptyschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedString](#allofwithoneemptyschema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedList](#allofwithoneemptyschema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedMap](#allofwithoneemptyschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed) sealed interface for validated payloads |
+| record | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedVoid](#allofwithoneemptyschema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedBoolean](#allofwithoneemptyschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedNumber](#allofwithoneemptyschema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedString](#allofwithoneemptyschema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedList](#allofwithoneemptyschema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1BoxedMap](#allofwithoneemptyschema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithOneEmptySchema.AllofWithOneEmptySchema1](#allofwithoneemptyschema1) schema class |
-| static class | [AllofWithOneEmptySchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofWithOneEmptySchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithOneEmptySchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithOneEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithOneEmptySchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithOneEmptySchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithOneEmptySchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithOneEmptySchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofWithOneEmptySchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithOneEmptySchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithOneEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithOneEmptySchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithOneEmptySchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithOneEmptySchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithOneEmptySchema.Schema0](#schema0) schema class |
## AllofWithOneEmptySchema1Boxed
-public static abstract sealed class AllofWithOneEmptySchema1Boxed
+public sealed interface AllofWithOneEmptySchema1Boxed
permits
[AllofWithOneEmptySchema1BoxedVoid](#allofwithoneemptyschema1boxedvoid),
[AllofWithOneEmptySchema1BoxedBoolean](#allofwithoneemptyschema1boxedboolean),
@@ -37,103 +37,109 @@ permits
[AllofWithOneEmptySchema1BoxedList](#allofwithoneemptyschema1boxedlist),
[AllofWithOneEmptySchema1BoxedMap](#allofwithoneemptyschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofWithOneEmptySchema1BoxedVoid
-public static final class AllofWithOneEmptySchema1BoxedVoid
-extends [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
+public record AllofWithOneEmptySchema1BoxedVoid
+implements [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithOneEmptySchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithOneEmptySchema1BoxedBoolean
-public static final class AllofWithOneEmptySchema1BoxedBoolean
-extends [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
+public record AllofWithOneEmptySchema1BoxedBoolean
+implements [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithOneEmptySchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithOneEmptySchema1BoxedNumber
-public static final class AllofWithOneEmptySchema1BoxedNumber
-extends [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
+public record AllofWithOneEmptySchema1BoxedNumber
+implements [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithOneEmptySchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithOneEmptySchema1BoxedString
-public static final class AllofWithOneEmptySchema1BoxedString
-extends [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
+public record AllofWithOneEmptySchema1BoxedString
+implements [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithOneEmptySchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithOneEmptySchema1BoxedList
-public static final class AllofWithOneEmptySchema1BoxedList
-extends [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
+public record AllofWithOneEmptySchema1BoxedList
+implements [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithOneEmptySchema1BoxedMap
-public static final class AllofWithOneEmptySchema1BoxedMap
-extends [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
+public record AllofWithOneEmptySchema1BoxedMap
+implements [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithOneEmptySchema1
public static class AllofWithOneEmptySchema1
@@ -165,9 +171,11 @@ A schema class that validates payloads
| [AllofWithOneEmptySchema1BoxedBoolean](#allofwithoneemptyschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofWithOneEmptySchema1BoxedMap](#allofwithoneemptyschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AllofWithOneEmptySchema1BoxedList](#allofwithoneemptyschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofWithOneEmptySchema1Boxed](#allofwithoneemptyschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -176,103 +184,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md
index 60262417c7c..f4341590119 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheFirstEmptySchema.md
@@ -4,34 +4,34 @@ public class AllofWithTheFirstEmptySchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedVoid](#allofwiththefirstemptyschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedBoolean](#allofwiththefirstemptyschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedNumber](#allofwiththefirstemptyschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedString](#allofwiththefirstemptyschema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedList](#allofwiththefirstemptyschema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedMap](#allofwiththefirstemptyschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed) sealed interface for validated payloads |
+| record | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedVoid](#allofwiththefirstemptyschema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedBoolean](#allofwiththefirstemptyschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedNumber](#allofwiththefirstemptyschema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedString](#allofwiththefirstemptyschema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedList](#allofwiththefirstemptyschema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1BoxedMap](#allofwiththefirstemptyschema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTheFirstEmptySchema.AllofWithTheFirstEmptySchema1](#allofwiththefirstemptyschema1) schema class |
-| static class | [AllofWithTheFirstEmptySchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithTheFirstEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [AllofWithTheFirstEmptySchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
| static class | [AllofWithTheFirstEmptySchema.Schema1](#schema1) schema class |
-| static class | [AllofWithTheFirstEmptySchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofWithTheFirstEmptySchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTheFirstEmptySchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTheFirstEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTheFirstEmptySchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTheFirstEmptySchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTheFirstEmptySchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTheFirstEmptySchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTheFirstEmptySchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTheFirstEmptySchema.Schema0](#schema0) schema class |
## AllofWithTheFirstEmptySchema1Boxed
-public static abstract sealed class AllofWithTheFirstEmptySchema1Boxed
+public sealed interface AllofWithTheFirstEmptySchema1Boxed
permits
[AllofWithTheFirstEmptySchema1BoxedVoid](#allofwiththefirstemptyschema1boxedvoid),
[AllofWithTheFirstEmptySchema1BoxedBoolean](#allofwiththefirstemptyschema1boxedboolean),
@@ -40,103 +40,109 @@ permits
[AllofWithTheFirstEmptySchema1BoxedList](#allofwiththefirstemptyschema1boxedlist),
[AllofWithTheFirstEmptySchema1BoxedMap](#allofwiththefirstemptyschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofWithTheFirstEmptySchema1BoxedVoid
-public static final class AllofWithTheFirstEmptySchema1BoxedVoid
-extends [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
+public record AllofWithTheFirstEmptySchema1BoxedVoid
+implements [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheFirstEmptySchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheFirstEmptySchema1BoxedBoolean
-public static final class AllofWithTheFirstEmptySchema1BoxedBoolean
-extends [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
+public record AllofWithTheFirstEmptySchema1BoxedBoolean
+implements [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheFirstEmptySchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheFirstEmptySchema1BoxedNumber
-public static final class AllofWithTheFirstEmptySchema1BoxedNumber
-extends [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
+public record AllofWithTheFirstEmptySchema1BoxedNumber
+implements [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheFirstEmptySchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheFirstEmptySchema1BoxedString
-public static final class AllofWithTheFirstEmptySchema1BoxedString
-extends [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
+public record AllofWithTheFirstEmptySchema1BoxedString
+implements [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheFirstEmptySchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheFirstEmptySchema1BoxedList
-public static final class AllofWithTheFirstEmptySchema1BoxedList
-extends [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
+public record AllofWithTheFirstEmptySchema1BoxedList
+implements [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheFirstEmptySchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheFirstEmptySchema1BoxedMap
-public static final class AllofWithTheFirstEmptySchema1BoxedMap
-extends [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
+public record AllofWithTheFirstEmptySchema1BoxedMap
+implements [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheFirstEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheFirstEmptySchema1
public static class AllofWithTheFirstEmptySchema1
@@ -168,29 +174,32 @@ A schema class that validates payloads
| [AllofWithTheFirstEmptySchema1BoxedBoolean](#allofwiththefirstemptyschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofWithTheFirstEmptySchema1BoxedMap](#allofwiththefirstemptyschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AllofWithTheFirstEmptySchema1BoxedList](#allofwiththefirstemptyschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofWithTheFirstEmptySchema1Boxed](#allofwiththefirstemptyschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedNumber](#schema1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -204,7 +213,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -213,103 +222,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md
index f43f920d986..6d626d52eb9 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTheLastEmptySchema.md
@@ -4,34 +4,34 @@ public class AllofWithTheLastEmptySchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedVoid](#allofwiththelastemptyschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedBoolean](#allofwiththelastemptyschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedNumber](#allofwiththelastemptyschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedString](#allofwiththelastemptyschema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedList](#allofwiththelastemptyschema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedMap](#allofwiththelastemptyschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed) sealed interface for validated payloads |
+| record | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedVoid](#allofwiththelastemptyschema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedBoolean](#allofwiththelastemptyschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedNumber](#allofwiththelastemptyschema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedString](#allofwiththelastemptyschema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedList](#allofwiththelastemptyschema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1BoxedMap](#allofwiththelastemptyschema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTheLastEmptySchema.AllofWithTheLastEmptySchema1](#allofwiththelastemptyschema1) schema class |
-| static class | [AllofWithTheLastEmptySchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithTheLastEmptySchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTheLastEmptySchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTheLastEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTheLastEmptySchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTheLastEmptySchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTheLastEmptySchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTheLastEmptySchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AllofWithTheLastEmptySchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTheLastEmptySchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTheLastEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTheLastEmptySchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTheLastEmptySchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTheLastEmptySchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTheLastEmptySchema.Schema1](#schema1) schema class |
-| static class | [AllofWithTheLastEmptySchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofWithTheLastEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [AllofWithTheLastEmptySchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofWithTheLastEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
| static class | [AllofWithTheLastEmptySchema.Schema0](#schema0) schema class |
## AllofWithTheLastEmptySchema1Boxed
-public static abstract sealed class AllofWithTheLastEmptySchema1Boxed
+public sealed interface AllofWithTheLastEmptySchema1Boxed
permits
[AllofWithTheLastEmptySchema1BoxedVoid](#allofwiththelastemptyschema1boxedvoid),
[AllofWithTheLastEmptySchema1BoxedBoolean](#allofwiththelastemptyschema1boxedboolean),
@@ -40,103 +40,109 @@ permits
[AllofWithTheLastEmptySchema1BoxedList](#allofwiththelastemptyschema1boxedlist),
[AllofWithTheLastEmptySchema1BoxedMap](#allofwiththelastemptyschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofWithTheLastEmptySchema1BoxedVoid
-public static final class AllofWithTheLastEmptySchema1BoxedVoid
-extends [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
+public record AllofWithTheLastEmptySchema1BoxedVoid
+implements [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheLastEmptySchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheLastEmptySchema1BoxedBoolean
-public static final class AllofWithTheLastEmptySchema1BoxedBoolean
-extends [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
+public record AllofWithTheLastEmptySchema1BoxedBoolean
+implements [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheLastEmptySchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheLastEmptySchema1BoxedNumber
-public static final class AllofWithTheLastEmptySchema1BoxedNumber
-extends [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
+public record AllofWithTheLastEmptySchema1BoxedNumber
+implements [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheLastEmptySchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheLastEmptySchema1BoxedString
-public static final class AllofWithTheLastEmptySchema1BoxedString
-extends [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
+public record AllofWithTheLastEmptySchema1BoxedString
+implements [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheLastEmptySchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheLastEmptySchema1BoxedList
-public static final class AllofWithTheLastEmptySchema1BoxedList
-extends [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
+public record AllofWithTheLastEmptySchema1BoxedList
+implements [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheLastEmptySchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheLastEmptySchema1BoxedMap
-public static final class AllofWithTheLastEmptySchema1BoxedMap
-extends [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
+public record AllofWithTheLastEmptySchema1BoxedMap
+implements [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTheLastEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTheLastEmptySchema1
public static class AllofWithTheLastEmptySchema1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [AllofWithTheLastEmptySchema1BoxedBoolean](#allofwiththelastemptyschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofWithTheLastEmptySchema1BoxedMap](#allofwiththelastemptyschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AllofWithTheLastEmptySchema1BoxedList](#allofwiththelastemptyschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofWithTheLastEmptySchema1Boxed](#allofwiththelastemptyschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -289,27 +303,28 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedNumber](#schema0boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md
index e72c6155a05..4875f70770c 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithTwoEmptySchemas.md
@@ -4,39 +4,39 @@ public class AllofWithTwoEmptySchemas
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed) abstract sealed validated payload class |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedVoid](#allofwithtwoemptyschemas1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedBoolean](#allofwithtwoemptyschemas1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedNumber](#allofwithtwoemptyschemas1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedString](#allofwithtwoemptyschemas1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedList](#allofwithtwoemptyschemas1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedMap](#allofwithtwoemptyschemas1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed) sealed interface for validated payloads |
+| record | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedVoid](#allofwithtwoemptyschemas1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedBoolean](#allofwithtwoemptyschemas1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedNumber](#allofwithtwoemptyschemas1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedString](#allofwithtwoemptyschemas1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedList](#allofwithtwoemptyschemas1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1BoxedMap](#allofwithtwoemptyschemas1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTwoEmptySchemas.AllofWithTwoEmptySchemas1](#allofwithtwoemptyschemas1) schema class |
-| static class | [AllofWithTwoEmptySchemas.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AllofWithTwoEmptySchemas.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTwoEmptySchemas.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AllofWithTwoEmptySchemas.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTwoEmptySchemas.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTwoEmptySchemas.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTwoEmptySchemas.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTwoEmptySchemas.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTwoEmptySchemas.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTwoEmptySchemas.Schema1](#schema1) schema class |
-| static class | [AllofWithTwoEmptySchemas.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AllofWithTwoEmptySchemas.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AllofWithTwoEmptySchemas.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AllofWithTwoEmptySchemas.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AllofWithTwoEmptySchemas.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AllofWithTwoEmptySchemas.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AllofWithTwoEmptySchemas.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AllofWithTwoEmptySchemas.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AllofWithTwoEmptySchemas.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AllofWithTwoEmptySchemas.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AllofWithTwoEmptySchemas.Schema0](#schema0) schema class |
## AllofWithTwoEmptySchemas1Boxed
-public static abstract sealed class AllofWithTwoEmptySchemas1Boxed
+public sealed interface AllofWithTwoEmptySchemas1Boxed
permits
[AllofWithTwoEmptySchemas1BoxedVoid](#allofwithtwoemptyschemas1boxedvoid),
[AllofWithTwoEmptySchemas1BoxedBoolean](#allofwithtwoemptyschemas1boxedboolean),
@@ -45,103 +45,109 @@ permits
[AllofWithTwoEmptySchemas1BoxedList](#allofwithtwoemptyschemas1boxedlist),
[AllofWithTwoEmptySchemas1BoxedMap](#allofwithtwoemptyschemas1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AllofWithTwoEmptySchemas1BoxedVoid
-public static final class AllofWithTwoEmptySchemas1BoxedVoid
-extends [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
+public record AllofWithTwoEmptySchemas1BoxedVoid
+implements [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTwoEmptySchemas1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTwoEmptySchemas1BoxedBoolean
-public static final class AllofWithTwoEmptySchemas1BoxedBoolean
-extends [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
+public record AllofWithTwoEmptySchemas1BoxedBoolean
+implements [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTwoEmptySchemas1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTwoEmptySchemas1BoxedNumber
-public static final class AllofWithTwoEmptySchemas1BoxedNumber
-extends [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
+public record AllofWithTwoEmptySchemas1BoxedNumber
+implements [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTwoEmptySchemas1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTwoEmptySchemas1BoxedString
-public static final class AllofWithTwoEmptySchemas1BoxedString
-extends [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
+public record AllofWithTwoEmptySchemas1BoxedString
+implements [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTwoEmptySchemas1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTwoEmptySchemas1BoxedList
-public static final class AllofWithTwoEmptySchemas1BoxedList
-extends [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
+public record AllofWithTwoEmptySchemas1BoxedList
+implements [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTwoEmptySchemas1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTwoEmptySchemas1BoxedMap
-public static final class AllofWithTwoEmptySchemas1BoxedMap
-extends [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
+public record AllofWithTwoEmptySchemas1BoxedMap
+implements [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AllofWithTwoEmptySchemas1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AllofWithTwoEmptySchemas1
public static class AllofWithTwoEmptySchemas1
@@ -173,9 +179,11 @@ A schema class that validates payloads
| [AllofWithTwoEmptySchemas1BoxedBoolean](#allofwithtwoemptyschemas1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AllofWithTwoEmptySchemas1BoxedMap](#allofwithtwoemptyschemas1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AllofWithTwoEmptySchemas1BoxedList](#allofwithtwoemptyschemas1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AllofWithTwoEmptySchemas1Boxed](#allofwithtwoemptyschemas1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -184,103 +192,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -294,7 +308,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -303,103 +317,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Anyof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Anyof.md
index 8c0f413375b..316b94bb0d9 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Anyof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Anyof.md
@@ -4,34 +4,34 @@ public class Anyof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Anyof.Anyof1Boxed](#anyof1boxed) abstract sealed validated payload class |
-| static class | [Anyof.Anyof1BoxedVoid](#anyof1boxedvoid) boxed class to store validated null payloads |
-| static class | [Anyof.Anyof1BoxedBoolean](#anyof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Anyof.Anyof1BoxedNumber](#anyof1boxednumber) boxed class to store validated Number payloads |
-| static class | [Anyof.Anyof1BoxedString](#anyof1boxedstring) boxed class to store validated String payloads |
-| static class | [Anyof.Anyof1BoxedList](#anyof1boxedlist) boxed class to store validated List payloads |
-| static class | [Anyof.Anyof1BoxedMap](#anyof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Anyof.Anyof1Boxed](#anyof1boxed) sealed interface for validated payloads |
+| record | [Anyof.Anyof1BoxedVoid](#anyof1boxedvoid) boxed class to store validated null payloads |
+| record | [Anyof.Anyof1BoxedBoolean](#anyof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Anyof.Anyof1BoxedNumber](#anyof1boxednumber) boxed class to store validated Number payloads |
+| record | [Anyof.Anyof1BoxedString](#anyof1boxedstring) boxed class to store validated String payloads |
+| record | [Anyof.Anyof1BoxedList](#anyof1boxedlist) boxed class to store validated List payloads |
+| record | [Anyof.Anyof1BoxedMap](#anyof1boxedmap) boxed class to store validated Map payloads |
| static class | [Anyof.Anyof1](#anyof1) schema class |
-| static class | [Anyof.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [Anyof.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [Anyof.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Anyof.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [Anyof.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [Anyof.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [Anyof.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Anyof.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [Anyof.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [Anyof.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Anyof.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [Anyof.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [Anyof.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [Anyof.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [Anyof.Schema1](#schema1) schema class |
-| static class | [Anyof.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [Anyof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [Anyof.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [Anyof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
| static class | [Anyof.Schema0](#schema0) schema class |
## Anyof1Boxed
-public static abstract sealed class Anyof1Boxed
+public sealed interface Anyof1Boxed
permits
[Anyof1BoxedVoid](#anyof1boxedvoid),
[Anyof1BoxedBoolean](#anyof1boxedboolean),
@@ -40,103 +40,109 @@ permits
[Anyof1BoxedList](#anyof1boxedlist),
[Anyof1BoxedMap](#anyof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Anyof1BoxedVoid
-public static final class Anyof1BoxedVoid
-extends [Anyof1Boxed](#anyof1boxed)
+public record Anyof1BoxedVoid
+implements [Anyof1Boxed](#anyof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Anyof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Anyof1BoxedBoolean
-public static final class Anyof1BoxedBoolean
-extends [Anyof1Boxed](#anyof1boxed)
+public record Anyof1BoxedBoolean
+implements [Anyof1Boxed](#anyof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Anyof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Anyof1BoxedNumber
-public static final class Anyof1BoxedNumber
-extends [Anyof1Boxed](#anyof1boxed)
+public record Anyof1BoxedNumber
+implements [Anyof1Boxed](#anyof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Anyof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Anyof1BoxedString
-public static final class Anyof1BoxedString
-extends [Anyof1Boxed](#anyof1boxed)
+public record Anyof1BoxedString
+implements [Anyof1Boxed](#anyof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Anyof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Anyof1BoxedList
-public static final class Anyof1BoxedList
-extends [Anyof1Boxed](#anyof1boxed)
+public record Anyof1BoxedList
+implements [Anyof1Boxed](#anyof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Anyof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Anyof1BoxedMap
-public static final class Anyof1BoxedMap
-extends [Anyof1Boxed](#anyof1boxed)
+public record Anyof1BoxedMap
+implements [Anyof1Boxed](#anyof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Anyof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Anyof1
public static class Anyof1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [Anyof1BoxedBoolean](#anyof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Anyof1BoxedMap](#anyof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Anyof1BoxedList](#anyof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Anyof1Boxed](#anyof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -307,29 +321,32 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedNumber](#schema0boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md
index 3b0fde2e61d..9d0ee6763c9 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofComplexTypes.md
@@ -4,7 +4,7 @@ public class AnyofComplexTypes
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,43 +12,43 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed) abstract sealed validated payload class |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1BoxedVoid](#anyofcomplextypes1boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1BoxedBoolean](#anyofcomplextypes1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1BoxedNumber](#anyofcomplextypes1boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1BoxedString](#anyofcomplextypes1boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1BoxedList](#anyofcomplextypes1boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofComplexTypes.AnyofComplexTypes1BoxedMap](#anyofcomplextypes1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofComplexTypes.AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed) sealed interface for validated payloads |
+| record | [AnyofComplexTypes.AnyofComplexTypes1BoxedVoid](#anyofcomplextypes1boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofComplexTypes.AnyofComplexTypes1BoxedBoolean](#anyofcomplextypes1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofComplexTypes.AnyofComplexTypes1BoxedNumber](#anyofcomplextypes1boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofComplexTypes.AnyofComplexTypes1BoxedString](#anyofcomplextypes1boxedstring) boxed class to store validated String payloads |
+| record | [AnyofComplexTypes.AnyofComplexTypes1BoxedList](#anyofcomplextypes1boxedlist) boxed class to store validated List payloads |
+| record | [AnyofComplexTypes.AnyofComplexTypes1BoxedMap](#anyofcomplextypes1boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofComplexTypes.AnyofComplexTypes1](#anyofcomplextypes1) schema class |
-| static class | [AnyofComplexTypes.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AnyofComplexTypes.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofComplexTypes.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofComplexTypes.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofComplexTypes.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofComplexTypes.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofComplexTypes.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofComplexTypes.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AnyofComplexTypes.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofComplexTypes.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofComplexTypes.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofComplexTypes.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AnyofComplexTypes.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AnyofComplexTypes.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofComplexTypes.Schema1](#schema1) schema class |
| static class | [AnyofComplexTypes.Schema1MapBuilder](#schema1mapbuilder) builder for Map payloads |
| static class | [AnyofComplexTypes.Schema1Map](#schema1map) output class for Map payloads |
-| static class | [AnyofComplexTypes.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [AnyofComplexTypes.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| sealed interface | [AnyofComplexTypes.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [AnyofComplexTypes.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
| static class | [AnyofComplexTypes.Foo](#foo) schema class |
-| static class | [AnyofComplexTypes.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AnyofComplexTypes.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofComplexTypes.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofComplexTypes.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofComplexTypes.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofComplexTypes.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofComplexTypes.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofComplexTypes.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AnyofComplexTypes.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofComplexTypes.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofComplexTypes.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofComplexTypes.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AnyofComplexTypes.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AnyofComplexTypes.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofComplexTypes.Schema0](#schema0) schema class |
| static class | [AnyofComplexTypes.Schema0MapBuilder](#schema0mapbuilder) builder for Map payloads |
| static class | [AnyofComplexTypes.Schema0Map](#schema0map) output class for Map payloads |
-| static class | [AnyofComplexTypes.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [AnyofComplexTypes.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [AnyofComplexTypes.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [AnyofComplexTypes.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
| static class | [AnyofComplexTypes.Bar](#bar) schema class |
## AnyofComplexTypes1Boxed
-public static abstract sealed class AnyofComplexTypes1Boxed
+public sealed interface AnyofComplexTypes1Boxed
permits
[AnyofComplexTypes1BoxedVoid](#anyofcomplextypes1boxedvoid),
[AnyofComplexTypes1BoxedBoolean](#anyofcomplextypes1boxedboolean),
@@ -57,103 +57,109 @@ permits
[AnyofComplexTypes1BoxedList](#anyofcomplextypes1boxedlist),
[AnyofComplexTypes1BoxedMap](#anyofcomplextypes1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AnyofComplexTypes1BoxedVoid
-public static final class AnyofComplexTypes1BoxedVoid
-extends [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
+public record AnyofComplexTypes1BoxedVoid
+implements [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofComplexTypes1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofComplexTypes1BoxedBoolean
-public static final class AnyofComplexTypes1BoxedBoolean
-extends [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
+public record AnyofComplexTypes1BoxedBoolean
+implements [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofComplexTypes1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofComplexTypes1BoxedNumber
-public static final class AnyofComplexTypes1BoxedNumber
-extends [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
+public record AnyofComplexTypes1BoxedNumber
+implements [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofComplexTypes1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofComplexTypes1BoxedString
-public static final class AnyofComplexTypes1BoxedString
-extends [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
+public record AnyofComplexTypes1BoxedString
+implements [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofComplexTypes1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofComplexTypes1BoxedList
-public static final class AnyofComplexTypes1BoxedList
-extends [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
+public record AnyofComplexTypes1BoxedList
+implements [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofComplexTypes1BoxedMap
-public static final class AnyofComplexTypes1BoxedMap
-extends [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
+public record AnyofComplexTypes1BoxedMap
+implements [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofComplexTypes1
public static class AnyofComplexTypes1
@@ -185,9 +191,11 @@ A schema class that validates payloads
| [AnyofComplexTypes1BoxedBoolean](#anyofcomplextypes1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AnyofComplexTypes1BoxedMap](#anyofcomplextypes1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AnyofComplexTypes1BoxedList](#anyofcomplextypes1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AnyofComplexTypes1Boxed](#anyofcomplextypes1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -196,103 +204,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap([Schema1Map](#schema1map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema1Map](#schema1map) | data validated payload |
+| [Schema1Map](#schema1map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -325,7 +339,9 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Map0Builder
public class Schema1Map0Builder
builder for `Map`
@@ -381,27 +397,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedString](#fooboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
@@ -415,7 +432,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -424,103 +441,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap([Schema0Map](#schema0map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema0Map](#schema0map) | data validated payload |
+| [Schema0Map](#schema0map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -553,7 +576,9 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Map0Builder
public class Schema0Map0Builder
builder for `Map`
@@ -612,27 +637,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedNumber](#barboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
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 4f9f5d6e379..d0b22fd2a54 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
@@ -4,54 +4,55 @@ public class AnyofWithBaseSchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AnyofWithBaseSchema.AnyofWithBaseSchema1Boxed](#anyofwithbaseschema1boxed) abstract sealed validated payload class |
-| static class | [AnyofWithBaseSchema.AnyofWithBaseSchema1BoxedString](#anyofwithbaseschema1boxedstring) boxed class to store validated String payloads |
+| sealed interface | [AnyofWithBaseSchema.AnyofWithBaseSchema1Boxed](#anyofwithbaseschema1boxed) sealed interface for validated payloads |
+| record | [AnyofWithBaseSchema.AnyofWithBaseSchema1BoxedString](#anyofwithbaseschema1boxedstring) boxed class to store validated String payloads |
| static class | [AnyofWithBaseSchema.AnyofWithBaseSchema1](#anyofwithbaseschema1) schema class |
-| static class | [AnyofWithBaseSchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AnyofWithBaseSchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofWithBaseSchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofWithBaseSchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofWithBaseSchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofWithBaseSchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofWithBaseSchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofWithBaseSchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AnyofWithBaseSchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofWithBaseSchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofWithBaseSchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofWithBaseSchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AnyofWithBaseSchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AnyofWithBaseSchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofWithBaseSchema.Schema1](#schema1) schema class |
-| static class | [AnyofWithBaseSchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AnyofWithBaseSchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofWithBaseSchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofWithBaseSchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofWithBaseSchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofWithBaseSchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofWithBaseSchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofWithBaseSchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AnyofWithBaseSchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofWithBaseSchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofWithBaseSchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofWithBaseSchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [AnyofWithBaseSchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [AnyofWithBaseSchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofWithBaseSchema.Schema0](#schema0) schema class |
## AnyofWithBaseSchema1Boxed
-public static abstract sealed class AnyofWithBaseSchema1Boxed
+public sealed interface AnyofWithBaseSchema1Boxed
permits
[AnyofWithBaseSchema1BoxedString](#anyofwithbaseschema1boxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AnyofWithBaseSchema1BoxedString
-public static final class AnyofWithBaseSchema1BoxedString
-extends [AnyofWithBaseSchema1Boxed](#anyofwithbaseschema1boxed)
+public record AnyofWithBaseSchema1BoxedString
+implements [AnyofWithBaseSchema1Boxed](#anyofwithbaseschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithBaseSchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithBaseSchema1
public static class AnyofWithBaseSchema1
@@ -92,9 +93,11 @@ String validatedPayload = AnyofWithBaseSchema.AnyofWithBaseSchema1.validate(
| ----------------- | ---------------------- |
| String | validate(String arg, SchemaConfiguration configuration) |
| [AnyofWithBaseSchema1BoxedString](#anyofwithbaseschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [AnyofWithBaseSchema1Boxed](#anyofwithbaseschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -103,103 +106,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -231,9 +240,11 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -242,103 +253,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -370,5 +387,7 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md
index 420dfa38f67..863a2b98c1b 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/AnyofWithOneEmptySchema.md
@@ -4,34 +4,34 @@ public class AnyofWithOneEmptySchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed) abstract sealed validated payload class |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedVoid](#anyofwithoneemptyschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedBoolean](#anyofwithoneemptyschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedNumber](#anyofwithoneemptyschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedString](#anyofwithoneemptyschema1boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedList](#anyofwithoneemptyschema1boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedMap](#anyofwithoneemptyschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed) sealed interface for validated payloads |
+| record | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedVoid](#anyofwithoneemptyschema1boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedBoolean](#anyofwithoneemptyschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedNumber](#anyofwithoneemptyschema1boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedString](#anyofwithoneemptyschema1boxedstring) boxed class to store validated String payloads |
+| record | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedList](#anyofwithoneemptyschema1boxedlist) boxed class to store validated List payloads |
+| record | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1BoxedMap](#anyofwithoneemptyschema1boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofWithOneEmptySchema.AnyofWithOneEmptySchema1](#anyofwithoneemptyschema1) schema class |
-| static class | [AnyofWithOneEmptySchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [AnyofWithOneEmptySchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [AnyofWithOneEmptySchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [AnyofWithOneEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [AnyofWithOneEmptySchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [AnyofWithOneEmptySchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [AnyofWithOneEmptySchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [AnyofWithOneEmptySchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [AnyofWithOneEmptySchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [AnyofWithOneEmptySchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [AnyofWithOneEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [AnyofWithOneEmptySchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [AnyofWithOneEmptySchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [AnyofWithOneEmptySchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [AnyofWithOneEmptySchema.Schema1](#schema1) schema class |
-| static class | [AnyofWithOneEmptySchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [AnyofWithOneEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [AnyofWithOneEmptySchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [AnyofWithOneEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
| static class | [AnyofWithOneEmptySchema.Schema0](#schema0) schema class |
## AnyofWithOneEmptySchema1Boxed
-public static abstract sealed class AnyofWithOneEmptySchema1Boxed
+public sealed interface AnyofWithOneEmptySchema1Boxed
permits
[AnyofWithOneEmptySchema1BoxedVoid](#anyofwithoneemptyschema1boxedvoid),
[AnyofWithOneEmptySchema1BoxedBoolean](#anyofwithoneemptyschema1boxedboolean),
@@ -40,103 +40,109 @@ permits
[AnyofWithOneEmptySchema1BoxedList](#anyofwithoneemptyschema1boxedlist),
[AnyofWithOneEmptySchema1BoxedMap](#anyofwithoneemptyschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AnyofWithOneEmptySchema1BoxedVoid
-public static final class AnyofWithOneEmptySchema1BoxedVoid
-extends [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
+public record AnyofWithOneEmptySchema1BoxedVoid
+implements [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithOneEmptySchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithOneEmptySchema1BoxedBoolean
-public static final class AnyofWithOneEmptySchema1BoxedBoolean
-extends [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
+public record AnyofWithOneEmptySchema1BoxedBoolean
+implements [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithOneEmptySchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithOneEmptySchema1BoxedNumber
-public static final class AnyofWithOneEmptySchema1BoxedNumber
-extends [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
+public record AnyofWithOneEmptySchema1BoxedNumber
+implements [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithOneEmptySchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithOneEmptySchema1BoxedString
-public static final class AnyofWithOneEmptySchema1BoxedString
-extends [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
+public record AnyofWithOneEmptySchema1BoxedString
+implements [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithOneEmptySchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithOneEmptySchema1BoxedList
-public static final class AnyofWithOneEmptySchema1BoxedList
-extends [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
+public record AnyofWithOneEmptySchema1BoxedList
+implements [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithOneEmptySchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithOneEmptySchema1BoxedMap
-public static final class AnyofWithOneEmptySchema1BoxedMap
-extends [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
+public record AnyofWithOneEmptySchema1BoxedMap
+implements [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AnyofWithOneEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## AnyofWithOneEmptySchema1
public static class AnyofWithOneEmptySchema1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [AnyofWithOneEmptySchema1BoxedBoolean](#anyofwithoneemptyschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [AnyofWithOneEmptySchema1BoxedMap](#anyofwithoneemptyschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [AnyofWithOneEmptySchema1BoxedList](#anyofwithoneemptyschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [AnyofWithOneEmptySchema1Boxed](#anyofwithoneemptyschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -289,27 +303,28 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedNumber](#schema0boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
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 752c03f7e21..21bdab9c7e9 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
@@ -4,7 +4,7 @@ public class ArrayTypeMatchesArrays
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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 list payloads, extends FrozenList
- classes to build inputs for list payloads
@@ -12,42 +12,43 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1Boxed](#arraytypematchesarrays1boxed) abstract sealed validated payload class |
-| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1BoxedList](#arraytypematchesarrays1boxedlist) boxed class to store validated List payloads |
+| sealed interface | [ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1Boxed](#arraytypematchesarrays1boxed) sealed interface for validated payloads |
+| record | [ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1BoxedList](#arraytypematchesarrays1boxedlist) boxed class to store validated List payloads |
| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArrays1](#arraytypematchesarrays1) schema class |
| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArraysListBuilder](#arraytypematchesarrayslistbuilder) builder for List payloads |
| static class | [ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) output class for List payloads |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxed](#itemsboxed) abstract sealed validated payload class |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxedVoid](#itemsboxedvoid) boxed class to store validated null payloads |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxedBoolean](#itemsboxedboolean) boxed class to store validated boolean payloads |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxedNumber](#itemsboxednumber) boxed class to store validated Number payloads |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxedString](#itemsboxedstring) boxed class to store validated String payloads |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxedList](#itemsboxedlist) boxed class to store validated List payloads |
-| static class | [ArrayTypeMatchesArrays.ItemsBoxedMap](#itemsboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ArrayTypeMatchesArrays.ItemsBoxed](#itemsboxed) sealed interface for validated payloads |
+| record | [ArrayTypeMatchesArrays.ItemsBoxedVoid](#itemsboxedvoid) boxed class to store validated null payloads |
+| record | [ArrayTypeMatchesArrays.ItemsBoxedBoolean](#itemsboxedboolean) boxed class to store validated boolean payloads |
+| record | [ArrayTypeMatchesArrays.ItemsBoxedNumber](#itemsboxednumber) boxed class to store validated Number payloads |
+| record | [ArrayTypeMatchesArrays.ItemsBoxedString](#itemsboxedstring) boxed class to store validated String payloads |
+| record | [ArrayTypeMatchesArrays.ItemsBoxedList](#itemsboxedlist) boxed class to store validated List payloads |
+| record | [ArrayTypeMatchesArrays.ItemsBoxedMap](#itemsboxedmap) boxed class to store validated Map payloads |
| static class | [ArrayTypeMatchesArrays.Items](#items) schema class |
## ArrayTypeMatchesArrays1Boxed
-public static abstract sealed class ArrayTypeMatchesArrays1Boxed
+public sealed interface ArrayTypeMatchesArrays1Boxed
permits
[ArrayTypeMatchesArrays1BoxedList](#arraytypematchesarrays1boxedlist)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ArrayTypeMatchesArrays1BoxedList
-public static final class ArrayTypeMatchesArrays1BoxedList
-extends [ArrayTypeMatchesArrays1Boxed](#arraytypematchesarrays1boxed)
+public record ArrayTypeMatchesArrays1BoxedList
+implements [ArrayTypeMatchesArrays1Boxed](#arraytypematchesarrays1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ArrayTypeMatchesArrays1BoxedList([ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | data validated payload |
+| [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ArrayTypeMatchesArrays1
public static class ArrayTypeMatchesArrays1
@@ -90,7 +91,9 @@ ArrayTypeMatchesArrays.ArrayTypeMatchesArraysList validatedPayload =
| ----------------- | ---------------------- |
| [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | validate([List>](#arraytypematchesarrayslistbuilder) arg, SchemaConfiguration configuration) |
| [ArrayTypeMatchesArrays1BoxedList](#arraytypematchesarrays1boxedlist) | validateAndBox([List>](#arraytypematchesarrayslistbuilder) arg, SchemaConfiguration configuration) |
+| [ArrayTypeMatchesArrays1Boxed](#arraytypematchesarrays1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## ArrayTypeMatchesArraysListBuilder
public class ArrayTypeMatchesArraysListBuilder
builder for `List<@Nullable Object>`
@@ -129,7 +132,7 @@ A class to store validated List payloads
| static [ArrayTypeMatchesArraysList](#arraytypematchesarrayslist) | of([List extends @Nullable Object>](#arraytypematchesarrayslistbuilder) arg, SchemaConfiguration configuration) |
## ItemsBoxed
-public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedVoid](#itemsboxedvoid),
[ItemsBoxedBoolean](#itemsboxedboolean),
@@ -138,103 +141,109 @@ permits
[ItemsBoxedList](#itemsboxedlist),
[ItemsBoxedMap](#itemsboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ItemsBoxedVoid
-public static final class ItemsBoxedVoid
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedVoid
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ItemsBoxedBoolean
-public static final class ItemsBoxedBoolean
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedBoolean
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ItemsBoxedNumber
-public static final class ItemsBoxedNumber
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedNumber
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ItemsBoxedString
-public static final class ItemsBoxedString
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedString
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ItemsBoxedList
-public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedList
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ItemsBoxedMap
-public static final class ItemsBoxedMap
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedMap
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Items
public static class Items
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md
index 5b620b259bf..96a41c9abfc 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/BooleanTypeMatchesBooleans.md
@@ -4,38 +4,39 @@ public class BooleanTypeMatchesBooleans
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1Boxed](#booleantypematchesbooleans1boxed) abstract sealed validated payload class |
-| static class | [BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1BoxedBoolean](#booleantypematchesbooleans1boxedboolean) boxed class to store validated boolean payloads |
+| sealed interface | [BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1Boxed](#booleantypematchesbooleans1boxed) sealed interface for validated payloads |
+| record | [BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1BoxedBoolean](#booleantypematchesbooleans1boxedboolean) boxed class to store validated boolean payloads |
| static class | [BooleanTypeMatchesBooleans.BooleanTypeMatchesBooleans1](#booleantypematchesbooleans1) schema class |
## BooleanTypeMatchesBooleans1Boxed
-public static abstract sealed class BooleanTypeMatchesBooleans1Boxed
+public sealed interface BooleanTypeMatchesBooleans1Boxed
permits
[BooleanTypeMatchesBooleans1BoxedBoolean](#booleantypematchesbooleans1boxedboolean)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BooleanTypeMatchesBooleans1BoxedBoolean
-public static final class BooleanTypeMatchesBooleans1BoxedBoolean
-extends [BooleanTypeMatchesBooleans1Boxed](#booleantypematchesbooleans1boxed)
+public record BooleanTypeMatchesBooleans1BoxedBoolean
+implements [BooleanTypeMatchesBooleans1Boxed](#booleantypematchesbooleans1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BooleanTypeMatchesBooleans1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BooleanTypeMatchesBooleans1
public static class BooleanTypeMatchesBooleans1
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByInt.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByInt.md
index 377a402b485..a403f2e86af 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByInt.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByInt.md
@@ -4,23 +4,23 @@ public class ByInt
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [ByInt.ByInt1Boxed](#byint1boxed) abstract sealed validated payload class |
-| static class | [ByInt.ByInt1BoxedVoid](#byint1boxedvoid) boxed class to store validated null payloads |
-| static class | [ByInt.ByInt1BoxedBoolean](#byint1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [ByInt.ByInt1BoxedNumber](#byint1boxednumber) boxed class to store validated Number payloads |
-| static class | [ByInt.ByInt1BoxedString](#byint1boxedstring) boxed class to store validated String payloads |
-| static class | [ByInt.ByInt1BoxedList](#byint1boxedlist) boxed class to store validated List payloads |
-| static class | [ByInt.ByInt1BoxedMap](#byint1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ByInt.ByInt1Boxed](#byint1boxed) sealed interface for validated payloads |
+| record | [ByInt.ByInt1BoxedVoid](#byint1boxedvoid) boxed class to store validated null payloads |
+| record | [ByInt.ByInt1BoxedBoolean](#byint1boxedboolean) boxed class to store validated boolean payloads |
+| record | [ByInt.ByInt1BoxedNumber](#byint1boxednumber) boxed class to store validated Number payloads |
+| record | [ByInt.ByInt1BoxedString](#byint1boxedstring) boxed class to store validated String payloads |
+| record | [ByInt.ByInt1BoxedList](#byint1boxedlist) boxed class to store validated List payloads |
+| record | [ByInt.ByInt1BoxedMap](#byint1boxedmap) boxed class to store validated Map payloads |
| static class | [ByInt.ByInt1](#byint1) schema class |
## ByInt1Boxed
-public static abstract sealed class ByInt1Boxed
+public sealed interface ByInt1Boxed
permits
[ByInt1BoxedVoid](#byint1boxedvoid),
[ByInt1BoxedBoolean](#byint1boxedboolean),
@@ -29,103 +29,109 @@ permits
[ByInt1BoxedList](#byint1boxedlist),
[ByInt1BoxedMap](#byint1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ByInt1BoxedVoid
-public static final class ByInt1BoxedVoid
-extends [ByInt1Boxed](#byint1boxed)
+public record ByInt1BoxedVoid
+implements [ByInt1Boxed](#byint1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByInt1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByInt1BoxedBoolean
-public static final class ByInt1BoxedBoolean
-extends [ByInt1Boxed](#byint1boxed)
+public record ByInt1BoxedBoolean
+implements [ByInt1Boxed](#byint1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByInt1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByInt1BoxedNumber
-public static final class ByInt1BoxedNumber
-extends [ByInt1Boxed](#byint1boxed)
+public record ByInt1BoxedNumber
+implements [ByInt1Boxed](#byint1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByInt1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByInt1BoxedString
-public static final class ByInt1BoxedString
-extends [ByInt1Boxed](#byint1boxed)
+public record ByInt1BoxedString
+implements [ByInt1Boxed](#byint1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByInt1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByInt1BoxedList
-public static final class ByInt1BoxedList
-extends [ByInt1Boxed](#byint1boxed)
+public record ByInt1BoxedList
+implements [ByInt1Boxed](#byint1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByInt1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByInt1BoxedMap
-public static final class ByInt1BoxedMap
-extends [ByInt1Boxed](#byint1boxed)
+public record ByInt1BoxedMap
+implements [ByInt1Boxed](#byint1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByInt1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByInt1
public static class ByInt1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [ByInt1BoxedBoolean](#byint1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [ByInt1BoxedMap](#byint1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [ByInt1BoxedList](#byint1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [ByInt1Boxed](#byint1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByNumber.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByNumber.md
index 392dc99034c..18757b1d71f 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByNumber.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ByNumber.md
@@ -4,23 +4,23 @@ public class ByNumber
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [ByNumber.ByNumber1Boxed](#bynumber1boxed) abstract sealed validated payload class |
-| static class | [ByNumber.ByNumber1BoxedVoid](#bynumber1boxedvoid) boxed class to store validated null payloads |
-| static class | [ByNumber.ByNumber1BoxedBoolean](#bynumber1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [ByNumber.ByNumber1BoxedNumber](#bynumber1boxednumber) boxed class to store validated Number payloads |
-| static class | [ByNumber.ByNumber1BoxedString](#bynumber1boxedstring) boxed class to store validated String payloads |
-| static class | [ByNumber.ByNumber1BoxedList](#bynumber1boxedlist) boxed class to store validated List payloads |
-| static class | [ByNumber.ByNumber1BoxedMap](#bynumber1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ByNumber.ByNumber1Boxed](#bynumber1boxed) sealed interface for validated payloads |
+| record | [ByNumber.ByNumber1BoxedVoid](#bynumber1boxedvoid) boxed class to store validated null payloads |
+| record | [ByNumber.ByNumber1BoxedBoolean](#bynumber1boxedboolean) boxed class to store validated boolean payloads |
+| record | [ByNumber.ByNumber1BoxedNumber](#bynumber1boxednumber) boxed class to store validated Number payloads |
+| record | [ByNumber.ByNumber1BoxedString](#bynumber1boxedstring) boxed class to store validated String payloads |
+| record | [ByNumber.ByNumber1BoxedList](#bynumber1boxedlist) boxed class to store validated List payloads |
+| record | [ByNumber.ByNumber1BoxedMap](#bynumber1boxedmap) boxed class to store validated Map payloads |
| static class | [ByNumber.ByNumber1](#bynumber1) schema class |
## ByNumber1Boxed
-public static abstract sealed class ByNumber1Boxed
+public sealed interface ByNumber1Boxed
permits
[ByNumber1BoxedVoid](#bynumber1boxedvoid),
[ByNumber1BoxedBoolean](#bynumber1boxedboolean),
@@ -29,103 +29,109 @@ permits
[ByNumber1BoxedList](#bynumber1boxedlist),
[ByNumber1BoxedMap](#bynumber1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ByNumber1BoxedVoid
-public static final class ByNumber1BoxedVoid
-extends [ByNumber1Boxed](#bynumber1boxed)
+public record ByNumber1BoxedVoid
+implements [ByNumber1Boxed](#bynumber1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByNumber1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByNumber1BoxedBoolean
-public static final class ByNumber1BoxedBoolean
-extends [ByNumber1Boxed](#bynumber1boxed)
+public record ByNumber1BoxedBoolean
+implements [ByNumber1Boxed](#bynumber1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByNumber1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByNumber1BoxedNumber
-public static final class ByNumber1BoxedNumber
-extends [ByNumber1Boxed](#bynumber1boxed)
+public record ByNumber1BoxedNumber
+implements [ByNumber1Boxed](#bynumber1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByNumber1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByNumber1BoxedString
-public static final class ByNumber1BoxedString
-extends [ByNumber1Boxed](#bynumber1boxed)
+public record ByNumber1BoxedString
+implements [ByNumber1Boxed](#bynumber1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByNumber1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByNumber1BoxedList
-public static final class ByNumber1BoxedList
-extends [ByNumber1Boxed](#bynumber1boxed)
+public record ByNumber1BoxedList
+implements [ByNumber1Boxed](#bynumber1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByNumber1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByNumber1BoxedMap
-public static final class ByNumber1BoxedMap
-extends [ByNumber1Boxed](#bynumber1boxed)
+public record ByNumber1BoxedMap
+implements [ByNumber1Boxed](#bynumber1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ByNumber1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ByNumber1
public static class ByNumber1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [ByNumber1BoxedBoolean](#bynumber1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [ByNumber1BoxedMap](#bynumber1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [ByNumber1BoxedList](#bynumber1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [ByNumber1Boxed](#bynumber1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/BySmallNumber.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/BySmallNumber.md
index a611d905af7..db570d6827a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/BySmallNumber.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/BySmallNumber.md
@@ -4,23 +4,23 @@ public class BySmallNumber
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [BySmallNumber.BySmallNumber1Boxed](#bysmallnumber1boxed) abstract sealed validated payload class |
-| static class | [BySmallNumber.BySmallNumber1BoxedVoid](#bysmallnumber1boxedvoid) boxed class to store validated null payloads |
-| static class | [BySmallNumber.BySmallNumber1BoxedBoolean](#bysmallnumber1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [BySmallNumber.BySmallNumber1BoxedNumber](#bysmallnumber1boxednumber) boxed class to store validated Number payloads |
-| static class | [BySmallNumber.BySmallNumber1BoxedString](#bysmallnumber1boxedstring) boxed class to store validated String payloads |
-| static class | [BySmallNumber.BySmallNumber1BoxedList](#bysmallnumber1boxedlist) boxed class to store validated List payloads |
-| static class | [BySmallNumber.BySmallNumber1BoxedMap](#bysmallnumber1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [BySmallNumber.BySmallNumber1Boxed](#bysmallnumber1boxed) sealed interface for validated payloads |
+| record | [BySmallNumber.BySmallNumber1BoxedVoid](#bysmallnumber1boxedvoid) boxed class to store validated null payloads |
+| record | [BySmallNumber.BySmallNumber1BoxedBoolean](#bysmallnumber1boxedboolean) boxed class to store validated boolean payloads |
+| record | [BySmallNumber.BySmallNumber1BoxedNumber](#bysmallnumber1boxednumber) boxed class to store validated Number payloads |
+| record | [BySmallNumber.BySmallNumber1BoxedString](#bysmallnumber1boxedstring) boxed class to store validated String payloads |
+| record | [BySmallNumber.BySmallNumber1BoxedList](#bysmallnumber1boxedlist) boxed class to store validated List payloads |
+| record | [BySmallNumber.BySmallNumber1BoxedMap](#bysmallnumber1boxedmap) boxed class to store validated Map payloads |
| static class | [BySmallNumber.BySmallNumber1](#bysmallnumber1) schema class |
## BySmallNumber1Boxed
-public static abstract sealed class BySmallNumber1Boxed
+public sealed interface BySmallNumber1Boxed
permits
[BySmallNumber1BoxedVoid](#bysmallnumber1boxedvoid),
[BySmallNumber1BoxedBoolean](#bysmallnumber1boxedboolean),
@@ -29,103 +29,109 @@ permits
[BySmallNumber1BoxedList](#bysmallnumber1boxedlist),
[BySmallNumber1BoxedMap](#bysmallnumber1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BySmallNumber1BoxedVoid
-public static final class BySmallNumber1BoxedVoid
-extends [BySmallNumber1Boxed](#bysmallnumber1boxed)
+public record BySmallNumber1BoxedVoid
+implements [BySmallNumber1Boxed](#bysmallnumber1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BySmallNumber1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BySmallNumber1BoxedBoolean
-public static final class BySmallNumber1BoxedBoolean
-extends [BySmallNumber1Boxed](#bysmallnumber1boxed)
+public record BySmallNumber1BoxedBoolean
+implements [BySmallNumber1Boxed](#bysmallnumber1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BySmallNumber1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BySmallNumber1BoxedNumber
-public static final class BySmallNumber1BoxedNumber
-extends [BySmallNumber1Boxed](#bysmallnumber1boxed)
+public record BySmallNumber1BoxedNumber
+implements [BySmallNumber1Boxed](#bysmallnumber1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BySmallNumber1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BySmallNumber1BoxedString
-public static final class BySmallNumber1BoxedString
-extends [BySmallNumber1Boxed](#bysmallnumber1boxed)
+public record BySmallNumber1BoxedString
+implements [BySmallNumber1Boxed](#bysmallnumber1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BySmallNumber1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BySmallNumber1BoxedList
-public static final class BySmallNumber1BoxedList
-extends [BySmallNumber1Boxed](#bysmallnumber1boxed)
+public record BySmallNumber1BoxedList
+implements [BySmallNumber1Boxed](#bysmallnumber1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BySmallNumber1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BySmallNumber1BoxedMap
-public static final class BySmallNumber1BoxedMap
-extends [BySmallNumber1Boxed](#bysmallnumber1boxed)
+public record BySmallNumber1BoxedMap
+implements [BySmallNumber1Boxed](#bysmallnumber1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BySmallNumber1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BySmallNumber1
public static class BySmallNumber1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [BySmallNumber1BoxedBoolean](#bysmallnumber1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [BySmallNumber1BoxedMap](#bysmallnumber1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [BySmallNumber1BoxedList](#bysmallnumber1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [BySmallNumber1Boxed](#bysmallnumber1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/DateTimeFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/DateTimeFormat.md
index 43524236e9c..dc179875fd1 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/DateTimeFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/DateTimeFormat.md
@@ -4,23 +4,23 @@ public class DateTimeFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [DateTimeFormat.DateTimeFormat1Boxed](#datetimeformat1boxed) abstract sealed validated payload class |
-| static class | [DateTimeFormat.DateTimeFormat1BoxedVoid](#datetimeformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [DateTimeFormat.DateTimeFormat1BoxedBoolean](#datetimeformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [DateTimeFormat.DateTimeFormat1BoxedNumber](#datetimeformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [DateTimeFormat.DateTimeFormat1BoxedString](#datetimeformat1boxedstring) boxed class to store validated String payloads |
-| static class | [DateTimeFormat.DateTimeFormat1BoxedList](#datetimeformat1boxedlist) boxed class to store validated List payloads |
-| static class | [DateTimeFormat.DateTimeFormat1BoxedMap](#datetimeformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [DateTimeFormat.DateTimeFormat1Boxed](#datetimeformat1boxed) sealed interface for validated payloads |
+| record | [DateTimeFormat.DateTimeFormat1BoxedVoid](#datetimeformat1boxedvoid) boxed class to store validated null payloads |
+| record | [DateTimeFormat.DateTimeFormat1BoxedBoolean](#datetimeformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [DateTimeFormat.DateTimeFormat1BoxedNumber](#datetimeformat1boxednumber) boxed class to store validated Number payloads |
+| record | [DateTimeFormat.DateTimeFormat1BoxedString](#datetimeformat1boxedstring) boxed class to store validated String payloads |
+| record | [DateTimeFormat.DateTimeFormat1BoxedList](#datetimeformat1boxedlist) boxed class to store validated List payloads |
+| record | [DateTimeFormat.DateTimeFormat1BoxedMap](#datetimeformat1boxedmap) boxed class to store validated Map payloads |
| static class | [DateTimeFormat.DateTimeFormat1](#datetimeformat1) schema class |
## DateTimeFormat1Boxed
-public static abstract sealed class DateTimeFormat1Boxed
+public sealed interface DateTimeFormat1Boxed
permits
[DateTimeFormat1BoxedVoid](#datetimeformat1boxedvoid),
[DateTimeFormat1BoxedBoolean](#datetimeformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[DateTimeFormat1BoxedList](#datetimeformat1boxedlist),
[DateTimeFormat1BoxedMap](#datetimeformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## DateTimeFormat1BoxedVoid
-public static final class DateTimeFormat1BoxedVoid
-extends [DateTimeFormat1Boxed](#datetimeformat1boxed)
+public record DateTimeFormat1BoxedVoid
+implements [DateTimeFormat1Boxed](#datetimeformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| DateTimeFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## DateTimeFormat1BoxedBoolean
-public static final class DateTimeFormat1BoxedBoolean
-extends [DateTimeFormat1Boxed](#datetimeformat1boxed)
+public record DateTimeFormat1BoxedBoolean
+implements [DateTimeFormat1Boxed](#datetimeformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| DateTimeFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## DateTimeFormat1BoxedNumber
-public static final class DateTimeFormat1BoxedNumber
-extends [DateTimeFormat1Boxed](#datetimeformat1boxed)
+public record DateTimeFormat1BoxedNumber
+implements [DateTimeFormat1Boxed](#datetimeformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| DateTimeFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## DateTimeFormat1BoxedString
-public static final class DateTimeFormat1BoxedString
-extends [DateTimeFormat1Boxed](#datetimeformat1boxed)
+public record DateTimeFormat1BoxedString
+implements [DateTimeFormat1Boxed](#datetimeformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| DateTimeFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## DateTimeFormat1BoxedList
-public static final class DateTimeFormat1BoxedList
-extends [DateTimeFormat1Boxed](#datetimeformat1boxed)
+public record DateTimeFormat1BoxedList
+implements [DateTimeFormat1Boxed](#datetimeformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| DateTimeFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## DateTimeFormat1BoxedMap
-public static final class DateTimeFormat1BoxedMap
-extends [DateTimeFormat1Boxed](#datetimeformat1boxed)
+public record DateTimeFormat1BoxedMap
+implements [DateTimeFormat1Boxed](#datetimeformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| DateTimeFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## DateTimeFormat1
public static class DateTimeFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [DateTimeFormat1BoxedBoolean](#datetimeformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [DateTimeFormat1BoxedMap](#datetimeformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [DateTimeFormat1BoxedList](#datetimeformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [DateTimeFormat1Boxed](#datetimeformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EmailFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EmailFormat.md
index 46f78d993c6..b3448fb331a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EmailFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EmailFormat.md
@@ -4,23 +4,23 @@ public class EmailFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EmailFormat.EmailFormat1Boxed](#emailformat1boxed) abstract sealed validated payload class |
-| static class | [EmailFormat.EmailFormat1BoxedVoid](#emailformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [EmailFormat.EmailFormat1BoxedBoolean](#emailformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [EmailFormat.EmailFormat1BoxedNumber](#emailformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [EmailFormat.EmailFormat1BoxedString](#emailformat1boxedstring) boxed class to store validated String payloads |
-| static class | [EmailFormat.EmailFormat1BoxedList](#emailformat1boxedlist) boxed class to store validated List payloads |
-| static class | [EmailFormat.EmailFormat1BoxedMap](#emailformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [EmailFormat.EmailFormat1Boxed](#emailformat1boxed) sealed interface for validated payloads |
+| record | [EmailFormat.EmailFormat1BoxedVoid](#emailformat1boxedvoid) boxed class to store validated null payloads |
+| record | [EmailFormat.EmailFormat1BoxedBoolean](#emailformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [EmailFormat.EmailFormat1BoxedNumber](#emailformat1boxednumber) boxed class to store validated Number payloads |
+| record | [EmailFormat.EmailFormat1BoxedString](#emailformat1boxedstring) boxed class to store validated String payloads |
+| record | [EmailFormat.EmailFormat1BoxedList](#emailformat1boxedlist) boxed class to store validated List payloads |
+| record | [EmailFormat.EmailFormat1BoxedMap](#emailformat1boxedmap) boxed class to store validated Map payloads |
| static class | [EmailFormat.EmailFormat1](#emailformat1) schema class |
## EmailFormat1Boxed
-public static abstract sealed class EmailFormat1Boxed
+public sealed interface EmailFormat1Boxed
permits
[EmailFormat1BoxedVoid](#emailformat1boxedvoid),
[EmailFormat1BoxedBoolean](#emailformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[EmailFormat1BoxedList](#emailformat1boxedlist),
[EmailFormat1BoxedMap](#emailformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EmailFormat1BoxedVoid
-public static final class EmailFormat1BoxedVoid
-extends [EmailFormat1Boxed](#emailformat1boxed)
+public record EmailFormat1BoxedVoid
+implements [EmailFormat1Boxed](#emailformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EmailFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EmailFormat1BoxedBoolean
-public static final class EmailFormat1BoxedBoolean
-extends [EmailFormat1Boxed](#emailformat1boxed)
+public record EmailFormat1BoxedBoolean
+implements [EmailFormat1Boxed](#emailformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EmailFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EmailFormat1BoxedNumber
-public static final class EmailFormat1BoxedNumber
-extends [EmailFormat1Boxed](#emailformat1boxed)
+public record EmailFormat1BoxedNumber
+implements [EmailFormat1Boxed](#emailformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EmailFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EmailFormat1BoxedString
-public static final class EmailFormat1BoxedString
-extends [EmailFormat1Boxed](#emailformat1boxed)
+public record EmailFormat1BoxedString
+implements [EmailFormat1Boxed](#emailformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EmailFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EmailFormat1BoxedList
-public static final class EmailFormat1BoxedList
-extends [EmailFormat1Boxed](#emailformat1boxed)
+public record EmailFormat1BoxedList
+implements [EmailFormat1Boxed](#emailformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EmailFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EmailFormat1BoxedMap
-public static final class EmailFormat1BoxedMap
-extends [EmailFormat1Boxed](#emailformat1boxed)
+public record EmailFormat1BoxedMap
+implements [EmailFormat1Boxed](#emailformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EmailFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EmailFormat1
public static class EmailFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [EmailFormat1BoxedBoolean](#emailformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [EmailFormat1BoxedMap](#emailformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [EmailFormat1BoxedList](#emailformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [EmailFormat1Boxed](#emailformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/EnumWith0DoesNotMatchFalse.md
index 1ca98c55bac..e3082672184 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
@@ -4,15 +4,15 @@ public class EnumWith0DoesNotMatchFalse
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1Boxed](#enumwith0doesnotmatchfalse1boxed) abstract sealed validated payload class |
-| static class | [EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1BoxedNumber](#enumwith0doesnotmatchfalse1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1Boxed](#enumwith0doesnotmatchfalse1boxed) sealed interface for validated payloads |
+| record | [EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1BoxedNumber](#enumwith0doesnotmatchfalse1boxednumber) boxed class to store validated Number payloads |
| static class | [EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1](#enumwith0doesnotmatchfalse1) schema class |
| enum | [EnumWith0DoesNotMatchFalse.IntegerEnumWith0DoesNotMatchFalseEnums](#integerenumwith0doesnotmatchfalseenums) Integer enum |
| enum | [EnumWith0DoesNotMatchFalse.LongEnumWith0DoesNotMatchFalseEnums](#longenumwith0doesnotmatchfalseenums) Long enum |
@@ -20,27 +20,28 @@ A class that contains necessary nested
| enum | [EnumWith0DoesNotMatchFalse.DoubleEnumWith0DoesNotMatchFalseEnums](#doubleenumwith0doesnotmatchfalseenums) Double enum |
## EnumWith0DoesNotMatchFalse1Boxed
-public static abstract sealed class EnumWith0DoesNotMatchFalse1Boxed
+public sealed interface EnumWith0DoesNotMatchFalse1Boxed
permits
[EnumWith0DoesNotMatchFalse1BoxedNumber](#enumwith0doesnotmatchfalse1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EnumWith0DoesNotMatchFalse1BoxedNumber
-public static final class EnumWith0DoesNotMatchFalse1BoxedNumber
-extends [EnumWith0DoesNotMatchFalse1Boxed](#enumwith0doesnotmatchfalse1boxed)
+public record EnumWith0DoesNotMatchFalse1BoxedNumber
+implements [EnumWith0DoesNotMatchFalse1Boxed](#enumwith0doesnotmatchfalse1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EnumWith0DoesNotMatchFalse1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EnumWith0DoesNotMatchFalse1
public static class EnumWith0DoesNotMatchFalse1
@@ -81,7 +82,9 @@ int validatedPayload = EnumWith0DoesNotMatchFalse.EnumWith0DoesNotMatchFalse1.va
| ----------------- | ---------------------- |
| Number | validate(Number arg, SchemaConfiguration configuration) |
| [EnumWith0DoesNotMatchFalse1BoxedNumber](#enumwith0doesnotmatchfalse1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) |
+| [EnumWith0DoesNotMatchFalse1Boxed](#enumwith0doesnotmatchfalse1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## IntegerEnumWith0DoesNotMatchFalseEnums
public enum IntegerEnumWith0DoesNotMatchFalseEnums
extends `Enum`
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 a19cbe95ca5..f3a46b77a0f 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
@@ -4,15 +4,15 @@ public class EnumWith1DoesNotMatchTrue
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1Boxed](#enumwith1doesnotmatchtrue1boxed) abstract sealed validated payload class |
-| static class | [EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1BoxedNumber](#enumwith1doesnotmatchtrue1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1Boxed](#enumwith1doesnotmatchtrue1boxed) sealed interface for validated payloads |
+| record | [EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1BoxedNumber](#enumwith1doesnotmatchtrue1boxednumber) boxed class to store validated Number payloads |
| static class | [EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1](#enumwith1doesnotmatchtrue1) schema class |
| enum | [EnumWith1DoesNotMatchTrue.IntegerEnumWith1DoesNotMatchTrueEnums](#integerenumwith1doesnotmatchtrueenums) Integer enum |
| enum | [EnumWith1DoesNotMatchTrue.LongEnumWith1DoesNotMatchTrueEnums](#longenumwith1doesnotmatchtrueenums) Long enum |
@@ -20,27 +20,28 @@ A class that contains necessary nested
| enum | [EnumWith1DoesNotMatchTrue.DoubleEnumWith1DoesNotMatchTrueEnums](#doubleenumwith1doesnotmatchtrueenums) Double enum |
## EnumWith1DoesNotMatchTrue1Boxed
-public static abstract sealed class EnumWith1DoesNotMatchTrue1Boxed
+public sealed interface EnumWith1DoesNotMatchTrue1Boxed
permits
[EnumWith1DoesNotMatchTrue1BoxedNumber](#enumwith1doesnotmatchtrue1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EnumWith1DoesNotMatchTrue1BoxedNumber
-public static final class EnumWith1DoesNotMatchTrue1BoxedNumber
-extends [EnumWith1DoesNotMatchTrue1Boxed](#enumwith1doesnotmatchtrue1boxed)
+public record EnumWith1DoesNotMatchTrue1BoxedNumber
+implements [EnumWith1DoesNotMatchTrue1Boxed](#enumwith1doesnotmatchtrue1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EnumWith1DoesNotMatchTrue1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EnumWith1DoesNotMatchTrue1
public static class EnumWith1DoesNotMatchTrue1
@@ -81,7 +82,9 @@ int validatedPayload = EnumWith1DoesNotMatchTrue.EnumWith1DoesNotMatchTrue1.vali
| ----------------- | ---------------------- |
| Number | validate(Number arg, SchemaConfiguration configuration) |
| [EnumWith1DoesNotMatchTrue1BoxedNumber](#enumwith1doesnotmatchtrue1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) |
+| [EnumWith1DoesNotMatchTrue1Boxed](#enumwith1doesnotmatchtrue1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## IntegerEnumWith1DoesNotMatchTrueEnums
public enum IntegerEnumWith1DoesNotMatchTrueEnums
extends `Enum`
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 e526d2e529e..8c281b72e92 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
@@ -4,40 +4,41 @@ public class EnumWithEscapedCharacters
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EnumWithEscapedCharacters.EnumWithEscapedCharacters1Boxed](#enumwithescapedcharacters1boxed) abstract sealed validated payload class |
-| static class | [EnumWithEscapedCharacters.EnumWithEscapedCharacters1BoxedString](#enumwithescapedcharacters1boxedstring) boxed class to store validated String payloads |
+| sealed interface | [EnumWithEscapedCharacters.EnumWithEscapedCharacters1Boxed](#enumwithescapedcharacters1boxed) sealed interface for validated payloads |
+| record | [EnumWithEscapedCharacters.EnumWithEscapedCharacters1BoxedString](#enumwithescapedcharacters1boxedstring) boxed class to store validated String payloads |
| static class | [EnumWithEscapedCharacters.EnumWithEscapedCharacters1](#enumwithescapedcharacters1) schema class |
| enum | [EnumWithEscapedCharacters.StringEnumWithEscapedCharactersEnums](#stringenumwithescapedcharactersenums) String enum |
## EnumWithEscapedCharacters1Boxed
-public static abstract sealed class EnumWithEscapedCharacters1Boxed
+public sealed interface EnumWithEscapedCharacters1Boxed
permits
[EnumWithEscapedCharacters1BoxedString](#enumwithescapedcharacters1boxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EnumWithEscapedCharacters1BoxedString
-public static final class EnumWithEscapedCharacters1BoxedString
-extends [EnumWithEscapedCharacters1Boxed](#enumwithescapedcharacters1boxed)
+public record EnumWithEscapedCharacters1BoxedString
+implements [EnumWithEscapedCharacters1Boxed](#enumwithescapedcharacters1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EnumWithEscapedCharacters1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EnumWithEscapedCharacters1
public static class EnumWithEscapedCharacters1
@@ -79,7 +80,9 @@ String validatedPayload = EnumWithEscapedCharacters.EnumWithEscapedCharacters1.v
| String | validate(String arg, SchemaConfiguration configuration) |
| String | validate([StringEnumWithEscapedCharactersEnums](#stringenumwithescapedcharactersenums) arg, SchemaConfiguration configuration) |
| [EnumWithEscapedCharacters1BoxedString](#enumwithescapedcharacters1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [EnumWithEscapedCharacters1Boxed](#enumwithescapedcharacters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## StringEnumWithEscapedCharactersEnums
public enum StringEnumWithEscapedCharactersEnums
extends `Enum`
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 49ada19b41f..6e8b2582e42 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
@@ -4,40 +4,41 @@ public class EnumWithFalseDoesNotMatch0
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01Boxed](#enumwithfalsedoesnotmatch01boxed) abstract sealed validated payload class |
-| static class | [EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01BoxedBoolean](#enumwithfalsedoesnotmatch01boxedboolean) boxed class to store validated boolean payloads |
+| sealed interface | [EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01Boxed](#enumwithfalsedoesnotmatch01boxed) sealed interface for validated payloads |
+| record | [EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01BoxedBoolean](#enumwithfalsedoesnotmatch01boxedboolean) boxed class to store validated boolean payloads |
| static class | [EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch01](#enumwithfalsedoesnotmatch01) schema class |
| enum | [EnumWithFalseDoesNotMatch0.BooleanEnumWithFalseDoesNotMatch0Enums](#booleanenumwithfalsedoesnotmatch0enums) boolean enum |
## EnumWithFalseDoesNotMatch01Boxed
-public static abstract sealed class EnumWithFalseDoesNotMatch01Boxed
+public sealed interface EnumWithFalseDoesNotMatch01Boxed
permits
[EnumWithFalseDoesNotMatch01BoxedBoolean](#enumwithfalsedoesnotmatch01boxedboolean)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EnumWithFalseDoesNotMatch01BoxedBoolean
-public static final class EnumWithFalseDoesNotMatch01BoxedBoolean
-extends [EnumWithFalseDoesNotMatch01Boxed](#enumwithfalsedoesnotmatch01boxed)
+public record EnumWithFalseDoesNotMatch01BoxedBoolean
+implements [EnumWithFalseDoesNotMatch01Boxed](#enumwithfalsedoesnotmatch01boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EnumWithFalseDoesNotMatch01BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EnumWithFalseDoesNotMatch01
public static class EnumWithFalseDoesNotMatch01
@@ -79,7 +80,9 @@ boolean validatedPayload = EnumWithFalseDoesNotMatch0.EnumWithFalseDoesNotMatch0
| boolean | validate(boolean arg, SchemaConfiguration configuration) |
| boolean | validate([BooleanEnumWithFalseDoesNotMatch0Enums](#booleanenumwithfalsedoesnotmatch0enums) arg, SchemaConfiguration configuration) |
| [EnumWithFalseDoesNotMatch01BoxedBoolean](#enumwithfalsedoesnotmatch01boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
+| [EnumWithFalseDoesNotMatch01Boxed](#enumwithfalsedoesnotmatch01boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## BooleanEnumWithFalseDoesNotMatch0Enums
public enum BooleanEnumWithFalseDoesNotMatch0Enums
extends `Enum`
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 2a6d6f9c88d..5902c3f2697 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
@@ -4,40 +4,41 @@ public class EnumWithTrueDoesNotMatch1
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11Boxed](#enumwithtruedoesnotmatch11boxed) abstract sealed validated payload class |
-| static class | [EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11BoxedBoolean](#enumwithtruedoesnotmatch11boxedboolean) boxed class to store validated boolean payloads |
+| sealed interface | [EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11Boxed](#enumwithtruedoesnotmatch11boxed) sealed interface for validated payloads |
+| record | [EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11BoxedBoolean](#enumwithtruedoesnotmatch11boxedboolean) boxed class to store validated boolean payloads |
| static class | [EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11](#enumwithtruedoesnotmatch11) schema class |
| enum | [EnumWithTrueDoesNotMatch1.BooleanEnumWithTrueDoesNotMatch1Enums](#booleanenumwithtruedoesnotmatch1enums) boolean enum |
## EnumWithTrueDoesNotMatch11Boxed
-public static abstract sealed class EnumWithTrueDoesNotMatch11Boxed
+public sealed interface EnumWithTrueDoesNotMatch11Boxed
permits
[EnumWithTrueDoesNotMatch11BoxedBoolean](#enumwithtruedoesnotmatch11boxedboolean)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EnumWithTrueDoesNotMatch11BoxedBoolean
-public static final class EnumWithTrueDoesNotMatch11BoxedBoolean
-extends [EnumWithTrueDoesNotMatch11Boxed](#enumwithtruedoesnotmatch11boxed)
+public record EnumWithTrueDoesNotMatch11BoxedBoolean
+implements [EnumWithTrueDoesNotMatch11Boxed](#enumwithtruedoesnotmatch11boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EnumWithTrueDoesNotMatch11BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EnumWithTrueDoesNotMatch11
public static class EnumWithTrueDoesNotMatch11
@@ -79,7 +80,9 @@ boolean validatedPayload = EnumWithTrueDoesNotMatch1.EnumWithTrueDoesNotMatch11.
| boolean | validate(boolean arg, SchemaConfiguration configuration) |
| boolean | validate([BooleanEnumWithTrueDoesNotMatch1Enums](#booleanenumwithtruedoesnotmatch1enums) arg, SchemaConfiguration configuration) |
| [EnumWithTrueDoesNotMatch11BoxedBoolean](#enumwithtruedoesnotmatch11boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
+| [EnumWithTrueDoesNotMatch11Boxed](#enumwithtruedoesnotmatch11boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## BooleanEnumWithTrueDoesNotMatch1Enums
public enum BooleanEnumWithTrueDoesNotMatch1Enums
extends `Enum`
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 6b1dbcf30dd..a518254b410 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
@@ -4,7 +4,7 @@ public class EnumsInProperties
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -13,42 +13,43 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [EnumsInProperties.EnumsInProperties1Boxed](#enumsinproperties1boxed) abstract sealed validated payload class |
-| static class | [EnumsInProperties.EnumsInProperties1BoxedMap](#enumsinproperties1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [EnumsInProperties.EnumsInProperties1Boxed](#enumsinproperties1boxed) sealed interface for validated payloads |
+| record | [EnumsInProperties.EnumsInProperties1BoxedMap](#enumsinproperties1boxedmap) boxed class to store validated Map payloads |
| static class | [EnumsInProperties.EnumsInProperties1](#enumsinproperties1) schema class |
| static class | [EnumsInProperties.EnumsInPropertiesMapBuilder](#enumsinpropertiesmapbuilder) builder for Map payloads |
| static class | [EnumsInProperties.EnumsInPropertiesMap](#enumsinpropertiesmap) output class for Map payloads |
-| static class | [EnumsInProperties.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [EnumsInProperties.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
+| sealed interface | [EnumsInProperties.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [EnumsInProperties.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
| static class | [EnumsInProperties.Bar](#bar) schema class |
| enum | [EnumsInProperties.StringBarEnums](#stringbarenums) String enum |
-| static class | [EnumsInProperties.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [EnumsInProperties.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| sealed interface | [EnumsInProperties.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [EnumsInProperties.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
| static class | [EnumsInProperties.Foo](#foo) schema class |
| enum | [EnumsInProperties.StringFooEnums](#stringfooenums) String enum |
## EnumsInProperties1Boxed
-public static abstract sealed class EnumsInProperties1Boxed
+public sealed interface EnumsInProperties1Boxed
permits
[EnumsInProperties1BoxedMap](#enumsinproperties1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## EnumsInProperties1BoxedMap
-public static final class EnumsInProperties1BoxedMap
-extends [EnumsInProperties1Boxed](#enumsinproperties1boxed)
+public record EnumsInProperties1BoxedMap
+implements [EnumsInProperties1Boxed](#enumsinproperties1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| EnumsInProperties1BoxedMap([EnumsInPropertiesMap](#enumsinpropertiesmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [EnumsInPropertiesMap](#enumsinpropertiesmap) | data validated payload |
+| [EnumsInPropertiesMap](#enumsinpropertiesmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## EnumsInProperties1
public static class EnumsInProperties1
@@ -96,7 +97,9 @@ EnumsInProperties.EnumsInPropertiesMap validatedPayload =
| ----------------- | ---------------------- |
| [EnumsInPropertiesMap](#enumsinpropertiesmap) | validate([Map<?, ?>](#enumsinpropertiesmapbuilder) arg, SchemaConfiguration configuration) |
| [EnumsInProperties1BoxedMap](#enumsinproperties1boxedmap) | validateAndBox([Map<?, ?>](#enumsinpropertiesmapbuilder) arg, SchemaConfiguration configuration) |
+| [EnumsInProperties1Boxed](#enumsinproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## EnumsInPropertiesMap0Builder
public class EnumsInPropertiesMap0Builder
builder for `Map`
@@ -156,27 +159,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedString](#barboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedString
-public static final class BarBoxedString
-extends [BarBoxed](#barboxed)
+public record BarBoxedString
+implements [BarBoxed](#barboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -218,7 +222,9 @@ String validatedPayload = EnumsInProperties.Bar.validate(
| String | validate(String arg, SchemaConfiguration configuration) |
| String | validate([StringBarEnums](#stringbarenums) arg, SchemaConfiguration configuration) |
| [BarBoxedString](#barboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [BarBoxed](#barboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## StringBarEnums
public enum StringBarEnums
extends `Enum`
@@ -231,27 +237,28 @@ A class that stores String enum values
| BAR | value = "bar" |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedString](#fooboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
@@ -293,7 +300,9 @@ String validatedPayload = EnumsInProperties.Foo.validate(
| String | validate(String arg, SchemaConfiguration configuration) |
| String | validate([StringFooEnums](#stringfooenums) arg, SchemaConfiguration configuration) |
| [FooBoxedString](#fooboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [FooBoxed](#fooboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## StringFooEnums
public enum StringFooEnums
extends `Enum`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md
index a2519145771..7a43a5fd737 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ForbiddenProperty.md
@@ -4,7 +4,7 @@ public class ForbiddenProperty
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,27 +12,27 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [ForbiddenProperty.ForbiddenProperty1Boxed](#forbiddenproperty1boxed) abstract sealed validated payload class |
-| static class | [ForbiddenProperty.ForbiddenProperty1BoxedVoid](#forbiddenproperty1boxedvoid) boxed class to store validated null payloads |
-| static class | [ForbiddenProperty.ForbiddenProperty1BoxedBoolean](#forbiddenproperty1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [ForbiddenProperty.ForbiddenProperty1BoxedNumber](#forbiddenproperty1boxednumber) boxed class to store validated Number payloads |
-| static class | [ForbiddenProperty.ForbiddenProperty1BoxedString](#forbiddenproperty1boxedstring) boxed class to store validated String payloads |
-| static class | [ForbiddenProperty.ForbiddenProperty1BoxedList](#forbiddenproperty1boxedlist) boxed class to store validated List payloads |
-| static class | [ForbiddenProperty.ForbiddenProperty1BoxedMap](#forbiddenproperty1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ForbiddenProperty.ForbiddenProperty1Boxed](#forbiddenproperty1boxed) sealed interface for validated payloads |
+| record | [ForbiddenProperty.ForbiddenProperty1BoxedVoid](#forbiddenproperty1boxedvoid) boxed class to store validated null payloads |
+| record | [ForbiddenProperty.ForbiddenProperty1BoxedBoolean](#forbiddenproperty1boxedboolean) boxed class to store validated boolean payloads |
+| record | [ForbiddenProperty.ForbiddenProperty1BoxedNumber](#forbiddenproperty1boxednumber) boxed class to store validated Number payloads |
+| record | [ForbiddenProperty.ForbiddenProperty1BoxedString](#forbiddenproperty1boxedstring) boxed class to store validated String payloads |
+| record | [ForbiddenProperty.ForbiddenProperty1BoxedList](#forbiddenproperty1boxedlist) boxed class to store validated List payloads |
+| record | [ForbiddenProperty.ForbiddenProperty1BoxedMap](#forbiddenproperty1boxedmap) boxed class to store validated Map payloads |
| static class | [ForbiddenProperty.ForbiddenProperty1](#forbiddenproperty1) schema class |
| static class | [ForbiddenProperty.ForbiddenPropertyMapBuilder](#forbiddenpropertymapbuilder) builder for Map payloads |
| static class | [ForbiddenProperty.ForbiddenPropertyMap](#forbiddenpropertymap) output class for Map payloads |
-| static class | [ForbiddenProperty.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [ForbiddenProperty.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [ForbiddenProperty.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [ForbiddenProperty.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [ForbiddenProperty.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [ForbiddenProperty.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [ForbiddenProperty.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ForbiddenProperty.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [ForbiddenProperty.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [ForbiddenProperty.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [ForbiddenProperty.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [ForbiddenProperty.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [ForbiddenProperty.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [ForbiddenProperty.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [ForbiddenProperty.Foo](#foo) schema class |
## ForbiddenProperty1Boxed
-public static abstract sealed class ForbiddenProperty1Boxed
+public sealed interface ForbiddenProperty1Boxed
permits
[ForbiddenProperty1BoxedVoid](#forbiddenproperty1boxedvoid),
[ForbiddenProperty1BoxedBoolean](#forbiddenproperty1boxedboolean),
@@ -41,103 +41,109 @@ permits
[ForbiddenProperty1BoxedList](#forbiddenproperty1boxedlist),
[ForbiddenProperty1BoxedMap](#forbiddenproperty1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ForbiddenProperty1BoxedVoid
-public static final class ForbiddenProperty1BoxedVoid
-extends [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
+public record ForbiddenProperty1BoxedVoid
+implements [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ForbiddenProperty1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ForbiddenProperty1BoxedBoolean
-public static final class ForbiddenProperty1BoxedBoolean
-extends [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
+public record ForbiddenProperty1BoxedBoolean
+implements [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ForbiddenProperty1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ForbiddenProperty1BoxedNumber
-public static final class ForbiddenProperty1BoxedNumber
-extends [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
+public record ForbiddenProperty1BoxedNumber
+implements [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ForbiddenProperty1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ForbiddenProperty1BoxedString
-public static final class ForbiddenProperty1BoxedString
-extends [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
+public record ForbiddenProperty1BoxedString
+implements [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ForbiddenProperty1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ForbiddenProperty1BoxedList
-public static final class ForbiddenProperty1BoxedList
-extends [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
+public record ForbiddenProperty1BoxedList
+implements [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ForbiddenProperty1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ForbiddenProperty1BoxedMap
-public static final class ForbiddenProperty1BoxedMap
-extends [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
+public record ForbiddenProperty1BoxedMap
+implements [ForbiddenProperty1Boxed](#forbiddenproperty1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ForbiddenProperty1BoxedMap([ForbiddenPropertyMap](#forbiddenpropertymap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [ForbiddenPropertyMap](#forbiddenpropertymap) | data validated payload |
+| [ForbiddenPropertyMap](#forbiddenpropertymap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ForbiddenProperty1
public static class ForbiddenProperty1
@@ -169,7 +175,9 @@ A schema class that validates payloads
| [ForbiddenProperty1BoxedBoolean](#forbiddenproperty1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [ForbiddenProperty1BoxedMap](#forbiddenproperty1boxedmap) | validateAndBox([Map<?, ?>](#forbiddenpropertymapbuilder) arg, SchemaConfiguration configuration) |
| [ForbiddenProperty1BoxedList](#forbiddenproperty1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [ForbiddenProperty1Boxed](#forbiddenproperty1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## ForbiddenPropertyMapBuilder
public class ForbiddenPropertyMapBuilder
builder for `Map`
@@ -218,7 +226,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -227,103 +235,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/HostnameFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/HostnameFormat.md
index 8630d7ab683..085ff0c08a1 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/HostnameFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/HostnameFormat.md
@@ -4,23 +4,23 @@ public class HostnameFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [HostnameFormat.HostnameFormat1Boxed](#hostnameformat1boxed) abstract sealed validated payload class |
-| static class | [HostnameFormat.HostnameFormat1BoxedVoid](#hostnameformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [HostnameFormat.HostnameFormat1BoxedBoolean](#hostnameformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [HostnameFormat.HostnameFormat1BoxedNumber](#hostnameformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [HostnameFormat.HostnameFormat1BoxedString](#hostnameformat1boxedstring) boxed class to store validated String payloads |
-| static class | [HostnameFormat.HostnameFormat1BoxedList](#hostnameformat1boxedlist) boxed class to store validated List payloads |
-| static class | [HostnameFormat.HostnameFormat1BoxedMap](#hostnameformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [HostnameFormat.HostnameFormat1Boxed](#hostnameformat1boxed) sealed interface for validated payloads |
+| record | [HostnameFormat.HostnameFormat1BoxedVoid](#hostnameformat1boxedvoid) boxed class to store validated null payloads |
+| record | [HostnameFormat.HostnameFormat1BoxedBoolean](#hostnameformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [HostnameFormat.HostnameFormat1BoxedNumber](#hostnameformat1boxednumber) boxed class to store validated Number payloads |
+| record | [HostnameFormat.HostnameFormat1BoxedString](#hostnameformat1boxedstring) boxed class to store validated String payloads |
+| record | [HostnameFormat.HostnameFormat1BoxedList](#hostnameformat1boxedlist) boxed class to store validated List payloads |
+| record | [HostnameFormat.HostnameFormat1BoxedMap](#hostnameformat1boxedmap) boxed class to store validated Map payloads |
| static class | [HostnameFormat.HostnameFormat1](#hostnameformat1) schema class |
## HostnameFormat1Boxed
-public static abstract sealed class HostnameFormat1Boxed
+public sealed interface HostnameFormat1Boxed
permits
[HostnameFormat1BoxedVoid](#hostnameformat1boxedvoid),
[HostnameFormat1BoxedBoolean](#hostnameformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[HostnameFormat1BoxedList](#hostnameformat1boxedlist),
[HostnameFormat1BoxedMap](#hostnameformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## HostnameFormat1BoxedVoid
-public static final class HostnameFormat1BoxedVoid
-extends [HostnameFormat1Boxed](#hostnameformat1boxed)
+public record HostnameFormat1BoxedVoid
+implements [HostnameFormat1Boxed](#hostnameformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| HostnameFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## HostnameFormat1BoxedBoolean
-public static final class HostnameFormat1BoxedBoolean
-extends [HostnameFormat1Boxed](#hostnameformat1boxed)
+public record HostnameFormat1BoxedBoolean
+implements [HostnameFormat1Boxed](#hostnameformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| HostnameFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## HostnameFormat1BoxedNumber
-public static final class HostnameFormat1BoxedNumber
-extends [HostnameFormat1Boxed](#hostnameformat1boxed)
+public record HostnameFormat1BoxedNumber
+implements [HostnameFormat1Boxed](#hostnameformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| HostnameFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## HostnameFormat1BoxedString
-public static final class HostnameFormat1BoxedString
-extends [HostnameFormat1Boxed](#hostnameformat1boxed)
+public record HostnameFormat1BoxedString
+implements [HostnameFormat1Boxed](#hostnameformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| HostnameFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## HostnameFormat1BoxedList
-public static final class HostnameFormat1BoxedList
-extends [HostnameFormat1Boxed](#hostnameformat1boxed)
+public record HostnameFormat1BoxedList
+implements [HostnameFormat1Boxed](#hostnameformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| HostnameFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## HostnameFormat1BoxedMap
-public static final class HostnameFormat1BoxedMap
-extends [HostnameFormat1Boxed](#hostnameformat1boxed)
+public record HostnameFormat1BoxedMap
+implements [HostnameFormat1Boxed](#hostnameformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| HostnameFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## HostnameFormat1
public static class HostnameFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [HostnameFormat1BoxedBoolean](#hostnameformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [HostnameFormat1BoxedMap](#hostnameformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [HostnameFormat1BoxedList](#hostnameformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [HostnameFormat1Boxed](#hostnameformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md
index bcd9231a5c0..1e84368f22a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/IntegerTypeMatchesIntegers.md
@@ -4,38 +4,39 @@ public class IntegerTypeMatchesIntegers
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [IntegerTypeMatchesIntegers.IntegerTypeMatchesIntegers1Boxed](#integertypematchesintegers1boxed) abstract sealed validated payload class |
-| static class | [IntegerTypeMatchesIntegers.IntegerTypeMatchesIntegers1BoxedNumber](#integertypematchesintegers1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [IntegerTypeMatchesIntegers.IntegerTypeMatchesIntegers1Boxed](#integertypematchesintegers1boxed) sealed interface for validated payloads |
+| record | [IntegerTypeMatchesIntegers.IntegerTypeMatchesIntegers1BoxedNumber](#integertypematchesintegers1boxednumber) boxed class to store validated Number payloads |
| static class | [IntegerTypeMatchesIntegers.IntegerTypeMatchesIntegers1](#integertypematchesintegers1) schema class |
## IntegerTypeMatchesIntegers1Boxed
-public static abstract sealed class IntegerTypeMatchesIntegers1Boxed
+public sealed interface IntegerTypeMatchesIntegers1Boxed
permits
[IntegerTypeMatchesIntegers1BoxedNumber](#integertypematchesintegers1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## IntegerTypeMatchesIntegers1BoxedNumber
-public static final class IntegerTypeMatchesIntegers1BoxedNumber
-extends [IntegerTypeMatchesIntegers1Boxed](#integertypematchesintegers1boxed)
+public record IntegerTypeMatchesIntegers1BoxedNumber
+implements [IntegerTypeMatchesIntegers1Boxed](#integertypematchesintegers1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| IntegerTypeMatchesIntegers1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## IntegerTypeMatchesIntegers1
public static class IntegerTypeMatchesIntegers1
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 b8fa0b1813d..5a77e718b4d 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
@@ -4,38 +4,39 @@ public class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxed) abstract sealed validated payload class |
-| static class | [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxed) sealed interface for validated payloads |
+| record | [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxednumber) boxed class to store validated Number payloads |
| static class | [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1) schema class |
## InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed
-public static abstract sealed class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed
+public sealed interface InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed
permits
[InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber
-public static final class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber
-extends [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxed)
+public record InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber
+implements [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1
public static class InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1
@@ -77,5 +78,7 @@ int validatedPayload = InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf.In
| ----------------- | ---------------------- |
| long | validate(long arg, SchemaConfiguration configuration) |
| [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1BoxedNumber](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) |
+| [InvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInf1Boxed](#invalidinstanceshouldnotraiseerrorwhenfloatdivisioninf1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidStringValueForDefault.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/InvalidStringValueForDefault.md
index d5fa26edd0f..5cd8f51bb0a 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
@@ -4,7 +4,7 @@ public class InvalidStringValueForDefault
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,22 +12,22 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed) abstract sealed validated payload class |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedVoid](#invalidstringvaluefordefault1boxedvoid) boxed class to store validated null payloads |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedBoolean](#invalidstringvaluefordefault1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedNumber](#invalidstringvaluefordefault1boxednumber) boxed class to store validated Number payloads |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedString](#invalidstringvaluefordefault1boxedstring) boxed class to store validated String payloads |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedList](#invalidstringvaluefordefault1boxedlist) boxed class to store validated List payloads |
-| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedMap](#invalidstringvaluefordefault1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [InvalidStringValueForDefault.InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed) sealed interface for validated payloads |
+| record | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedVoid](#invalidstringvaluefordefault1boxedvoid) boxed class to store validated null payloads |
+| record | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedBoolean](#invalidstringvaluefordefault1boxedboolean) boxed class to store validated boolean payloads |
+| record | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedNumber](#invalidstringvaluefordefault1boxednumber) boxed class to store validated Number payloads |
+| record | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedString](#invalidstringvaluefordefault1boxedstring) boxed class to store validated String payloads |
+| record | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedList](#invalidstringvaluefordefault1boxedlist) boxed class to store validated List payloads |
+| record | [InvalidStringValueForDefault.InvalidStringValueForDefault1BoxedMap](#invalidstringvaluefordefault1boxedmap) boxed class to store validated Map payloads |
| static class | [InvalidStringValueForDefault.InvalidStringValueForDefault1](#invalidstringvaluefordefault1) schema class |
| static class | [InvalidStringValueForDefault.InvalidStringValueForDefaultMapBuilder](#invalidstringvaluefordefaultmapbuilder) builder for Map payloads |
| static class | [InvalidStringValueForDefault.InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) output class for Map payloads |
-| static class | [InvalidStringValueForDefault.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [InvalidStringValueForDefault.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
+| sealed interface | [InvalidStringValueForDefault.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [InvalidStringValueForDefault.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
| static class | [InvalidStringValueForDefault.Bar](#bar) schema class |
## InvalidStringValueForDefault1Boxed
-public static abstract sealed class InvalidStringValueForDefault1Boxed
+public sealed interface InvalidStringValueForDefault1Boxed
permits
[InvalidStringValueForDefault1BoxedVoid](#invalidstringvaluefordefault1boxedvoid),
[InvalidStringValueForDefault1BoxedBoolean](#invalidstringvaluefordefault1boxedboolean),
@@ -36,103 +36,109 @@ permits
[InvalidStringValueForDefault1BoxedList](#invalidstringvaluefordefault1boxedlist),
[InvalidStringValueForDefault1BoxedMap](#invalidstringvaluefordefault1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## InvalidStringValueForDefault1BoxedVoid
-public static final class InvalidStringValueForDefault1BoxedVoid
-extends [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
+public record InvalidStringValueForDefault1BoxedVoid
+implements [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidStringValueForDefault1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidStringValueForDefault1BoxedBoolean
-public static final class InvalidStringValueForDefault1BoxedBoolean
-extends [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
+public record InvalidStringValueForDefault1BoxedBoolean
+implements [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidStringValueForDefault1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidStringValueForDefault1BoxedNumber
-public static final class InvalidStringValueForDefault1BoxedNumber
-extends [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
+public record InvalidStringValueForDefault1BoxedNumber
+implements [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidStringValueForDefault1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidStringValueForDefault1BoxedString
-public static final class InvalidStringValueForDefault1BoxedString
-extends [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
+public record InvalidStringValueForDefault1BoxedString
+implements [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidStringValueForDefault1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidStringValueForDefault1BoxedList
-public static final class InvalidStringValueForDefault1BoxedList
-extends [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
+public record InvalidStringValueForDefault1BoxedList
+implements [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidStringValueForDefault1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidStringValueForDefault1BoxedMap
-public static final class InvalidStringValueForDefault1BoxedMap
-extends [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
+public record InvalidStringValueForDefault1BoxedMap
+implements [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| InvalidStringValueForDefault1BoxedMap([InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) | data validated payload |
+| [InvalidStringValueForDefaultMap](#invalidstringvaluefordefaultmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## InvalidStringValueForDefault1
public static class InvalidStringValueForDefault1
@@ -164,7 +170,9 @@ A schema class that validates payloads
| [InvalidStringValueForDefault1BoxedBoolean](#invalidstringvaluefordefault1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [InvalidStringValueForDefault1BoxedMap](#invalidstringvaluefordefault1boxedmap) | validateAndBox([Map<?, ?>](#invalidstringvaluefordefaultmapbuilder) arg, SchemaConfiguration configuration) |
| [InvalidStringValueForDefault1BoxedList](#invalidstringvaluefordefault1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [InvalidStringValueForDefault1Boxed](#invalidstringvaluefordefault1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## InvalidStringValueForDefaultMapBuilder
public class InvalidStringValueForDefaultMapBuilder
builder for `Map`
@@ -205,27 +213,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedString](#barboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedString
-public static final class BarBoxedString
-extends [BarBoxed](#barboxed)
+public record BarBoxedString
+implements [BarBoxed](#barboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -267,5 +276,7 @@ String validatedPayload = InvalidStringValueForDefault.Bar.validate(
| ----------------- | ---------------------- |
| String | validate(String arg, SchemaConfiguration configuration) |
| [BarBoxedString](#barboxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [BarBoxed](#barboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv4Format.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv4Format.md
index 5ee841749a5..fc4821b8b70 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv4Format.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv4Format.md
@@ -4,23 +4,23 @@ public class Ipv4Format
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Ipv4Format.Ipv4Format1Boxed](#ipv4format1boxed) abstract sealed validated payload class |
-| static class | [Ipv4Format.Ipv4Format1BoxedVoid](#ipv4format1boxedvoid) boxed class to store validated null payloads |
-| static class | [Ipv4Format.Ipv4Format1BoxedBoolean](#ipv4format1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Ipv4Format.Ipv4Format1BoxedNumber](#ipv4format1boxednumber) boxed class to store validated Number payloads |
-| static class | [Ipv4Format.Ipv4Format1BoxedString](#ipv4format1boxedstring) boxed class to store validated String payloads |
-| static class | [Ipv4Format.Ipv4Format1BoxedList](#ipv4format1boxedlist) boxed class to store validated List payloads |
-| static class | [Ipv4Format.Ipv4Format1BoxedMap](#ipv4format1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Ipv4Format.Ipv4Format1Boxed](#ipv4format1boxed) sealed interface for validated payloads |
+| record | [Ipv4Format.Ipv4Format1BoxedVoid](#ipv4format1boxedvoid) boxed class to store validated null payloads |
+| record | [Ipv4Format.Ipv4Format1BoxedBoolean](#ipv4format1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Ipv4Format.Ipv4Format1BoxedNumber](#ipv4format1boxednumber) boxed class to store validated Number payloads |
+| record | [Ipv4Format.Ipv4Format1BoxedString](#ipv4format1boxedstring) boxed class to store validated String payloads |
+| record | [Ipv4Format.Ipv4Format1BoxedList](#ipv4format1boxedlist) boxed class to store validated List payloads |
+| record | [Ipv4Format.Ipv4Format1BoxedMap](#ipv4format1boxedmap) boxed class to store validated Map payloads |
| static class | [Ipv4Format.Ipv4Format1](#ipv4format1) schema class |
## Ipv4Format1Boxed
-public static abstract sealed class Ipv4Format1Boxed
+public sealed interface Ipv4Format1Boxed
permits
[Ipv4Format1BoxedVoid](#ipv4format1boxedvoid),
[Ipv4Format1BoxedBoolean](#ipv4format1boxedboolean),
@@ -29,103 +29,109 @@ permits
[Ipv4Format1BoxedList](#ipv4format1boxedlist),
[Ipv4Format1BoxedMap](#ipv4format1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Ipv4Format1BoxedVoid
-public static final class Ipv4Format1BoxedVoid
-extends [Ipv4Format1Boxed](#ipv4format1boxed)
+public record Ipv4Format1BoxedVoid
+implements [Ipv4Format1Boxed](#ipv4format1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv4Format1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv4Format1BoxedBoolean
-public static final class Ipv4Format1BoxedBoolean
-extends [Ipv4Format1Boxed](#ipv4format1boxed)
+public record Ipv4Format1BoxedBoolean
+implements [Ipv4Format1Boxed](#ipv4format1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv4Format1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv4Format1BoxedNumber
-public static final class Ipv4Format1BoxedNumber
-extends [Ipv4Format1Boxed](#ipv4format1boxed)
+public record Ipv4Format1BoxedNumber
+implements [Ipv4Format1Boxed](#ipv4format1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv4Format1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv4Format1BoxedString
-public static final class Ipv4Format1BoxedString
-extends [Ipv4Format1Boxed](#ipv4format1boxed)
+public record Ipv4Format1BoxedString
+implements [Ipv4Format1Boxed](#ipv4format1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv4Format1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv4Format1BoxedList
-public static final class Ipv4Format1BoxedList
-extends [Ipv4Format1Boxed](#ipv4format1boxed)
+public record Ipv4Format1BoxedList
+implements [Ipv4Format1Boxed](#ipv4format1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv4Format1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv4Format1BoxedMap
-public static final class Ipv4Format1BoxedMap
-extends [Ipv4Format1Boxed](#ipv4format1boxed)
+public record Ipv4Format1BoxedMap
+implements [Ipv4Format1Boxed](#ipv4format1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv4Format1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv4Format1
public static class Ipv4Format1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [Ipv4Format1BoxedBoolean](#ipv4format1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Ipv4Format1BoxedMap](#ipv4format1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Ipv4Format1BoxedList](#ipv4format1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Ipv4Format1Boxed](#ipv4format1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv6Format.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv6Format.md
index e6d1b20816b..b7e6fa306b8 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv6Format.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Ipv6Format.md
@@ -4,23 +4,23 @@ public class Ipv6Format
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Ipv6Format.Ipv6Format1Boxed](#ipv6format1boxed) abstract sealed validated payload class |
-| static class | [Ipv6Format.Ipv6Format1BoxedVoid](#ipv6format1boxedvoid) boxed class to store validated null payloads |
-| static class | [Ipv6Format.Ipv6Format1BoxedBoolean](#ipv6format1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Ipv6Format.Ipv6Format1BoxedNumber](#ipv6format1boxednumber) boxed class to store validated Number payloads |
-| static class | [Ipv6Format.Ipv6Format1BoxedString](#ipv6format1boxedstring) boxed class to store validated String payloads |
-| static class | [Ipv6Format.Ipv6Format1BoxedList](#ipv6format1boxedlist) boxed class to store validated List payloads |
-| static class | [Ipv6Format.Ipv6Format1BoxedMap](#ipv6format1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Ipv6Format.Ipv6Format1Boxed](#ipv6format1boxed) sealed interface for validated payloads |
+| record | [Ipv6Format.Ipv6Format1BoxedVoid](#ipv6format1boxedvoid) boxed class to store validated null payloads |
+| record | [Ipv6Format.Ipv6Format1BoxedBoolean](#ipv6format1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Ipv6Format.Ipv6Format1BoxedNumber](#ipv6format1boxednumber) boxed class to store validated Number payloads |
+| record | [Ipv6Format.Ipv6Format1BoxedString](#ipv6format1boxedstring) boxed class to store validated String payloads |
+| record | [Ipv6Format.Ipv6Format1BoxedList](#ipv6format1boxedlist) boxed class to store validated List payloads |
+| record | [Ipv6Format.Ipv6Format1BoxedMap](#ipv6format1boxedmap) boxed class to store validated Map payloads |
| static class | [Ipv6Format.Ipv6Format1](#ipv6format1) schema class |
## Ipv6Format1Boxed
-public static abstract sealed class Ipv6Format1Boxed
+public sealed interface Ipv6Format1Boxed
permits
[Ipv6Format1BoxedVoid](#ipv6format1boxedvoid),
[Ipv6Format1BoxedBoolean](#ipv6format1boxedboolean),
@@ -29,103 +29,109 @@ permits
[Ipv6Format1BoxedList](#ipv6format1boxedlist),
[Ipv6Format1BoxedMap](#ipv6format1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Ipv6Format1BoxedVoid
-public static final class Ipv6Format1BoxedVoid
-extends [Ipv6Format1Boxed](#ipv6format1boxed)
+public record Ipv6Format1BoxedVoid
+implements [Ipv6Format1Boxed](#ipv6format1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv6Format1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv6Format1BoxedBoolean
-public static final class Ipv6Format1BoxedBoolean
-extends [Ipv6Format1Boxed](#ipv6format1boxed)
+public record Ipv6Format1BoxedBoolean
+implements [Ipv6Format1Boxed](#ipv6format1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv6Format1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv6Format1BoxedNumber
-public static final class Ipv6Format1BoxedNumber
-extends [Ipv6Format1Boxed](#ipv6format1boxed)
+public record Ipv6Format1BoxedNumber
+implements [Ipv6Format1Boxed](#ipv6format1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv6Format1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv6Format1BoxedString
-public static final class Ipv6Format1BoxedString
-extends [Ipv6Format1Boxed](#ipv6format1boxed)
+public record Ipv6Format1BoxedString
+implements [Ipv6Format1Boxed](#ipv6format1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv6Format1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv6Format1BoxedList
-public static final class Ipv6Format1BoxedList
-extends [Ipv6Format1Boxed](#ipv6format1boxed)
+public record Ipv6Format1BoxedList
+implements [Ipv6Format1Boxed](#ipv6format1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv6Format1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv6Format1BoxedMap
-public static final class Ipv6Format1BoxedMap
-extends [Ipv6Format1Boxed](#ipv6format1boxed)
+public record Ipv6Format1BoxedMap
+implements [Ipv6Format1Boxed](#ipv6format1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Ipv6Format1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ipv6Format1
public static class Ipv6Format1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [Ipv6Format1BoxedBoolean](#ipv6format1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Ipv6Format1BoxedMap](#ipv6format1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Ipv6Format1BoxedList](#ipv6format1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Ipv6Format1Boxed](#ipv6format1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/JsonPointerFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/JsonPointerFormat.md
index 0bf84047e03..65c23c09e6c 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/JsonPointerFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/JsonPointerFormat.md
@@ -4,23 +4,23 @@ public class JsonPointerFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [JsonPointerFormat.JsonPointerFormat1Boxed](#jsonpointerformat1boxed) abstract sealed validated payload class |
-| static class | [JsonPointerFormat.JsonPointerFormat1BoxedVoid](#jsonpointerformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [JsonPointerFormat.JsonPointerFormat1BoxedBoolean](#jsonpointerformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [JsonPointerFormat.JsonPointerFormat1BoxedNumber](#jsonpointerformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [JsonPointerFormat.JsonPointerFormat1BoxedString](#jsonpointerformat1boxedstring) boxed class to store validated String payloads |
-| static class | [JsonPointerFormat.JsonPointerFormat1BoxedList](#jsonpointerformat1boxedlist) boxed class to store validated List payloads |
-| static class | [JsonPointerFormat.JsonPointerFormat1BoxedMap](#jsonpointerformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [JsonPointerFormat.JsonPointerFormat1Boxed](#jsonpointerformat1boxed) sealed interface for validated payloads |
+| record | [JsonPointerFormat.JsonPointerFormat1BoxedVoid](#jsonpointerformat1boxedvoid) boxed class to store validated null payloads |
+| record | [JsonPointerFormat.JsonPointerFormat1BoxedBoolean](#jsonpointerformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [JsonPointerFormat.JsonPointerFormat1BoxedNumber](#jsonpointerformat1boxednumber) boxed class to store validated Number payloads |
+| record | [JsonPointerFormat.JsonPointerFormat1BoxedString](#jsonpointerformat1boxedstring) boxed class to store validated String payloads |
+| record | [JsonPointerFormat.JsonPointerFormat1BoxedList](#jsonpointerformat1boxedlist) boxed class to store validated List payloads |
+| record | [JsonPointerFormat.JsonPointerFormat1BoxedMap](#jsonpointerformat1boxedmap) boxed class to store validated Map payloads |
| static class | [JsonPointerFormat.JsonPointerFormat1](#jsonpointerformat1) schema class |
## JsonPointerFormat1Boxed
-public static abstract sealed class JsonPointerFormat1Boxed
+public sealed interface JsonPointerFormat1Boxed
permits
[JsonPointerFormat1BoxedVoid](#jsonpointerformat1boxedvoid),
[JsonPointerFormat1BoxedBoolean](#jsonpointerformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[JsonPointerFormat1BoxedList](#jsonpointerformat1boxedlist),
[JsonPointerFormat1BoxedMap](#jsonpointerformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## JsonPointerFormat1BoxedVoid
-public static final class JsonPointerFormat1BoxedVoid
-extends [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
+public record JsonPointerFormat1BoxedVoid
+implements [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| JsonPointerFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## JsonPointerFormat1BoxedBoolean
-public static final class JsonPointerFormat1BoxedBoolean
-extends [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
+public record JsonPointerFormat1BoxedBoolean
+implements [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| JsonPointerFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## JsonPointerFormat1BoxedNumber
-public static final class JsonPointerFormat1BoxedNumber
-extends [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
+public record JsonPointerFormat1BoxedNumber
+implements [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| JsonPointerFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## JsonPointerFormat1BoxedString
-public static final class JsonPointerFormat1BoxedString
-extends [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
+public record JsonPointerFormat1BoxedString
+implements [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| JsonPointerFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## JsonPointerFormat1BoxedList
-public static final class JsonPointerFormat1BoxedList
-extends [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
+public record JsonPointerFormat1BoxedList
+implements [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| JsonPointerFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## JsonPointerFormat1BoxedMap
-public static final class JsonPointerFormat1BoxedMap
-extends [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
+public record JsonPointerFormat1BoxedMap
+implements [JsonPointerFormat1Boxed](#jsonpointerformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| JsonPointerFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## JsonPointerFormat1
public static class JsonPointerFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [JsonPointerFormat1BoxedBoolean](#jsonpointerformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [JsonPointerFormat1BoxedMap](#jsonpointerformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [JsonPointerFormat1BoxedList](#jsonpointerformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [JsonPointerFormat1Boxed](#jsonpointerformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidation.md
index 8d3299d1f57..ea90b82fd0b 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidation.md
@@ -4,23 +4,23 @@ public class MaximumValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MaximumValidation.MaximumValidation1Boxed](#maximumvalidation1boxed) abstract sealed validated payload class |
-| static class | [MaximumValidation.MaximumValidation1BoxedVoid](#maximumvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MaximumValidation.MaximumValidation1BoxedBoolean](#maximumvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MaximumValidation.MaximumValidation1BoxedNumber](#maximumvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MaximumValidation.MaximumValidation1BoxedString](#maximumvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MaximumValidation.MaximumValidation1BoxedList](#maximumvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MaximumValidation.MaximumValidation1BoxedMap](#maximumvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MaximumValidation.MaximumValidation1Boxed](#maximumvalidation1boxed) sealed interface for validated payloads |
+| record | [MaximumValidation.MaximumValidation1BoxedVoid](#maximumvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MaximumValidation.MaximumValidation1BoxedBoolean](#maximumvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MaximumValidation.MaximumValidation1BoxedNumber](#maximumvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MaximumValidation.MaximumValidation1BoxedString](#maximumvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MaximumValidation.MaximumValidation1BoxedList](#maximumvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MaximumValidation.MaximumValidation1BoxedMap](#maximumvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MaximumValidation.MaximumValidation1](#maximumvalidation1) schema class |
## MaximumValidation1Boxed
-public static abstract sealed class MaximumValidation1Boxed
+public sealed interface MaximumValidation1Boxed
permits
[MaximumValidation1BoxedVoid](#maximumvalidation1boxedvoid),
[MaximumValidation1BoxedBoolean](#maximumvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MaximumValidation1BoxedList](#maximumvalidation1boxedlist),
[MaximumValidation1BoxedMap](#maximumvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MaximumValidation1BoxedVoid
-public static final class MaximumValidation1BoxedVoid
-extends [MaximumValidation1Boxed](#maximumvalidation1boxed)
+public record MaximumValidation1BoxedVoid
+implements [MaximumValidation1Boxed](#maximumvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidation1BoxedBoolean
-public static final class MaximumValidation1BoxedBoolean
-extends [MaximumValidation1Boxed](#maximumvalidation1boxed)
+public record MaximumValidation1BoxedBoolean
+implements [MaximumValidation1Boxed](#maximumvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidation1BoxedNumber
-public static final class MaximumValidation1BoxedNumber
-extends [MaximumValidation1Boxed](#maximumvalidation1boxed)
+public record MaximumValidation1BoxedNumber
+implements [MaximumValidation1Boxed](#maximumvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidation1BoxedString
-public static final class MaximumValidation1BoxedString
-extends [MaximumValidation1Boxed](#maximumvalidation1boxed)
+public record MaximumValidation1BoxedString
+implements [MaximumValidation1Boxed](#maximumvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidation1BoxedList
-public static final class MaximumValidation1BoxedList
-extends [MaximumValidation1Boxed](#maximumvalidation1boxed)
+public record MaximumValidation1BoxedList
+implements [MaximumValidation1Boxed](#maximumvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidation1BoxedMap
-public static final class MaximumValidation1BoxedMap
-extends [MaximumValidation1Boxed](#maximumvalidation1boxed)
+public record MaximumValidation1BoxedMap
+implements [MaximumValidation1Boxed](#maximumvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidation1
public static class MaximumValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MaximumValidation1BoxedBoolean](#maximumvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MaximumValidation1BoxedMap](#maximumvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MaximumValidation1BoxedList](#maximumvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MaximumValidation1Boxed](#maximumvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md
index 98e8b63439d..319d16fd33e 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaximumValidationWithUnsignedInteger.md
@@ -4,23 +4,23 @@ public class MaximumValidationWithUnsignedInteger
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed) abstract sealed validated payload class |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedVoid](#maximumvalidationwithunsignedinteger1boxedvoid) boxed class to store validated null payloads |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedBoolean](#maximumvalidationwithunsignedinteger1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedNumber](#maximumvalidationwithunsignedinteger1boxednumber) boxed class to store validated Number payloads |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedString](#maximumvalidationwithunsignedinteger1boxedstring) boxed class to store validated String payloads |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedList](#maximumvalidationwithunsignedinteger1boxedlist) boxed class to store validated List payloads |
-| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedMap](#maximumvalidationwithunsignedinteger1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed) sealed interface for validated payloads |
+| record | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedVoid](#maximumvalidationwithunsignedinteger1boxedvoid) boxed class to store validated null payloads |
+| record | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedBoolean](#maximumvalidationwithunsignedinteger1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedNumber](#maximumvalidationwithunsignedinteger1boxednumber) boxed class to store validated Number payloads |
+| record | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedString](#maximumvalidationwithunsignedinteger1boxedstring) boxed class to store validated String payloads |
+| record | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedList](#maximumvalidationwithunsignedinteger1boxedlist) boxed class to store validated List payloads |
+| record | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1BoxedMap](#maximumvalidationwithunsignedinteger1boxedmap) boxed class to store validated Map payloads |
| static class | [MaximumValidationWithUnsignedInteger.MaximumValidationWithUnsignedInteger1](#maximumvalidationwithunsignedinteger1) schema class |
## MaximumValidationWithUnsignedInteger1Boxed
-public static abstract sealed class MaximumValidationWithUnsignedInteger1Boxed
+public sealed interface MaximumValidationWithUnsignedInteger1Boxed
permits
[MaximumValidationWithUnsignedInteger1BoxedVoid](#maximumvalidationwithunsignedinteger1boxedvoid),
[MaximumValidationWithUnsignedInteger1BoxedBoolean](#maximumvalidationwithunsignedinteger1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MaximumValidationWithUnsignedInteger1BoxedList](#maximumvalidationwithunsignedinteger1boxedlist),
[MaximumValidationWithUnsignedInteger1BoxedMap](#maximumvalidationwithunsignedinteger1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MaximumValidationWithUnsignedInteger1BoxedVoid
-public static final class MaximumValidationWithUnsignedInteger1BoxedVoid
-extends [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
+public record MaximumValidationWithUnsignedInteger1BoxedVoid
+implements [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidationWithUnsignedInteger1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidationWithUnsignedInteger1BoxedBoolean
-public static final class MaximumValidationWithUnsignedInteger1BoxedBoolean
-extends [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
+public record MaximumValidationWithUnsignedInteger1BoxedBoolean
+implements [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidationWithUnsignedInteger1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidationWithUnsignedInteger1BoxedNumber
-public static final class MaximumValidationWithUnsignedInteger1BoxedNumber
-extends [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
+public record MaximumValidationWithUnsignedInteger1BoxedNumber
+implements [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidationWithUnsignedInteger1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidationWithUnsignedInteger1BoxedString
-public static final class MaximumValidationWithUnsignedInteger1BoxedString
-extends [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
+public record MaximumValidationWithUnsignedInteger1BoxedString
+implements [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidationWithUnsignedInteger1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidationWithUnsignedInteger1BoxedList
-public static final class MaximumValidationWithUnsignedInteger1BoxedList
-extends [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
+public record MaximumValidationWithUnsignedInteger1BoxedList
+implements [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidationWithUnsignedInteger1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidationWithUnsignedInteger1BoxedMap
-public static final class MaximumValidationWithUnsignedInteger1BoxedMap
-extends [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
+public record MaximumValidationWithUnsignedInteger1BoxedMap
+implements [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaximumValidationWithUnsignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaximumValidationWithUnsignedInteger1
public static class MaximumValidationWithUnsignedInteger1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MaximumValidationWithUnsignedInteger1BoxedBoolean](#maximumvalidationwithunsignedinteger1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MaximumValidationWithUnsignedInteger1BoxedMap](#maximumvalidationwithunsignedinteger1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MaximumValidationWithUnsignedInteger1BoxedList](#maximumvalidationwithunsignedinteger1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MaximumValidationWithUnsignedInteger1Boxed](#maximumvalidationwithunsignedinteger1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxitemsValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxitemsValidation.md
index 98523745270..1fd4640fa8a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxitemsValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxitemsValidation.md
@@ -4,23 +4,23 @@ public class MaxitemsValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MaxitemsValidation.MaxitemsValidation1Boxed](#maxitemsvalidation1boxed) abstract sealed validated payload class |
-| static class | [MaxitemsValidation.MaxitemsValidation1BoxedVoid](#maxitemsvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MaxitemsValidation.MaxitemsValidation1BoxedBoolean](#maxitemsvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MaxitemsValidation.MaxitemsValidation1BoxedNumber](#maxitemsvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MaxitemsValidation.MaxitemsValidation1BoxedString](#maxitemsvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MaxitemsValidation.MaxitemsValidation1BoxedList](#maxitemsvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MaxitemsValidation.MaxitemsValidation1BoxedMap](#maxitemsvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MaxitemsValidation.MaxitemsValidation1Boxed](#maxitemsvalidation1boxed) sealed interface for validated payloads |
+| record | [MaxitemsValidation.MaxitemsValidation1BoxedVoid](#maxitemsvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MaxitemsValidation.MaxitemsValidation1BoxedBoolean](#maxitemsvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MaxitemsValidation.MaxitemsValidation1BoxedNumber](#maxitemsvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MaxitemsValidation.MaxitemsValidation1BoxedString](#maxitemsvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MaxitemsValidation.MaxitemsValidation1BoxedList](#maxitemsvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MaxitemsValidation.MaxitemsValidation1BoxedMap](#maxitemsvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MaxitemsValidation.MaxitemsValidation1](#maxitemsvalidation1) schema class |
## MaxitemsValidation1Boxed
-public static abstract sealed class MaxitemsValidation1Boxed
+public sealed interface MaxitemsValidation1Boxed
permits
[MaxitemsValidation1BoxedVoid](#maxitemsvalidation1boxedvoid),
[MaxitemsValidation1BoxedBoolean](#maxitemsvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MaxitemsValidation1BoxedList](#maxitemsvalidation1boxedlist),
[MaxitemsValidation1BoxedMap](#maxitemsvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MaxitemsValidation1BoxedVoid
-public static final class MaxitemsValidation1BoxedVoid
-extends [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
+public record MaxitemsValidation1BoxedVoid
+implements [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxitemsValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxitemsValidation1BoxedBoolean
-public static final class MaxitemsValidation1BoxedBoolean
-extends [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
+public record MaxitemsValidation1BoxedBoolean
+implements [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxitemsValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxitemsValidation1BoxedNumber
-public static final class MaxitemsValidation1BoxedNumber
-extends [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
+public record MaxitemsValidation1BoxedNumber
+implements [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxitemsValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxitemsValidation1BoxedString
-public static final class MaxitemsValidation1BoxedString
-extends [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
+public record MaxitemsValidation1BoxedString
+implements [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxitemsValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxitemsValidation1BoxedList
-public static final class MaxitemsValidation1BoxedList
-extends [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
+public record MaxitemsValidation1BoxedList
+implements [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxitemsValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxitemsValidation1BoxedMap
-public static final class MaxitemsValidation1BoxedMap
-extends [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
+public record MaxitemsValidation1BoxedMap
+implements [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxitemsValidation1
public static class MaxitemsValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MaxitemsValidation1BoxedBoolean](#maxitemsvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MaxitemsValidation1BoxedMap](#maxitemsvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MaxitemsValidation1BoxedList](#maxitemsvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MaxitemsValidation1Boxed](#maxitemsvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxlengthValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxlengthValidation.md
index 7aa1d4b333d..e828355331e 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxlengthValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxlengthValidation.md
@@ -4,23 +4,23 @@ public class MaxlengthValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MaxlengthValidation.MaxlengthValidation1Boxed](#maxlengthvalidation1boxed) abstract sealed validated payload class |
-| static class | [MaxlengthValidation.MaxlengthValidation1BoxedVoid](#maxlengthvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MaxlengthValidation.MaxlengthValidation1BoxedBoolean](#maxlengthvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MaxlengthValidation.MaxlengthValidation1BoxedNumber](#maxlengthvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MaxlengthValidation.MaxlengthValidation1BoxedString](#maxlengthvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MaxlengthValidation.MaxlengthValidation1BoxedList](#maxlengthvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MaxlengthValidation.MaxlengthValidation1BoxedMap](#maxlengthvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MaxlengthValidation.MaxlengthValidation1Boxed](#maxlengthvalidation1boxed) sealed interface for validated payloads |
+| record | [MaxlengthValidation.MaxlengthValidation1BoxedVoid](#maxlengthvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MaxlengthValidation.MaxlengthValidation1BoxedBoolean](#maxlengthvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MaxlengthValidation.MaxlengthValidation1BoxedNumber](#maxlengthvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MaxlengthValidation.MaxlengthValidation1BoxedString](#maxlengthvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MaxlengthValidation.MaxlengthValidation1BoxedList](#maxlengthvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MaxlengthValidation.MaxlengthValidation1BoxedMap](#maxlengthvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MaxlengthValidation.MaxlengthValidation1](#maxlengthvalidation1) schema class |
## MaxlengthValidation1Boxed
-public static abstract sealed class MaxlengthValidation1Boxed
+public sealed interface MaxlengthValidation1Boxed
permits
[MaxlengthValidation1BoxedVoid](#maxlengthvalidation1boxedvoid),
[MaxlengthValidation1BoxedBoolean](#maxlengthvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MaxlengthValidation1BoxedList](#maxlengthvalidation1boxedlist),
[MaxlengthValidation1BoxedMap](#maxlengthvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MaxlengthValidation1BoxedVoid
-public static final class MaxlengthValidation1BoxedVoid
-extends [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
+public record MaxlengthValidation1BoxedVoid
+implements [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxlengthValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxlengthValidation1BoxedBoolean
-public static final class MaxlengthValidation1BoxedBoolean
-extends [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
+public record MaxlengthValidation1BoxedBoolean
+implements [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxlengthValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxlengthValidation1BoxedNumber
-public static final class MaxlengthValidation1BoxedNumber
-extends [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
+public record MaxlengthValidation1BoxedNumber
+implements [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxlengthValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxlengthValidation1BoxedString
-public static final class MaxlengthValidation1BoxedString
-extends [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
+public record MaxlengthValidation1BoxedString
+implements [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxlengthValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxlengthValidation1BoxedList
-public static final class MaxlengthValidation1BoxedList
-extends [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
+public record MaxlengthValidation1BoxedList
+implements [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxlengthValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxlengthValidation1BoxedMap
-public static final class MaxlengthValidation1BoxedMap
-extends [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
+public record MaxlengthValidation1BoxedMap
+implements [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxlengthValidation1
public static class MaxlengthValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MaxlengthValidation1BoxedBoolean](#maxlengthvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MaxlengthValidation1BoxedMap](#maxlengthvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MaxlengthValidation1BoxedList](#maxlengthvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MaxlengthValidation1Boxed](#maxlengthvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md
index 36d25749476..0f8c895fdcd 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Maxproperties0MeansTheObjectIsEmpty.md
@@ -4,23 +4,23 @@ public class Maxproperties0MeansTheObjectIsEmpty
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed) abstract sealed validated payload class |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedVoid](#maxproperties0meanstheobjectisempty1boxedvoid) boxed class to store validated null payloads |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean](#maxproperties0meanstheobjectisempty1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedNumber](#maxproperties0meanstheobjectisempty1boxednumber) boxed class to store validated Number payloads |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedString](#maxproperties0meanstheobjectisempty1boxedstring) boxed class to store validated String payloads |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedList](#maxproperties0meanstheobjectisempty1boxedlist) boxed class to store validated List payloads |
-| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedMap](#maxproperties0meanstheobjectisempty1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed) sealed interface for validated payloads |
+| record | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedVoid](#maxproperties0meanstheobjectisempty1boxedvoid) boxed class to store validated null payloads |
+| record | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean](#maxproperties0meanstheobjectisempty1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedNumber](#maxproperties0meanstheobjectisempty1boxednumber) boxed class to store validated Number payloads |
+| record | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedString](#maxproperties0meanstheobjectisempty1boxedstring) boxed class to store validated String payloads |
+| record | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedList](#maxproperties0meanstheobjectisempty1boxedlist) boxed class to store validated List payloads |
+| record | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1BoxedMap](#maxproperties0meanstheobjectisempty1boxedmap) boxed class to store validated Map payloads |
| static class | [Maxproperties0MeansTheObjectIsEmpty.Maxproperties0MeansTheObjectIsEmpty1](#maxproperties0meanstheobjectisempty1) schema class |
## Maxproperties0MeansTheObjectIsEmpty1Boxed
-public static abstract sealed class Maxproperties0MeansTheObjectIsEmpty1Boxed
+public sealed interface Maxproperties0MeansTheObjectIsEmpty1Boxed
permits
[Maxproperties0MeansTheObjectIsEmpty1BoxedVoid](#maxproperties0meanstheobjectisempty1boxedvoid),
[Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean](#maxproperties0meanstheobjectisempty1boxedboolean),
@@ -29,103 +29,109 @@ permits
[Maxproperties0MeansTheObjectIsEmpty1BoxedList](#maxproperties0meanstheobjectisempty1boxedlist),
[Maxproperties0MeansTheObjectIsEmpty1BoxedMap](#maxproperties0meanstheobjectisempty1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Maxproperties0MeansTheObjectIsEmpty1BoxedVoid
-public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedVoid
-extends [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
+public record Maxproperties0MeansTheObjectIsEmpty1BoxedVoid
+implements [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Maxproperties0MeansTheObjectIsEmpty1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean
-public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean
-extends [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
+public record Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean
+implements [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Maxproperties0MeansTheObjectIsEmpty1BoxedNumber
-public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedNumber
-extends [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
+public record Maxproperties0MeansTheObjectIsEmpty1BoxedNumber
+implements [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Maxproperties0MeansTheObjectIsEmpty1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Maxproperties0MeansTheObjectIsEmpty1BoxedString
-public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedString
-extends [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
+public record Maxproperties0MeansTheObjectIsEmpty1BoxedString
+implements [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Maxproperties0MeansTheObjectIsEmpty1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Maxproperties0MeansTheObjectIsEmpty1BoxedList
-public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedList
-extends [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
+public record Maxproperties0MeansTheObjectIsEmpty1BoxedList
+implements [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Maxproperties0MeansTheObjectIsEmpty1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Maxproperties0MeansTheObjectIsEmpty1BoxedMap
-public static final class Maxproperties0MeansTheObjectIsEmpty1BoxedMap
-extends [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
+public record Maxproperties0MeansTheObjectIsEmpty1BoxedMap
+implements [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Maxproperties0MeansTheObjectIsEmpty1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Maxproperties0MeansTheObjectIsEmpty1
public static class Maxproperties0MeansTheObjectIsEmpty1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [Maxproperties0MeansTheObjectIsEmpty1BoxedBoolean](#maxproperties0meanstheobjectisempty1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Maxproperties0MeansTheObjectIsEmpty1BoxedMap](#maxproperties0meanstheobjectisempty1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Maxproperties0MeansTheObjectIsEmpty1BoxedList](#maxproperties0meanstheobjectisempty1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Maxproperties0MeansTheObjectIsEmpty1Boxed](#maxproperties0meanstheobjectisempty1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md
index 7c12d46e04b..0ee228096d5 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MaxpropertiesValidation.md
@@ -4,23 +4,23 @@ public class MaxpropertiesValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed) abstract sealed validated payload class |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedVoid](#maxpropertiesvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedBoolean](#maxpropertiesvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedNumber](#maxpropertiesvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedString](#maxpropertiesvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedList](#maxpropertiesvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedMap](#maxpropertiesvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MaxpropertiesValidation.MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed) sealed interface for validated payloads |
+| record | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedVoid](#maxpropertiesvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedBoolean](#maxpropertiesvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedNumber](#maxpropertiesvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedString](#maxpropertiesvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedList](#maxpropertiesvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MaxpropertiesValidation.MaxpropertiesValidation1BoxedMap](#maxpropertiesvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MaxpropertiesValidation.MaxpropertiesValidation1](#maxpropertiesvalidation1) schema class |
## MaxpropertiesValidation1Boxed
-public static abstract sealed class MaxpropertiesValidation1Boxed
+public sealed interface MaxpropertiesValidation1Boxed
permits
[MaxpropertiesValidation1BoxedVoid](#maxpropertiesvalidation1boxedvoid),
[MaxpropertiesValidation1BoxedBoolean](#maxpropertiesvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MaxpropertiesValidation1BoxedList](#maxpropertiesvalidation1boxedlist),
[MaxpropertiesValidation1BoxedMap](#maxpropertiesvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MaxpropertiesValidation1BoxedVoid
-public static final class MaxpropertiesValidation1BoxedVoid
-extends [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
+public record MaxpropertiesValidation1BoxedVoid
+implements [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxpropertiesValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxpropertiesValidation1BoxedBoolean
-public static final class MaxpropertiesValidation1BoxedBoolean
-extends [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
+public record MaxpropertiesValidation1BoxedBoolean
+implements [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxpropertiesValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxpropertiesValidation1BoxedNumber
-public static final class MaxpropertiesValidation1BoxedNumber
-extends [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
+public record MaxpropertiesValidation1BoxedNumber
+implements [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxpropertiesValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxpropertiesValidation1BoxedString
-public static final class MaxpropertiesValidation1BoxedString
-extends [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
+public record MaxpropertiesValidation1BoxedString
+implements [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxpropertiesValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxpropertiesValidation1BoxedList
-public static final class MaxpropertiesValidation1BoxedList
-extends [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
+public record MaxpropertiesValidation1BoxedList
+implements [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxpropertiesValidation1BoxedMap
-public static final class MaxpropertiesValidation1BoxedMap
-extends [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
+public record MaxpropertiesValidation1BoxedMap
+implements [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MaxpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MaxpropertiesValidation1
public static class MaxpropertiesValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MaxpropertiesValidation1BoxedBoolean](#maxpropertiesvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MaxpropertiesValidation1BoxedMap](#maxpropertiesvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MaxpropertiesValidation1BoxedList](#maxpropertiesvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MaxpropertiesValidation1Boxed](#maxpropertiesvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidation.md
index d08a4b87b8d..26df31b73bd 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidation.md
@@ -4,23 +4,23 @@ public class MinimumValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MinimumValidation.MinimumValidation1Boxed](#minimumvalidation1boxed) abstract sealed validated payload class |
-| static class | [MinimumValidation.MinimumValidation1BoxedVoid](#minimumvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MinimumValidation.MinimumValidation1BoxedBoolean](#minimumvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MinimumValidation.MinimumValidation1BoxedNumber](#minimumvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MinimumValidation.MinimumValidation1BoxedString](#minimumvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MinimumValidation.MinimumValidation1BoxedList](#minimumvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MinimumValidation.MinimumValidation1BoxedMap](#minimumvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MinimumValidation.MinimumValidation1Boxed](#minimumvalidation1boxed) sealed interface for validated payloads |
+| record | [MinimumValidation.MinimumValidation1BoxedVoid](#minimumvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MinimumValidation.MinimumValidation1BoxedBoolean](#minimumvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MinimumValidation.MinimumValidation1BoxedNumber](#minimumvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MinimumValidation.MinimumValidation1BoxedString](#minimumvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MinimumValidation.MinimumValidation1BoxedList](#minimumvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MinimumValidation.MinimumValidation1BoxedMap](#minimumvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MinimumValidation.MinimumValidation1](#minimumvalidation1) schema class |
## MinimumValidation1Boxed
-public static abstract sealed class MinimumValidation1Boxed
+public sealed interface MinimumValidation1Boxed
permits
[MinimumValidation1BoxedVoid](#minimumvalidation1boxedvoid),
[MinimumValidation1BoxedBoolean](#minimumvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MinimumValidation1BoxedList](#minimumvalidation1boxedlist),
[MinimumValidation1BoxedMap](#minimumvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MinimumValidation1BoxedVoid
-public static final class MinimumValidation1BoxedVoid
-extends [MinimumValidation1Boxed](#minimumvalidation1boxed)
+public record MinimumValidation1BoxedVoid
+implements [MinimumValidation1Boxed](#minimumvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidation1BoxedBoolean
-public static final class MinimumValidation1BoxedBoolean
-extends [MinimumValidation1Boxed](#minimumvalidation1boxed)
+public record MinimumValidation1BoxedBoolean
+implements [MinimumValidation1Boxed](#minimumvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidation1BoxedNumber
-public static final class MinimumValidation1BoxedNumber
-extends [MinimumValidation1Boxed](#minimumvalidation1boxed)
+public record MinimumValidation1BoxedNumber
+implements [MinimumValidation1Boxed](#minimumvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidation1BoxedString
-public static final class MinimumValidation1BoxedString
-extends [MinimumValidation1Boxed](#minimumvalidation1boxed)
+public record MinimumValidation1BoxedString
+implements [MinimumValidation1Boxed](#minimumvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidation1BoxedList
-public static final class MinimumValidation1BoxedList
-extends [MinimumValidation1Boxed](#minimumvalidation1boxed)
+public record MinimumValidation1BoxedList
+implements [MinimumValidation1Boxed](#minimumvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidation1BoxedMap
-public static final class MinimumValidation1BoxedMap
-extends [MinimumValidation1Boxed](#minimumvalidation1boxed)
+public record MinimumValidation1BoxedMap
+implements [MinimumValidation1Boxed](#minimumvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidation1
public static class MinimumValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MinimumValidation1BoxedBoolean](#minimumvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MinimumValidation1BoxedMap](#minimumvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MinimumValidation1BoxedList](#minimumvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MinimumValidation1Boxed](#minimumvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md
index d0e27071bf5..8cf8b08f2a7 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinimumValidationWithSignedInteger.md
@@ -4,23 +4,23 @@ public class MinimumValidationWithSignedInteger
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed) abstract sealed validated payload class |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedVoid](#minimumvalidationwithsignedinteger1boxedvoid) boxed class to store validated null payloads |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedBoolean](#minimumvalidationwithsignedinteger1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedNumber](#minimumvalidationwithsignedinteger1boxednumber) boxed class to store validated Number payloads |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedString](#minimumvalidationwithsignedinteger1boxedstring) boxed class to store validated String payloads |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedList](#minimumvalidationwithsignedinteger1boxedlist) boxed class to store validated List payloads |
-| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedMap](#minimumvalidationwithsignedinteger1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed) sealed interface for validated payloads |
+| record | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedVoid](#minimumvalidationwithsignedinteger1boxedvoid) boxed class to store validated null payloads |
+| record | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedBoolean](#minimumvalidationwithsignedinteger1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedNumber](#minimumvalidationwithsignedinteger1boxednumber) boxed class to store validated Number payloads |
+| record | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedString](#minimumvalidationwithsignedinteger1boxedstring) boxed class to store validated String payloads |
+| record | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedList](#minimumvalidationwithsignedinteger1boxedlist) boxed class to store validated List payloads |
+| record | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1BoxedMap](#minimumvalidationwithsignedinteger1boxedmap) boxed class to store validated Map payloads |
| static class | [MinimumValidationWithSignedInteger.MinimumValidationWithSignedInteger1](#minimumvalidationwithsignedinteger1) schema class |
## MinimumValidationWithSignedInteger1Boxed
-public static abstract sealed class MinimumValidationWithSignedInteger1Boxed
+public sealed interface MinimumValidationWithSignedInteger1Boxed
permits
[MinimumValidationWithSignedInteger1BoxedVoid](#minimumvalidationwithsignedinteger1boxedvoid),
[MinimumValidationWithSignedInteger1BoxedBoolean](#minimumvalidationwithsignedinteger1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MinimumValidationWithSignedInteger1BoxedList](#minimumvalidationwithsignedinteger1boxedlist),
[MinimumValidationWithSignedInteger1BoxedMap](#minimumvalidationwithsignedinteger1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MinimumValidationWithSignedInteger1BoxedVoid
-public static final class MinimumValidationWithSignedInteger1BoxedVoid
-extends [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
+public record MinimumValidationWithSignedInteger1BoxedVoid
+implements [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidationWithSignedInteger1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidationWithSignedInteger1BoxedBoolean
-public static final class MinimumValidationWithSignedInteger1BoxedBoolean
-extends [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
+public record MinimumValidationWithSignedInteger1BoxedBoolean
+implements [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidationWithSignedInteger1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidationWithSignedInteger1BoxedNumber
-public static final class MinimumValidationWithSignedInteger1BoxedNumber
-extends [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
+public record MinimumValidationWithSignedInteger1BoxedNumber
+implements [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidationWithSignedInteger1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidationWithSignedInteger1BoxedString
-public static final class MinimumValidationWithSignedInteger1BoxedString
-extends [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
+public record MinimumValidationWithSignedInteger1BoxedString
+implements [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidationWithSignedInteger1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidationWithSignedInteger1BoxedList
-public static final class MinimumValidationWithSignedInteger1BoxedList
-extends [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
+public record MinimumValidationWithSignedInteger1BoxedList
+implements [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidationWithSignedInteger1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidationWithSignedInteger1BoxedMap
-public static final class MinimumValidationWithSignedInteger1BoxedMap
-extends [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
+public record MinimumValidationWithSignedInteger1BoxedMap
+implements [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinimumValidationWithSignedInteger1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinimumValidationWithSignedInteger1
public static class MinimumValidationWithSignedInteger1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MinimumValidationWithSignedInteger1BoxedBoolean](#minimumvalidationwithsignedinteger1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MinimumValidationWithSignedInteger1BoxedMap](#minimumvalidationwithsignedinteger1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MinimumValidationWithSignedInteger1BoxedList](#minimumvalidationwithsignedinteger1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MinimumValidationWithSignedInteger1Boxed](#minimumvalidationwithsignedinteger1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinitemsValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinitemsValidation.md
index 64dda8d0ea0..0f8a46474b2 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinitemsValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinitemsValidation.md
@@ -4,23 +4,23 @@ public class MinitemsValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MinitemsValidation.MinitemsValidation1Boxed](#minitemsvalidation1boxed) abstract sealed validated payload class |
-| static class | [MinitemsValidation.MinitemsValidation1BoxedVoid](#minitemsvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MinitemsValidation.MinitemsValidation1BoxedBoolean](#minitemsvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MinitemsValidation.MinitemsValidation1BoxedNumber](#minitemsvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MinitemsValidation.MinitemsValidation1BoxedString](#minitemsvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MinitemsValidation.MinitemsValidation1BoxedList](#minitemsvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MinitemsValidation.MinitemsValidation1BoxedMap](#minitemsvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MinitemsValidation.MinitemsValidation1Boxed](#minitemsvalidation1boxed) sealed interface for validated payloads |
+| record | [MinitemsValidation.MinitemsValidation1BoxedVoid](#minitemsvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MinitemsValidation.MinitemsValidation1BoxedBoolean](#minitemsvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MinitemsValidation.MinitemsValidation1BoxedNumber](#minitemsvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MinitemsValidation.MinitemsValidation1BoxedString](#minitemsvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MinitemsValidation.MinitemsValidation1BoxedList](#minitemsvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MinitemsValidation.MinitemsValidation1BoxedMap](#minitemsvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MinitemsValidation.MinitemsValidation1](#minitemsvalidation1) schema class |
## MinitemsValidation1Boxed
-public static abstract sealed class MinitemsValidation1Boxed
+public sealed interface MinitemsValidation1Boxed
permits
[MinitemsValidation1BoxedVoid](#minitemsvalidation1boxedvoid),
[MinitemsValidation1BoxedBoolean](#minitemsvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MinitemsValidation1BoxedList](#minitemsvalidation1boxedlist),
[MinitemsValidation1BoxedMap](#minitemsvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MinitemsValidation1BoxedVoid
-public static final class MinitemsValidation1BoxedVoid
-extends [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
+public record MinitemsValidation1BoxedVoid
+implements [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinitemsValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinitemsValidation1BoxedBoolean
-public static final class MinitemsValidation1BoxedBoolean
-extends [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
+public record MinitemsValidation1BoxedBoolean
+implements [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinitemsValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinitemsValidation1BoxedNumber
-public static final class MinitemsValidation1BoxedNumber
-extends [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
+public record MinitemsValidation1BoxedNumber
+implements [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinitemsValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinitemsValidation1BoxedString
-public static final class MinitemsValidation1BoxedString
-extends [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
+public record MinitemsValidation1BoxedString
+implements [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinitemsValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinitemsValidation1BoxedList
-public static final class MinitemsValidation1BoxedList
-extends [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
+public record MinitemsValidation1BoxedList
+implements [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinitemsValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinitemsValidation1BoxedMap
-public static final class MinitemsValidation1BoxedMap
-extends [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
+public record MinitemsValidation1BoxedMap
+implements [MinitemsValidation1Boxed](#minitemsvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinitemsValidation1
public static class MinitemsValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MinitemsValidation1BoxedBoolean](#minitemsvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MinitemsValidation1BoxedMap](#minitemsvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MinitemsValidation1BoxedList](#minitemsvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MinitemsValidation1Boxed](#minitemsvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinlengthValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinlengthValidation.md
index 90c47d11e25..bf689a4ffa4 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinlengthValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinlengthValidation.md
@@ -4,23 +4,23 @@ public class MinlengthValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MinlengthValidation.MinlengthValidation1Boxed](#minlengthvalidation1boxed) abstract sealed validated payload class |
-| static class | [MinlengthValidation.MinlengthValidation1BoxedVoid](#minlengthvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MinlengthValidation.MinlengthValidation1BoxedBoolean](#minlengthvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MinlengthValidation.MinlengthValidation1BoxedNumber](#minlengthvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MinlengthValidation.MinlengthValidation1BoxedString](#minlengthvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MinlengthValidation.MinlengthValidation1BoxedList](#minlengthvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MinlengthValidation.MinlengthValidation1BoxedMap](#minlengthvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MinlengthValidation.MinlengthValidation1Boxed](#minlengthvalidation1boxed) sealed interface for validated payloads |
+| record | [MinlengthValidation.MinlengthValidation1BoxedVoid](#minlengthvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MinlengthValidation.MinlengthValidation1BoxedBoolean](#minlengthvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MinlengthValidation.MinlengthValidation1BoxedNumber](#minlengthvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MinlengthValidation.MinlengthValidation1BoxedString](#minlengthvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MinlengthValidation.MinlengthValidation1BoxedList](#minlengthvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MinlengthValidation.MinlengthValidation1BoxedMap](#minlengthvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MinlengthValidation.MinlengthValidation1](#minlengthvalidation1) schema class |
## MinlengthValidation1Boxed
-public static abstract sealed class MinlengthValidation1Boxed
+public sealed interface MinlengthValidation1Boxed
permits
[MinlengthValidation1BoxedVoid](#minlengthvalidation1boxedvoid),
[MinlengthValidation1BoxedBoolean](#minlengthvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MinlengthValidation1BoxedList](#minlengthvalidation1boxedlist),
[MinlengthValidation1BoxedMap](#minlengthvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MinlengthValidation1BoxedVoid
-public static final class MinlengthValidation1BoxedVoid
-extends [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
+public record MinlengthValidation1BoxedVoid
+implements [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinlengthValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinlengthValidation1BoxedBoolean
-public static final class MinlengthValidation1BoxedBoolean
-extends [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
+public record MinlengthValidation1BoxedBoolean
+implements [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinlengthValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinlengthValidation1BoxedNumber
-public static final class MinlengthValidation1BoxedNumber
-extends [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
+public record MinlengthValidation1BoxedNumber
+implements [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinlengthValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinlengthValidation1BoxedString
-public static final class MinlengthValidation1BoxedString
-extends [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
+public record MinlengthValidation1BoxedString
+implements [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinlengthValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinlengthValidation1BoxedList
-public static final class MinlengthValidation1BoxedList
-extends [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
+public record MinlengthValidation1BoxedList
+implements [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinlengthValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinlengthValidation1BoxedMap
-public static final class MinlengthValidation1BoxedMap
-extends [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
+public record MinlengthValidation1BoxedMap
+implements [MinlengthValidation1Boxed](#minlengthvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinlengthValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinlengthValidation1
public static class MinlengthValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MinlengthValidation1BoxedBoolean](#minlengthvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MinlengthValidation1BoxedMap](#minlengthvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MinlengthValidation1BoxedList](#minlengthvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MinlengthValidation1Boxed](#minlengthvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinpropertiesValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinpropertiesValidation.md
index a93e08d7d8f..43f7370e423 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinpropertiesValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/MinpropertiesValidation.md
@@ -4,23 +4,23 @@ public class MinpropertiesValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed) abstract sealed validated payload class |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1BoxedVoid](#minpropertiesvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1BoxedBoolean](#minpropertiesvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1BoxedNumber](#minpropertiesvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1BoxedString](#minpropertiesvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1BoxedList](#minpropertiesvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [MinpropertiesValidation.MinpropertiesValidation1BoxedMap](#minpropertiesvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [MinpropertiesValidation.MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed) sealed interface for validated payloads |
+| record | [MinpropertiesValidation.MinpropertiesValidation1BoxedVoid](#minpropertiesvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [MinpropertiesValidation.MinpropertiesValidation1BoxedBoolean](#minpropertiesvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [MinpropertiesValidation.MinpropertiesValidation1BoxedNumber](#minpropertiesvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [MinpropertiesValidation.MinpropertiesValidation1BoxedString](#minpropertiesvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [MinpropertiesValidation.MinpropertiesValidation1BoxedList](#minpropertiesvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [MinpropertiesValidation.MinpropertiesValidation1BoxedMap](#minpropertiesvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [MinpropertiesValidation.MinpropertiesValidation1](#minpropertiesvalidation1) schema class |
## MinpropertiesValidation1Boxed
-public static abstract sealed class MinpropertiesValidation1Boxed
+public sealed interface MinpropertiesValidation1Boxed
permits
[MinpropertiesValidation1BoxedVoid](#minpropertiesvalidation1boxedvoid),
[MinpropertiesValidation1BoxedBoolean](#minpropertiesvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[MinpropertiesValidation1BoxedList](#minpropertiesvalidation1boxedlist),
[MinpropertiesValidation1BoxedMap](#minpropertiesvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## MinpropertiesValidation1BoxedVoid
-public static final class MinpropertiesValidation1BoxedVoid
-extends [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
+public record MinpropertiesValidation1BoxedVoid
+implements [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinpropertiesValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinpropertiesValidation1BoxedBoolean
-public static final class MinpropertiesValidation1BoxedBoolean
-extends [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
+public record MinpropertiesValidation1BoxedBoolean
+implements [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinpropertiesValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinpropertiesValidation1BoxedNumber
-public static final class MinpropertiesValidation1BoxedNumber
-extends [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
+public record MinpropertiesValidation1BoxedNumber
+implements [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinpropertiesValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinpropertiesValidation1BoxedString
-public static final class MinpropertiesValidation1BoxedString
-extends [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
+public record MinpropertiesValidation1BoxedString
+implements [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinpropertiesValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinpropertiesValidation1BoxedList
-public static final class MinpropertiesValidation1BoxedList
-extends [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
+public record MinpropertiesValidation1BoxedList
+implements [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinpropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinpropertiesValidation1BoxedMap
-public static final class MinpropertiesValidation1BoxedMap
-extends [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
+public record MinpropertiesValidation1BoxedMap
+implements [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| MinpropertiesValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## MinpropertiesValidation1
public static class MinpropertiesValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [MinpropertiesValidation1BoxedBoolean](#minpropertiesvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [MinpropertiesValidation1BoxedMap](#minpropertiesvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [MinpropertiesValidation1BoxedList](#minpropertiesvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [MinpropertiesValidation1Boxed](#minpropertiesvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md
index d02f03d3c8b..ebf65ca84c7 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAllofToCheckValidationSemantics.md
@@ -4,34 +4,34 @@ public class NestedAllofToCheckValidationSemantics
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed) abstract sealed validated payload class |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedVoid](#nestedalloftocheckvalidationsemantics1boxedvoid) boxed class to store validated null payloads |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedBoolean](#nestedalloftocheckvalidationsemantics1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedNumber](#nestedalloftocheckvalidationsemantics1boxednumber) boxed class to store validated Number payloads |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedString](#nestedalloftocheckvalidationsemantics1boxedstring) boxed class to store validated String payloads |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedList](#nestedalloftocheckvalidationsemantics1boxedlist) boxed class to store validated List payloads |
-| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedMap](#nestedalloftocheckvalidationsemantics1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed) sealed interface for validated payloads |
+| record | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedVoid](#nestedalloftocheckvalidationsemantics1boxedvoid) boxed class to store validated null payloads |
+| record | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedBoolean](#nestedalloftocheckvalidationsemantics1boxedboolean) boxed class to store validated boolean payloads |
+| record | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedNumber](#nestedalloftocheckvalidationsemantics1boxednumber) boxed class to store validated Number payloads |
+| record | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedString](#nestedalloftocheckvalidationsemantics1boxedstring) boxed class to store validated String payloads |
+| record | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedList](#nestedalloftocheckvalidationsemantics1boxedlist) boxed class to store validated List payloads |
+| record | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1BoxedMap](#nestedalloftocheckvalidationsemantics1boxedmap) boxed class to store validated Map payloads |
| static class | [NestedAllofToCheckValidationSemantics.NestedAllofToCheckValidationSemantics1](#nestedalloftocheckvalidationsemantics1) schema class |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [NestedAllofToCheckValidationSemantics.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NestedAllofToCheckValidationSemantics.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [NestedAllofToCheckValidationSemantics.Schema0](#schema0) schema class |
-| static class | [NestedAllofToCheckValidationSemantics.Schema01Boxed](#schema01boxed) abstract sealed validated payload class |
-| static class | [NestedAllofToCheckValidationSemantics.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
+| sealed interface | [NestedAllofToCheckValidationSemantics.Schema01Boxed](#schema01boxed) sealed interface for validated payloads |
+| record | [NestedAllofToCheckValidationSemantics.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
| static class | [NestedAllofToCheckValidationSemantics.Schema01](#schema01) schema class |
## NestedAllofToCheckValidationSemantics1Boxed
-public static abstract sealed class NestedAllofToCheckValidationSemantics1Boxed
+public sealed interface NestedAllofToCheckValidationSemantics1Boxed
permits
[NestedAllofToCheckValidationSemantics1BoxedVoid](#nestedalloftocheckvalidationsemantics1boxedvoid),
[NestedAllofToCheckValidationSemantics1BoxedBoolean](#nestedalloftocheckvalidationsemantics1boxedboolean),
@@ -40,103 +40,109 @@ permits
[NestedAllofToCheckValidationSemantics1BoxedList](#nestedalloftocheckvalidationsemantics1boxedlist),
[NestedAllofToCheckValidationSemantics1BoxedMap](#nestedalloftocheckvalidationsemantics1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NestedAllofToCheckValidationSemantics1BoxedVoid
-public static final class NestedAllofToCheckValidationSemantics1BoxedVoid
-extends [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
+public record NestedAllofToCheckValidationSemantics1BoxedVoid
+implements [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAllofToCheckValidationSemantics1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAllofToCheckValidationSemantics1BoxedBoolean
-public static final class NestedAllofToCheckValidationSemantics1BoxedBoolean
-extends [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
+public record NestedAllofToCheckValidationSemantics1BoxedBoolean
+implements [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAllofToCheckValidationSemantics1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAllofToCheckValidationSemantics1BoxedNumber
-public static final class NestedAllofToCheckValidationSemantics1BoxedNumber
-extends [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
+public record NestedAllofToCheckValidationSemantics1BoxedNumber
+implements [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAllofToCheckValidationSemantics1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAllofToCheckValidationSemantics1BoxedString
-public static final class NestedAllofToCheckValidationSemantics1BoxedString
-extends [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
+public record NestedAllofToCheckValidationSemantics1BoxedString
+implements [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAllofToCheckValidationSemantics1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAllofToCheckValidationSemantics1BoxedList
-public static final class NestedAllofToCheckValidationSemantics1BoxedList
-extends [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
+public record NestedAllofToCheckValidationSemantics1BoxedList
+implements [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAllofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAllofToCheckValidationSemantics1BoxedMap
-public static final class NestedAllofToCheckValidationSemantics1BoxedMap
-extends [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
+public record NestedAllofToCheckValidationSemantics1BoxedMap
+implements [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAllofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAllofToCheckValidationSemantics1
public static class NestedAllofToCheckValidationSemantics1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [NestedAllofToCheckValidationSemantics1BoxedBoolean](#nestedalloftocheckvalidationsemantics1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [NestedAllofToCheckValidationSemantics1BoxedMap](#nestedalloftocheckvalidationsemantics1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [NestedAllofToCheckValidationSemantics1BoxedList](#nestedalloftocheckvalidationsemantics1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [NestedAllofToCheckValidationSemantics1Boxed](#nestedalloftocheckvalidationsemantics1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -307,29 +321,32 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema01Boxed
-public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedVoid](#schema01boxedvoid)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema01BoxedVoid
-public static final class Schema01BoxedVoid
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedVoid
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01
public static class Schema01
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md
index 61a43526623..dc2de71feb0 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedAnyofToCheckValidationSemantics.md
@@ -4,34 +4,34 @@ public class NestedAnyofToCheckValidationSemantics
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed) abstract sealed validated payload class |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedVoid](#nestedanyoftocheckvalidationsemantics1boxedvoid) boxed class to store validated null payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedBoolean](#nestedanyoftocheckvalidationsemantics1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedNumber](#nestedanyoftocheckvalidationsemantics1boxednumber) boxed class to store validated Number payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedString](#nestedanyoftocheckvalidationsemantics1boxedstring) boxed class to store validated String payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedList](#nestedanyoftocheckvalidationsemantics1boxedlist) boxed class to store validated List payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedMap](#nestedanyoftocheckvalidationsemantics1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed) sealed interface for validated payloads |
+| record | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedVoid](#nestedanyoftocheckvalidationsemantics1boxedvoid) boxed class to store validated null payloads |
+| record | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedBoolean](#nestedanyoftocheckvalidationsemantics1boxedboolean) boxed class to store validated boolean payloads |
+| record | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedNumber](#nestedanyoftocheckvalidationsemantics1boxednumber) boxed class to store validated Number payloads |
+| record | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedString](#nestedanyoftocheckvalidationsemantics1boxedstring) boxed class to store validated String payloads |
+| record | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedList](#nestedanyoftocheckvalidationsemantics1boxedlist) boxed class to store validated List payloads |
+| record | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1BoxedMap](#nestedanyoftocheckvalidationsemantics1boxedmap) boxed class to store validated Map payloads |
| static class | [NestedAnyofToCheckValidationSemantics.NestedAnyofToCheckValidationSemantics1](#nestedanyoftocheckvalidationsemantics1) schema class |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NestedAnyofToCheckValidationSemantics.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [NestedAnyofToCheckValidationSemantics.Schema0](#schema0) schema class |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema01Boxed](#schema01boxed) abstract sealed validated payload class |
-| static class | [NestedAnyofToCheckValidationSemantics.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
+| sealed interface | [NestedAnyofToCheckValidationSemantics.Schema01Boxed](#schema01boxed) sealed interface for validated payloads |
+| record | [NestedAnyofToCheckValidationSemantics.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
| static class | [NestedAnyofToCheckValidationSemantics.Schema01](#schema01) schema class |
## NestedAnyofToCheckValidationSemantics1Boxed
-public static abstract sealed class NestedAnyofToCheckValidationSemantics1Boxed
+public sealed interface NestedAnyofToCheckValidationSemantics1Boxed
permits
[NestedAnyofToCheckValidationSemantics1BoxedVoid](#nestedanyoftocheckvalidationsemantics1boxedvoid),
[NestedAnyofToCheckValidationSemantics1BoxedBoolean](#nestedanyoftocheckvalidationsemantics1boxedboolean),
@@ -40,103 +40,109 @@ permits
[NestedAnyofToCheckValidationSemantics1BoxedList](#nestedanyoftocheckvalidationsemantics1boxedlist),
[NestedAnyofToCheckValidationSemantics1BoxedMap](#nestedanyoftocheckvalidationsemantics1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NestedAnyofToCheckValidationSemantics1BoxedVoid
-public static final class NestedAnyofToCheckValidationSemantics1BoxedVoid
-extends [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
+public record NestedAnyofToCheckValidationSemantics1BoxedVoid
+implements [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAnyofToCheckValidationSemantics1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAnyofToCheckValidationSemantics1BoxedBoolean
-public static final class NestedAnyofToCheckValidationSemantics1BoxedBoolean
-extends [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
+public record NestedAnyofToCheckValidationSemantics1BoxedBoolean
+implements [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAnyofToCheckValidationSemantics1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAnyofToCheckValidationSemantics1BoxedNumber
-public static final class NestedAnyofToCheckValidationSemantics1BoxedNumber
-extends [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
+public record NestedAnyofToCheckValidationSemantics1BoxedNumber
+implements [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAnyofToCheckValidationSemantics1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAnyofToCheckValidationSemantics1BoxedString
-public static final class NestedAnyofToCheckValidationSemantics1BoxedString
-extends [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
+public record NestedAnyofToCheckValidationSemantics1BoxedString
+implements [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAnyofToCheckValidationSemantics1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAnyofToCheckValidationSemantics1BoxedList
-public static final class NestedAnyofToCheckValidationSemantics1BoxedList
-extends [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
+public record NestedAnyofToCheckValidationSemantics1BoxedList
+implements [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAnyofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAnyofToCheckValidationSemantics1BoxedMap
-public static final class NestedAnyofToCheckValidationSemantics1BoxedMap
-extends [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
+public record NestedAnyofToCheckValidationSemantics1BoxedMap
+implements [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedAnyofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedAnyofToCheckValidationSemantics1
public static class NestedAnyofToCheckValidationSemantics1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [NestedAnyofToCheckValidationSemantics1BoxedBoolean](#nestedanyoftocheckvalidationsemantics1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [NestedAnyofToCheckValidationSemantics1BoxedMap](#nestedanyoftocheckvalidationsemantics1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [NestedAnyofToCheckValidationSemantics1BoxedList](#nestedanyoftocheckvalidationsemantics1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [NestedAnyofToCheckValidationSemantics1Boxed](#nestedanyoftocheckvalidationsemantics1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -307,29 +321,32 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema01Boxed
-public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedVoid](#schema01boxedvoid)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema01BoxedVoid
-public static final class Schema01BoxedVoid
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedVoid
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01
public static class Schema01
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 36a26e8d039..7f7efb8dd5f 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
@@ -4,7 +4,7 @@ public class NestedItems
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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 list payloads, extends FrozenList
- classes to build inputs for list payloads
@@ -12,52 +12,53 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NestedItems.NestedItems1Boxed](#nesteditems1boxed) abstract sealed validated payload class |
-| static class | [NestedItems.NestedItems1BoxedList](#nesteditems1boxedlist) boxed class to store validated List payloads |
+| sealed interface | [NestedItems.NestedItems1Boxed](#nesteditems1boxed) sealed interface for validated payloads |
+| record | [NestedItems.NestedItems1BoxedList](#nesteditems1boxedlist) boxed class to store validated List payloads |
| static class | [NestedItems.NestedItems1](#nesteditems1) schema class |
| static class | [NestedItems.NestedItemsListBuilder](#nesteditemslistbuilder) builder for List payloads |
| static class | [NestedItems.NestedItemsList](#nesteditemslist) output class for List payloads |
-| static class | [NestedItems.ItemsBoxed](#itemsboxed) abstract sealed validated payload class |
-| static class | [NestedItems.ItemsBoxedList](#itemsboxedlist) boxed class to store validated List payloads |
+| sealed interface | [NestedItems.ItemsBoxed](#itemsboxed) sealed interface for validated payloads |
+| record | [NestedItems.ItemsBoxedList](#itemsboxedlist) boxed class to store validated List payloads |
| static class | [NestedItems.Items](#items) schema class |
| static class | [NestedItems.ItemsListBuilder2](#itemslistbuilder2) builder for List payloads |
| static class | [NestedItems.ItemsList2](#itemslist2) output class for List payloads |
-| static class | [NestedItems.Items1Boxed](#items1boxed) abstract sealed validated payload class |
-| static class | [NestedItems.Items1BoxedList](#items1boxedlist) boxed class to store validated List payloads |
+| sealed interface | [NestedItems.Items1Boxed](#items1boxed) sealed interface for validated payloads |
+| record | [NestedItems.Items1BoxedList](#items1boxedlist) boxed class to store validated List payloads |
| static class | [NestedItems.Items1](#items1) schema class |
| static class | [NestedItems.ItemsListBuilder1](#itemslistbuilder1) builder for List payloads |
| static class | [NestedItems.ItemsList1](#itemslist1) output class for List payloads |
-| static class | [NestedItems.Items2Boxed](#items2boxed) abstract sealed validated payload class |
-| static class | [NestedItems.Items2BoxedList](#items2boxedlist) boxed class to store validated List payloads |
+| sealed interface | [NestedItems.Items2Boxed](#items2boxed) sealed interface for validated payloads |
+| record | [NestedItems.Items2BoxedList](#items2boxedlist) boxed class to store validated List payloads |
| static class | [NestedItems.Items2](#items2) schema class |
| static class | [NestedItems.ItemsListBuilder](#itemslistbuilder) builder for List payloads |
| static class | [NestedItems.ItemsList](#itemslist) output class for List payloads |
-| static class | [NestedItems.Items3Boxed](#items3boxed) abstract sealed validated payload class |
-| static class | [NestedItems.Items3BoxedNumber](#items3boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [NestedItems.Items3Boxed](#items3boxed) sealed interface for validated payloads |
+| record | [NestedItems.Items3BoxedNumber](#items3boxednumber) boxed class to store validated Number payloads |
| static class | [NestedItems.Items3](#items3) schema class |
## NestedItems1Boxed
-public static abstract sealed class NestedItems1Boxed
+public sealed interface NestedItems1Boxed
permits
[NestedItems1BoxedList](#nesteditems1boxedlist)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NestedItems1BoxedList
-public static final class NestedItems1BoxedList
-extends [NestedItems1Boxed](#nesteditems1boxed)
+public record NestedItems1BoxedList
+implements [NestedItems1Boxed](#nesteditems1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedItems1BoxedList([NestedItemsList](#nesteditemslist) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [NestedItemsList](#nesteditemslist) | data validated payload |
+| [NestedItemsList](#nesteditemslist) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedItems1
public static class NestedItems1
@@ -109,7 +110,9 @@ NestedItems.NestedItemsList validatedPayload =
| ----------------- | ---------------------- |
| [NestedItemsList](#nesteditemslist) | validate([List>](#nesteditemslistbuilder) arg, SchemaConfiguration configuration) |
| [NestedItems1BoxedList](#nesteditems1boxedlist) | validateAndBox([List>](#nesteditemslistbuilder) arg, SchemaConfiguration configuration) |
+| [NestedItems1Boxed](#nesteditems1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## NestedItemsListBuilder
public class NestedItemsListBuilder
builder for `List>>>`
@@ -140,27 +143,28 @@ A class to store validated List payloads
| static [NestedItemsList](#nesteditemslist) | of([List>>>](#nesteditemslistbuilder) arg, SchemaConfiguration configuration) |
## ItemsBoxed
-public static abstract sealed class ItemsBoxed
+public sealed interface ItemsBoxed
permits
[ItemsBoxedList](#itemsboxedlist)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ItemsBoxedList
-public static final class ItemsBoxedList
-extends [ItemsBoxed](#itemsboxed)
+public record ItemsBoxedList
+implements [ItemsBoxed](#itemsboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ItemsBoxedList([ItemsList2](#itemslist2) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [ItemsList2](#itemslist2) | data validated payload |
+| [ItemsList2](#itemslist2) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Items
public static class Items
@@ -210,7 +214,9 @@ NestedItems.ItemsList2 validatedPayload =
| ----------------- | ---------------------- |
| [ItemsList2](#itemslist2) | validate([List>](#itemslistbuilder2) arg, SchemaConfiguration configuration) |
| [ItemsBoxedList](#itemsboxedlist) | validateAndBox([List>](#itemslistbuilder2) arg, SchemaConfiguration configuration) |
+| [ItemsBoxed](#itemsboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## ItemsListBuilder2
public class ItemsListBuilder2
builder for `List>>`
@@ -241,27 +247,28 @@ A class to store validated List payloads
| static [ItemsList2](#itemslist2) | of([List>>](#itemslistbuilder2) arg, SchemaConfiguration configuration) |
## Items1Boxed
-public static abstract sealed class Items1Boxed
+public sealed interface Items1Boxed
permits
[Items1BoxedList](#items1boxedlist)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Items1BoxedList
-public static final class Items1BoxedList
-extends [Items1Boxed](#items1boxed)
+public record Items1BoxedList
+implements [Items1Boxed](#items1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Items1BoxedList([ItemsList1](#itemslist1) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [ItemsList1](#itemslist1) | data validated payload |
+| [ItemsList1](#itemslist1) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Items1
public static class Items1
@@ -309,7 +316,9 @@ NestedItems.ItemsList1 validatedPayload =
| ----------------- | ---------------------- |
| [ItemsList1](#itemslist1) | validate([List>](#itemslistbuilder1) arg, SchemaConfiguration configuration) |
| [Items1BoxedList](#items1boxedlist) | validateAndBox([List>](#itemslistbuilder1) arg, SchemaConfiguration configuration) |
+| [Items1Boxed](#items1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## ItemsListBuilder1
public class ItemsListBuilder1
builder for `List>`
@@ -340,27 +349,28 @@ A class to store validated List payloads
| static [ItemsList1](#itemslist1) | of([List>](#itemslistbuilder1) arg, SchemaConfiguration configuration) |
## Items2Boxed
-public static abstract sealed class Items2Boxed
+public sealed interface Items2Boxed
permits
[Items2BoxedList](#items2boxedlist)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Items2BoxedList
-public static final class Items2BoxedList
-extends [Items2Boxed](#items2boxed)
+public record Items2BoxedList
+implements [Items2Boxed](#items2boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Items2BoxedList([ItemsList](#itemslist) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [ItemsList](#itemslist) | data validated payload |
+| [ItemsList](#itemslist) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Items2
public static class Items2
@@ -405,7 +415,9 @@ NestedItems.ItemsList validatedPayload =
| ----------------- | ---------------------- |
| [ItemsList](#itemslist) | validate([List>](#itemslistbuilder) arg, SchemaConfiguration configuration) |
| [Items2BoxedList](#items2boxedlist) | validateAndBox([List>](#itemslistbuilder) arg, SchemaConfiguration configuration) |
+| [Items2Boxed](#items2boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## ItemsListBuilder
public class ItemsListBuilder
builder for `List`
@@ -439,27 +451,28 @@ A class to store validated List payloads
| static [ItemsList](#itemslist) | of([List](#itemslistbuilder) arg, SchemaConfiguration configuration) |
## Items3Boxed
-public static abstract sealed class Items3Boxed
+public sealed interface Items3Boxed
permits
[Items3BoxedNumber](#items3boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Items3BoxedNumber
-public static final class Items3BoxedNumber
-extends [Items3Boxed](#items3boxed)
+public record Items3BoxedNumber
+implements [Items3Boxed](#items3boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Items3BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Items3
public static class Items3
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md
index 0bf18e4dad3..ee3e1712834 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NestedOneofToCheckValidationSemantics.md
@@ -4,34 +4,34 @@ public class NestedOneofToCheckValidationSemantics
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed) abstract sealed validated payload class |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedVoid](#nestedoneoftocheckvalidationsemantics1boxedvoid) boxed class to store validated null payloads |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedBoolean](#nestedoneoftocheckvalidationsemantics1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedNumber](#nestedoneoftocheckvalidationsemantics1boxednumber) boxed class to store validated Number payloads |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedString](#nestedoneoftocheckvalidationsemantics1boxedstring) boxed class to store validated String payloads |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedList](#nestedoneoftocheckvalidationsemantics1boxedlist) boxed class to store validated List payloads |
-| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedMap](#nestedoneoftocheckvalidationsemantics1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed) sealed interface for validated payloads |
+| record | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedVoid](#nestedoneoftocheckvalidationsemantics1boxedvoid) boxed class to store validated null payloads |
+| record | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedBoolean](#nestedoneoftocheckvalidationsemantics1boxedboolean) boxed class to store validated boolean payloads |
+| record | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedNumber](#nestedoneoftocheckvalidationsemantics1boxednumber) boxed class to store validated Number payloads |
+| record | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedString](#nestedoneoftocheckvalidationsemantics1boxedstring) boxed class to store validated String payloads |
+| record | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedList](#nestedoneoftocheckvalidationsemantics1boxedlist) boxed class to store validated List payloads |
+| record | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1BoxedMap](#nestedoneoftocheckvalidationsemantics1boxedmap) boxed class to store validated Map payloads |
| static class | [NestedOneofToCheckValidationSemantics.NestedOneofToCheckValidationSemantics1](#nestedoneoftocheckvalidationsemantics1) schema class |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [NestedOneofToCheckValidationSemantics.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NestedOneofToCheckValidationSemantics.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [NestedOneofToCheckValidationSemantics.Schema0](#schema0) schema class |
-| static class | [NestedOneofToCheckValidationSemantics.Schema01Boxed](#schema01boxed) abstract sealed validated payload class |
-| static class | [NestedOneofToCheckValidationSemantics.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
+| sealed interface | [NestedOneofToCheckValidationSemantics.Schema01Boxed](#schema01boxed) sealed interface for validated payloads |
+| record | [NestedOneofToCheckValidationSemantics.Schema01BoxedVoid](#schema01boxedvoid) boxed class to store validated null payloads |
| static class | [NestedOneofToCheckValidationSemantics.Schema01](#schema01) schema class |
## NestedOneofToCheckValidationSemantics1Boxed
-public static abstract sealed class NestedOneofToCheckValidationSemantics1Boxed
+public sealed interface NestedOneofToCheckValidationSemantics1Boxed
permits
[NestedOneofToCheckValidationSemantics1BoxedVoid](#nestedoneoftocheckvalidationsemantics1boxedvoid),
[NestedOneofToCheckValidationSemantics1BoxedBoolean](#nestedoneoftocheckvalidationsemantics1boxedboolean),
@@ -40,103 +40,109 @@ permits
[NestedOneofToCheckValidationSemantics1BoxedList](#nestedoneoftocheckvalidationsemantics1boxedlist),
[NestedOneofToCheckValidationSemantics1BoxedMap](#nestedoneoftocheckvalidationsemantics1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NestedOneofToCheckValidationSemantics1BoxedVoid
-public static final class NestedOneofToCheckValidationSemantics1BoxedVoid
-extends [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
+public record NestedOneofToCheckValidationSemantics1BoxedVoid
+implements [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedOneofToCheckValidationSemantics1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedOneofToCheckValidationSemantics1BoxedBoolean
-public static final class NestedOneofToCheckValidationSemantics1BoxedBoolean
-extends [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
+public record NestedOneofToCheckValidationSemantics1BoxedBoolean
+implements [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedOneofToCheckValidationSemantics1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedOneofToCheckValidationSemantics1BoxedNumber
-public static final class NestedOneofToCheckValidationSemantics1BoxedNumber
-extends [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
+public record NestedOneofToCheckValidationSemantics1BoxedNumber
+implements [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedOneofToCheckValidationSemantics1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedOneofToCheckValidationSemantics1BoxedString
-public static final class NestedOneofToCheckValidationSemantics1BoxedString
-extends [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
+public record NestedOneofToCheckValidationSemantics1BoxedString
+implements [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedOneofToCheckValidationSemantics1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedOneofToCheckValidationSemantics1BoxedList
-public static final class NestedOneofToCheckValidationSemantics1BoxedList
-extends [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
+public record NestedOneofToCheckValidationSemantics1BoxedList
+implements [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedOneofToCheckValidationSemantics1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedOneofToCheckValidationSemantics1BoxedMap
-public static final class NestedOneofToCheckValidationSemantics1BoxedMap
-extends [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
+public record NestedOneofToCheckValidationSemantics1BoxedMap
+implements [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NestedOneofToCheckValidationSemantics1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NestedOneofToCheckValidationSemantics1
public static class NestedOneofToCheckValidationSemantics1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [NestedOneofToCheckValidationSemantics1BoxedBoolean](#nestedoneoftocheckvalidationsemantics1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [NestedOneofToCheckValidationSemantics1BoxedMap](#nestedoneoftocheckvalidationsemantics1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [NestedOneofToCheckValidationSemantics1BoxedList](#nestedoneoftocheckvalidationsemantics1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [NestedOneofToCheckValidationSemantics1Boxed](#nestedoneoftocheckvalidationsemantics1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -307,29 +321,32 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema01Boxed
-public static abstract sealed class Schema01Boxed
+public sealed interface Schema01Boxed
permits
[Schema01BoxedVoid](#schema01boxedvoid)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema01BoxedVoid
-public static final class Schema01BoxedVoid
-extends [Schema01Boxed](#schema01boxed)
+public record Schema01BoxedVoid
+implements [Schema01Boxed](#schema01boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema01BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema01
public static class Schema01
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Not.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Not.md
index e5bf572f8bd..8358d5d2f6e 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Not.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Not.md
@@ -4,26 +4,26 @@ public class Not
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Not.Not1Boxed](#not1boxed) abstract sealed validated payload class |
-| static class | [Not.Not1BoxedVoid](#not1boxedvoid) boxed class to store validated null payloads |
-| static class | [Not.Not1BoxedBoolean](#not1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Not.Not1BoxedNumber](#not1boxednumber) boxed class to store validated Number payloads |
-| static class | [Not.Not1BoxedString](#not1boxedstring) boxed class to store validated String payloads |
-| static class | [Not.Not1BoxedList](#not1boxedlist) boxed class to store validated List payloads |
-| static class | [Not.Not1BoxedMap](#not1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Not.Not1Boxed](#not1boxed) sealed interface for validated payloads |
+| record | [Not.Not1BoxedVoid](#not1boxedvoid) boxed class to store validated null payloads |
+| record | [Not.Not1BoxedBoolean](#not1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Not.Not1BoxedNumber](#not1boxednumber) boxed class to store validated Number payloads |
+| record | [Not.Not1BoxedString](#not1boxedstring) boxed class to store validated String payloads |
+| record | [Not.Not1BoxedList](#not1boxedlist) boxed class to store validated List payloads |
+| record | [Not.Not1BoxedMap](#not1boxedmap) boxed class to store validated Map payloads |
| static class | [Not.Not1](#not1) schema class |
-| static class | [Not.Not2Boxed](#not2boxed) abstract sealed validated payload class |
-| static class | [Not.Not2BoxedNumber](#not2boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [Not.Not2Boxed](#not2boxed) sealed interface for validated payloads |
+| record | [Not.Not2BoxedNumber](#not2boxednumber) boxed class to store validated Number payloads |
| static class | [Not.Not2](#not2) schema class |
## Not1Boxed
-public static abstract sealed class Not1Boxed
+public sealed interface Not1Boxed
permits
[Not1BoxedVoid](#not1boxedvoid),
[Not1BoxedBoolean](#not1boxedboolean),
@@ -32,103 +32,109 @@ permits
[Not1BoxedList](#not1boxedlist),
[Not1BoxedMap](#not1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Not1BoxedVoid
-public static final class Not1BoxedVoid
-extends [Not1Boxed](#not1boxed)
+public record Not1BoxedVoid
+implements [Not1Boxed](#not1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not1BoxedBoolean
-public static final class Not1BoxedBoolean
-extends [Not1Boxed](#not1boxed)
+public record Not1BoxedBoolean
+implements [Not1Boxed](#not1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not1BoxedNumber
-public static final class Not1BoxedNumber
-extends [Not1Boxed](#not1boxed)
+public record Not1BoxedNumber
+implements [Not1Boxed](#not1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not1BoxedString
-public static final class Not1BoxedString
-extends [Not1Boxed](#not1boxed)
+public record Not1BoxedString
+implements [Not1Boxed](#not1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not1BoxedList
-public static final class Not1BoxedList
-extends [Not1Boxed](#not1boxed)
+public record Not1BoxedList
+implements [Not1Boxed](#not1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not1BoxedMap
-public static final class Not1BoxedMap
-extends [Not1Boxed](#not1boxed)
+public record Not1BoxedMap
+implements [Not1Boxed](#not1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not1
public static class Not1
@@ -160,29 +166,32 @@ A schema class that validates payloads
| [Not1BoxedBoolean](#not1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Not1BoxedMap](#not1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Not1BoxedList](#not1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Not1Boxed](#not1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Not2Boxed
-public static abstract sealed class Not2Boxed
+public sealed interface Not2Boxed
permits
[Not2BoxedNumber](#not2boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Not2BoxedNumber
-public static final class Not2BoxedNumber
-extends [Not2Boxed](#not2boxed)
+public record Not2BoxedNumber
+implements [Not2Boxed](#not2boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Not2BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not2
public static class Not2
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 3e0871f1245..3b1f33fa85c 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
@@ -4,7 +4,7 @@ public class NotMoreComplexSchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,25 +12,25 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed) abstract sealed validated payload class |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedVoid](#notmorecomplexschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedBoolean](#notmorecomplexschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedNumber](#notmorecomplexschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedString](#notmorecomplexschema1boxedstring) boxed class to store validated String payloads |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedList](#notmorecomplexschema1boxedlist) boxed class to store validated List payloads |
-| static class | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedMap](#notmorecomplexschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NotMoreComplexSchema.NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed) sealed interface for validated payloads |
+| record | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedVoid](#notmorecomplexschema1boxedvoid) boxed class to store validated null payloads |
+| record | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedBoolean](#notmorecomplexschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedNumber](#notmorecomplexschema1boxednumber) boxed class to store validated Number payloads |
+| record | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedString](#notmorecomplexschema1boxedstring) boxed class to store validated String payloads |
+| record | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedList](#notmorecomplexschema1boxedlist) boxed class to store validated List payloads |
+| record | [NotMoreComplexSchema.NotMoreComplexSchema1BoxedMap](#notmorecomplexschema1boxedmap) boxed class to store validated Map payloads |
| static class | [NotMoreComplexSchema.NotMoreComplexSchema1](#notmorecomplexschema1) schema class |
-| static class | [NotMoreComplexSchema.NotBoxed](#notboxed) abstract sealed validated payload class |
-| static class | [NotMoreComplexSchema.NotBoxedMap](#notboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [NotMoreComplexSchema.NotBoxed](#notboxed) sealed interface for validated payloads |
+| record | [NotMoreComplexSchema.NotBoxedMap](#notboxedmap) boxed class to store validated Map payloads |
| static class | [NotMoreComplexSchema.Not](#not) schema class |
| static class | [NotMoreComplexSchema.NotMapBuilder](#notmapbuilder) builder for Map payloads |
| static class | [NotMoreComplexSchema.NotMap](#notmap) output class for Map payloads |
-| static class | [NotMoreComplexSchema.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [NotMoreComplexSchema.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| sealed interface | [NotMoreComplexSchema.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [NotMoreComplexSchema.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
| static class | [NotMoreComplexSchema.Foo](#foo) schema class |
## NotMoreComplexSchema1Boxed
-public static abstract sealed class NotMoreComplexSchema1Boxed
+public sealed interface NotMoreComplexSchema1Boxed
permits
[NotMoreComplexSchema1BoxedVoid](#notmorecomplexschema1boxedvoid),
[NotMoreComplexSchema1BoxedBoolean](#notmorecomplexschema1boxedboolean),
@@ -39,103 +39,109 @@ permits
[NotMoreComplexSchema1BoxedList](#notmorecomplexschema1boxedlist),
[NotMoreComplexSchema1BoxedMap](#notmorecomplexschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NotMoreComplexSchema1BoxedVoid
-public static final class NotMoreComplexSchema1BoxedVoid
-extends [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
+public record NotMoreComplexSchema1BoxedVoid
+implements [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotMoreComplexSchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NotMoreComplexSchema1BoxedBoolean
-public static final class NotMoreComplexSchema1BoxedBoolean
-extends [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
+public record NotMoreComplexSchema1BoxedBoolean
+implements [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotMoreComplexSchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NotMoreComplexSchema1BoxedNumber
-public static final class NotMoreComplexSchema1BoxedNumber
-extends [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
+public record NotMoreComplexSchema1BoxedNumber
+implements [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotMoreComplexSchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NotMoreComplexSchema1BoxedString
-public static final class NotMoreComplexSchema1BoxedString
-extends [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
+public record NotMoreComplexSchema1BoxedString
+implements [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotMoreComplexSchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NotMoreComplexSchema1BoxedList
-public static final class NotMoreComplexSchema1BoxedList
-extends [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
+public record NotMoreComplexSchema1BoxedList
+implements [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotMoreComplexSchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NotMoreComplexSchema1BoxedMap
-public static final class NotMoreComplexSchema1BoxedMap
-extends [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
+public record NotMoreComplexSchema1BoxedMap
+implements [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotMoreComplexSchema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NotMoreComplexSchema1
public static class NotMoreComplexSchema1
@@ -167,29 +173,32 @@ A schema class that validates payloads
| [NotMoreComplexSchema1BoxedBoolean](#notmorecomplexschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [NotMoreComplexSchema1BoxedMap](#notmorecomplexschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [NotMoreComplexSchema1BoxedList](#notmorecomplexschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [NotMoreComplexSchema1Boxed](#notmorecomplexschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## NotBoxed
-public static abstract sealed class NotBoxed
+public sealed interface NotBoxed
permits
[NotBoxedMap](#notboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NotBoxedMap
-public static final class NotBoxedMap
-extends [NotBoxed](#notboxed)
+public record NotBoxedMap
+implements [NotBoxed](#notboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NotBoxedMap([NotMap](#notmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [NotMap](#notmap) | data validated payload |
+| [NotMap](#notmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Not
public static class Not
@@ -234,7 +243,9 @@ NotMoreComplexSchema.NotMap validatedPayload =
| ----------------- | ---------------------- |
| [NotMap](#notmap) | validate([Map<?, ?>](#notmapbuilder) arg, SchemaConfiguration configuration) |
| [NotBoxedMap](#notboxedmap) | validateAndBox([Map<?, ?>](#notmapbuilder) arg, SchemaConfiguration configuration) |
+| [NotBoxed](#notboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## NotMapBuilder
public class NotMapBuilder
builder for `Map`
@@ -275,27 +286,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedString](#fooboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
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 eb1cfff98ed..78007c6f372 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
@@ -4,40 +4,41 @@ public class NulCharactersInStrings
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NulCharactersInStrings.NulCharactersInStrings1Boxed](#nulcharactersinstrings1boxed) abstract sealed validated payload class |
-| static class | [NulCharactersInStrings.NulCharactersInStrings1BoxedString](#nulcharactersinstrings1boxedstring) boxed class to store validated String payloads |
+| sealed interface | [NulCharactersInStrings.NulCharactersInStrings1Boxed](#nulcharactersinstrings1boxed) sealed interface for validated payloads |
+| record | [NulCharactersInStrings.NulCharactersInStrings1BoxedString](#nulcharactersinstrings1boxedstring) boxed class to store validated String payloads |
| static class | [NulCharactersInStrings.NulCharactersInStrings1](#nulcharactersinstrings1) schema class |
| enum | [NulCharactersInStrings.StringNulCharactersInStringsEnums](#stringnulcharactersinstringsenums) String enum |
## NulCharactersInStrings1Boxed
-public static abstract sealed class NulCharactersInStrings1Boxed
+public sealed interface NulCharactersInStrings1Boxed
permits
[NulCharactersInStrings1BoxedString](#nulcharactersinstrings1boxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NulCharactersInStrings1BoxedString
-public static final class NulCharactersInStrings1BoxedString
-extends [NulCharactersInStrings1Boxed](#nulcharactersinstrings1boxed)
+public record NulCharactersInStrings1BoxedString
+implements [NulCharactersInStrings1Boxed](#nulcharactersinstrings1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NulCharactersInStrings1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NulCharactersInStrings1
public static class NulCharactersInStrings1
@@ -79,7 +80,9 @@ String validatedPayload = NulCharactersInStrings.NulCharactersInStrings1.validat
| String | validate(String arg, SchemaConfiguration configuration) |
| String | validate([StringNulCharactersInStringsEnums](#stringnulcharactersinstringsenums) arg, SchemaConfiguration configuration) |
| [NulCharactersInStrings1BoxedString](#nulcharactersinstrings1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [NulCharactersInStrings1Boxed](#nulcharactersinstrings1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## StringNulCharactersInStringsEnums
public enum StringNulCharactersInStringsEnums
extends `Enum`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md
index ac85cb6749c..a7bf060e212 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NullTypeMatchesOnlyTheNullObject.md
@@ -4,38 +4,39 @@ public class NullTypeMatchesOnlyTheNullObject
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1Boxed](#nulltypematchesonlythenullobject1boxed) abstract sealed validated payload class |
-| static class | [NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1BoxedVoid](#nulltypematchesonlythenullobject1boxedvoid) boxed class to store validated null payloads |
+| sealed interface | [NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1Boxed](#nulltypematchesonlythenullobject1boxed) sealed interface for validated payloads |
+| record | [NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1BoxedVoid](#nulltypematchesonlythenullobject1boxedvoid) boxed class to store validated null payloads |
| static class | [NullTypeMatchesOnlyTheNullObject.NullTypeMatchesOnlyTheNullObject1](#nulltypematchesonlythenullobject1) schema class |
## NullTypeMatchesOnlyTheNullObject1Boxed
-public static abstract sealed class NullTypeMatchesOnlyTheNullObject1Boxed
+public sealed interface NullTypeMatchesOnlyTheNullObject1Boxed
permits
[NullTypeMatchesOnlyTheNullObject1BoxedVoid](#nulltypematchesonlythenullobject1boxedvoid)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NullTypeMatchesOnlyTheNullObject1BoxedVoid
-public static final class NullTypeMatchesOnlyTheNullObject1BoxedVoid
-extends [NullTypeMatchesOnlyTheNullObject1Boxed](#nulltypematchesonlythenullobject1boxed)
+public record NullTypeMatchesOnlyTheNullObject1BoxedVoid
+implements [NullTypeMatchesOnlyTheNullObject1Boxed](#nulltypematchesonlythenullobject1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NullTypeMatchesOnlyTheNullObject1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NullTypeMatchesOnlyTheNullObject1
public static class NullTypeMatchesOnlyTheNullObject1
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md
index d668c33c2de..76a1b65da1a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/NumberTypeMatchesNumbers.md
@@ -4,38 +4,39 @@ public class NumberTypeMatchesNumbers
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [NumberTypeMatchesNumbers.NumberTypeMatchesNumbers1Boxed](#numbertypematchesnumbers1boxed) abstract sealed validated payload class |
-| static class | [NumberTypeMatchesNumbers.NumberTypeMatchesNumbers1BoxedNumber](#numbertypematchesnumbers1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [NumberTypeMatchesNumbers.NumberTypeMatchesNumbers1Boxed](#numbertypematchesnumbers1boxed) sealed interface for validated payloads |
+| record | [NumberTypeMatchesNumbers.NumberTypeMatchesNumbers1BoxedNumber](#numbertypematchesnumbers1boxednumber) boxed class to store validated Number payloads |
| static class | [NumberTypeMatchesNumbers.NumberTypeMatchesNumbers1](#numbertypematchesnumbers1) schema class |
## NumberTypeMatchesNumbers1Boxed
-public static abstract sealed class NumberTypeMatchesNumbers1Boxed
+public sealed interface NumberTypeMatchesNumbers1Boxed
permits
[NumberTypeMatchesNumbers1BoxedNumber](#numbertypematchesnumbers1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## NumberTypeMatchesNumbers1BoxedNumber
-public static final class NumberTypeMatchesNumbers1BoxedNumber
-extends [NumberTypeMatchesNumbers1Boxed](#numbertypematchesnumbers1boxed)
+public record NumberTypeMatchesNumbers1BoxedNumber
+implements [NumberTypeMatchesNumbers1Boxed](#numbertypematchesnumbers1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| NumberTypeMatchesNumbers1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## NumberTypeMatchesNumbers1
public static class NumberTypeMatchesNumbers1
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md
index caba7bd3cae..2427b5219d5 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectPropertiesValidation.md
@@ -4,7 +4,7 @@ public class ObjectPropertiesValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,25 +12,25 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed) abstract sealed validated payload class |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedVoid](#objectpropertiesvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedBoolean](#objectpropertiesvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedNumber](#objectpropertiesvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedString](#objectpropertiesvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedList](#objectpropertiesvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedMap](#objectpropertiesvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ObjectPropertiesValidation.ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed) sealed interface for validated payloads |
+| record | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedVoid](#objectpropertiesvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedBoolean](#objectpropertiesvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedNumber](#objectpropertiesvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedString](#objectpropertiesvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedList](#objectpropertiesvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [ObjectPropertiesValidation.ObjectPropertiesValidation1BoxedMap](#objectpropertiesvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [ObjectPropertiesValidation.ObjectPropertiesValidation1](#objectpropertiesvalidation1) schema class |
| static class | [ObjectPropertiesValidation.ObjectPropertiesValidationMapBuilder](#objectpropertiesvalidationmapbuilder) builder for Map payloads |
| static class | [ObjectPropertiesValidation.ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) output class for Map payloads |
-| static class | [ObjectPropertiesValidation.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [ObjectPropertiesValidation.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
+| sealed interface | [ObjectPropertiesValidation.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [ObjectPropertiesValidation.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
| static class | [ObjectPropertiesValidation.Bar](#bar) schema class |
-| static class | [ObjectPropertiesValidation.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [ObjectPropertiesValidation.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [ObjectPropertiesValidation.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [ObjectPropertiesValidation.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
| static class | [ObjectPropertiesValidation.Foo](#foo) schema class |
## ObjectPropertiesValidation1Boxed
-public static abstract sealed class ObjectPropertiesValidation1Boxed
+public sealed interface ObjectPropertiesValidation1Boxed
permits
[ObjectPropertiesValidation1BoxedVoid](#objectpropertiesvalidation1boxedvoid),
[ObjectPropertiesValidation1BoxedBoolean](#objectpropertiesvalidation1boxedboolean),
@@ -39,103 +39,109 @@ permits
[ObjectPropertiesValidation1BoxedList](#objectpropertiesvalidation1boxedlist),
[ObjectPropertiesValidation1BoxedMap](#objectpropertiesvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ObjectPropertiesValidation1BoxedVoid
-public static final class ObjectPropertiesValidation1BoxedVoid
-extends [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
+public record ObjectPropertiesValidation1BoxedVoid
+implements [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectPropertiesValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectPropertiesValidation1BoxedBoolean
-public static final class ObjectPropertiesValidation1BoxedBoolean
-extends [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
+public record ObjectPropertiesValidation1BoxedBoolean
+implements [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectPropertiesValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectPropertiesValidation1BoxedNumber
-public static final class ObjectPropertiesValidation1BoxedNumber
-extends [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
+public record ObjectPropertiesValidation1BoxedNumber
+implements [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectPropertiesValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectPropertiesValidation1BoxedString
-public static final class ObjectPropertiesValidation1BoxedString
-extends [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
+public record ObjectPropertiesValidation1BoxedString
+implements [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectPropertiesValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectPropertiesValidation1BoxedList
-public static final class ObjectPropertiesValidation1BoxedList
-extends [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
+public record ObjectPropertiesValidation1BoxedList
+implements [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectPropertiesValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectPropertiesValidation1BoxedMap
-public static final class ObjectPropertiesValidation1BoxedMap
-extends [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
+public record ObjectPropertiesValidation1BoxedMap
+implements [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectPropertiesValidation1BoxedMap([ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) | data validated payload |
+| [ObjectPropertiesValidationMap](#objectpropertiesvalidationmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectPropertiesValidation1
public static class ObjectPropertiesValidation1
@@ -167,7 +173,9 @@ A schema class that validates payloads
| [ObjectPropertiesValidation1BoxedBoolean](#objectpropertiesvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [ObjectPropertiesValidation1BoxedMap](#objectpropertiesvalidation1boxedmap) | validateAndBox([Map<?, ?>](#objectpropertiesvalidationmapbuilder) arg, SchemaConfiguration configuration) |
| [ObjectPropertiesValidation1BoxedList](#objectpropertiesvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [ObjectPropertiesValidation1Boxed](#objectpropertiesvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## ObjectPropertiesValidationMapBuilder
public class ObjectPropertiesValidationMapBuilder
builder for `Map`
@@ -213,27 +221,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedString](#barboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedString
-public static final class BarBoxedString
-extends [BarBoxed](#barboxed)
+public record BarBoxedString
+implements [BarBoxed](#barboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -247,27 +256,28 @@ A schema class that validates payloads
| validateAndBox |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedNumber](#fooboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md
index 1e9b8c9a96d..f169645577b 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/ObjectTypeMatchesObjects.md
@@ -4,38 +4,39 @@ public class ObjectTypeMatchesObjects
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [ObjectTypeMatchesObjects.ObjectTypeMatchesObjects1Boxed](#objecttypematchesobjects1boxed) abstract sealed validated payload class |
-| static class | [ObjectTypeMatchesObjects.ObjectTypeMatchesObjects1BoxedMap](#objecttypematchesobjects1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [ObjectTypeMatchesObjects.ObjectTypeMatchesObjects1Boxed](#objecttypematchesobjects1boxed) sealed interface for validated payloads |
+| record | [ObjectTypeMatchesObjects.ObjectTypeMatchesObjects1BoxedMap](#objecttypematchesobjects1boxedmap) boxed class to store validated Map payloads |
| static class | [ObjectTypeMatchesObjects.ObjectTypeMatchesObjects1](#objecttypematchesobjects1) schema class |
## ObjectTypeMatchesObjects1Boxed
-public static abstract sealed class ObjectTypeMatchesObjects1Boxed
+public sealed interface ObjectTypeMatchesObjects1Boxed
permits
[ObjectTypeMatchesObjects1BoxedMap](#objecttypematchesobjects1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## ObjectTypeMatchesObjects1BoxedMap
-public static final class ObjectTypeMatchesObjects1BoxedMap
-extends [ObjectTypeMatchesObjects1Boxed](#objecttypematchesobjects1boxed)
+public record ObjectTypeMatchesObjects1BoxedMap
+implements [ObjectTypeMatchesObjects1Boxed](#objecttypematchesobjects1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| ObjectTypeMatchesObjects1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## ObjectTypeMatchesObjects1
public static class ObjectTypeMatchesObjects1
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Oneof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Oneof.md
index 2b209414821..f4c0b682e27 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/Oneof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/Oneof.md
@@ -4,34 +4,34 @@ public class Oneof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [Oneof.Oneof1Boxed](#oneof1boxed) abstract sealed validated payload class |
-| static class | [Oneof.Oneof1BoxedVoid](#oneof1boxedvoid) boxed class to store validated null payloads |
-| static class | [Oneof.Oneof1BoxedBoolean](#oneof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Oneof.Oneof1BoxedNumber](#oneof1boxednumber) boxed class to store validated Number payloads |
-| static class | [Oneof.Oneof1BoxedString](#oneof1boxedstring) boxed class to store validated String payloads |
-| static class | [Oneof.Oneof1BoxedList](#oneof1boxedlist) boxed class to store validated List payloads |
-| static class | [Oneof.Oneof1BoxedMap](#oneof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Oneof.Oneof1Boxed](#oneof1boxed) sealed interface for validated payloads |
+| record | [Oneof.Oneof1BoxedVoid](#oneof1boxedvoid) boxed class to store validated null payloads |
+| record | [Oneof.Oneof1BoxedBoolean](#oneof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Oneof.Oneof1BoxedNumber](#oneof1boxednumber) boxed class to store validated Number payloads |
+| record | [Oneof.Oneof1BoxedString](#oneof1boxedstring) boxed class to store validated String payloads |
+| record | [Oneof.Oneof1BoxedList](#oneof1boxedlist) boxed class to store validated List payloads |
+| record | [Oneof.Oneof1BoxedMap](#oneof1boxedmap) boxed class to store validated Map payloads |
| static class | [Oneof.Oneof1](#oneof1) schema class |
-| static class | [Oneof.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [Oneof.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [Oneof.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [Oneof.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [Oneof.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [Oneof.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [Oneof.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [Oneof.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [Oneof.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [Oneof.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [Oneof.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [Oneof.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [Oneof.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [Oneof.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [Oneof.Schema1](#schema1) schema class |
-| static class | [Oneof.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [Oneof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [Oneof.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [Oneof.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
| static class | [Oneof.Schema0](#schema0) schema class |
## Oneof1Boxed
-public static abstract sealed class Oneof1Boxed
+public sealed interface Oneof1Boxed
permits
[Oneof1BoxedVoid](#oneof1boxedvoid),
[Oneof1BoxedBoolean](#oneof1boxedboolean),
@@ -40,103 +40,109 @@ permits
[Oneof1BoxedList](#oneof1boxedlist),
[Oneof1BoxedMap](#oneof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Oneof1BoxedVoid
-public static final class Oneof1BoxedVoid
-extends [Oneof1Boxed](#oneof1boxed)
+public record Oneof1BoxedVoid
+implements [Oneof1Boxed](#oneof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Oneof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Oneof1BoxedBoolean
-public static final class Oneof1BoxedBoolean
-extends [Oneof1Boxed](#oneof1boxed)
+public record Oneof1BoxedBoolean
+implements [Oneof1Boxed](#oneof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Oneof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Oneof1BoxedNumber
-public static final class Oneof1BoxedNumber
-extends [Oneof1Boxed](#oneof1boxed)
+public record Oneof1BoxedNumber
+implements [Oneof1Boxed](#oneof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Oneof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Oneof1BoxedString
-public static final class Oneof1BoxedString
-extends [Oneof1Boxed](#oneof1boxed)
+public record Oneof1BoxedString
+implements [Oneof1Boxed](#oneof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Oneof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Oneof1BoxedList
-public static final class Oneof1BoxedList
-extends [Oneof1Boxed](#oneof1boxed)
+public record Oneof1BoxedList
+implements [Oneof1Boxed](#oneof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Oneof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Oneof1BoxedMap
-public static final class Oneof1BoxedMap
-extends [Oneof1Boxed](#oneof1boxed)
+public record Oneof1BoxedMap
+implements [Oneof1Boxed](#oneof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Oneof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Oneof1
public static class Oneof1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [Oneof1BoxedBoolean](#oneof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Oneof1BoxedMap](#oneof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Oneof1BoxedList](#oneof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Oneof1Boxed](#oneof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -307,29 +321,32 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedNumber](#schema0boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md
index 5c4ed6bcf33..182a53d6956 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofComplexTypes.md
@@ -4,7 +4,7 @@ public class OneofComplexTypes
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,43 +12,43 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [OneofComplexTypes.OneofComplexTypes1Boxed](#oneofcomplextypes1boxed) abstract sealed validated payload class |
-| static class | [OneofComplexTypes.OneofComplexTypes1BoxedVoid](#oneofcomplextypes1boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofComplexTypes.OneofComplexTypes1BoxedBoolean](#oneofcomplextypes1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofComplexTypes.OneofComplexTypes1BoxedNumber](#oneofcomplextypes1boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofComplexTypes.OneofComplexTypes1BoxedString](#oneofcomplextypes1boxedstring) boxed class to store validated String payloads |
-| static class | [OneofComplexTypes.OneofComplexTypes1BoxedList](#oneofcomplextypes1boxedlist) boxed class to store validated List payloads |
-| static class | [OneofComplexTypes.OneofComplexTypes1BoxedMap](#oneofcomplextypes1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofComplexTypes.OneofComplexTypes1Boxed](#oneofcomplextypes1boxed) sealed interface for validated payloads |
+| record | [OneofComplexTypes.OneofComplexTypes1BoxedVoid](#oneofcomplextypes1boxedvoid) boxed class to store validated null payloads |
+| record | [OneofComplexTypes.OneofComplexTypes1BoxedBoolean](#oneofcomplextypes1boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofComplexTypes.OneofComplexTypes1BoxedNumber](#oneofcomplextypes1boxednumber) boxed class to store validated Number payloads |
+| record | [OneofComplexTypes.OneofComplexTypes1BoxedString](#oneofcomplextypes1boxedstring) boxed class to store validated String payloads |
+| record | [OneofComplexTypes.OneofComplexTypes1BoxedList](#oneofcomplextypes1boxedlist) boxed class to store validated List payloads |
+| record | [OneofComplexTypes.OneofComplexTypes1BoxedMap](#oneofcomplextypes1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofComplexTypes.OneofComplexTypes1](#oneofcomplextypes1) schema class |
-| static class | [OneofComplexTypes.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [OneofComplexTypes.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofComplexTypes.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofComplexTypes.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofComplexTypes.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [OneofComplexTypes.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [OneofComplexTypes.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofComplexTypes.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [OneofComplexTypes.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [OneofComplexTypes.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofComplexTypes.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [OneofComplexTypes.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [OneofComplexTypes.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [OneofComplexTypes.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofComplexTypes.Schema1](#schema1) schema class |
| static class | [OneofComplexTypes.Schema1MapBuilder](#schema1mapbuilder) builder for Map payloads |
| static class | [OneofComplexTypes.Schema1Map](#schema1map) output class for Map payloads |
-| static class | [OneofComplexTypes.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [OneofComplexTypes.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| sealed interface | [OneofComplexTypes.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [OneofComplexTypes.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
| static class | [OneofComplexTypes.Foo](#foo) schema class |
-| static class | [OneofComplexTypes.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [OneofComplexTypes.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofComplexTypes.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofComplexTypes.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofComplexTypes.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [OneofComplexTypes.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [OneofComplexTypes.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofComplexTypes.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [OneofComplexTypes.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [OneofComplexTypes.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofComplexTypes.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [OneofComplexTypes.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [OneofComplexTypes.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [OneofComplexTypes.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [OneofComplexTypes.Schema0](#schema0) schema class |
| static class | [OneofComplexTypes.Schema0MapBuilder](#schema0mapbuilder) builder for Map payloads |
| static class | [OneofComplexTypes.Schema0Map](#schema0map) output class for Map payloads |
-| static class | [OneofComplexTypes.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [OneofComplexTypes.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [OneofComplexTypes.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [OneofComplexTypes.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
| static class | [OneofComplexTypes.Bar](#bar) schema class |
## OneofComplexTypes1Boxed
-public static abstract sealed class OneofComplexTypes1Boxed
+public sealed interface OneofComplexTypes1Boxed
permits
[OneofComplexTypes1BoxedVoid](#oneofcomplextypes1boxedvoid),
[OneofComplexTypes1BoxedBoolean](#oneofcomplextypes1boxedboolean),
@@ -57,103 +57,109 @@ permits
[OneofComplexTypes1BoxedList](#oneofcomplextypes1boxedlist),
[OneofComplexTypes1BoxedMap](#oneofcomplextypes1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## OneofComplexTypes1BoxedVoid
-public static final class OneofComplexTypes1BoxedVoid
-extends [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
+public record OneofComplexTypes1BoxedVoid
+implements [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofComplexTypes1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofComplexTypes1BoxedBoolean
-public static final class OneofComplexTypes1BoxedBoolean
-extends [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
+public record OneofComplexTypes1BoxedBoolean
+implements [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofComplexTypes1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofComplexTypes1BoxedNumber
-public static final class OneofComplexTypes1BoxedNumber
-extends [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
+public record OneofComplexTypes1BoxedNumber
+implements [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofComplexTypes1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofComplexTypes1BoxedString
-public static final class OneofComplexTypes1BoxedString
-extends [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
+public record OneofComplexTypes1BoxedString
+implements [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofComplexTypes1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofComplexTypes1BoxedList
-public static final class OneofComplexTypes1BoxedList
-extends [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
+public record OneofComplexTypes1BoxedList
+implements [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofComplexTypes1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofComplexTypes1BoxedMap
-public static final class OneofComplexTypes1BoxedMap
-extends [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
+public record OneofComplexTypes1BoxedMap
+implements [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofComplexTypes1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofComplexTypes1
public static class OneofComplexTypes1
@@ -185,9 +191,11 @@ A schema class that validates payloads
| [OneofComplexTypes1BoxedBoolean](#oneofcomplextypes1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [OneofComplexTypes1BoxedMap](#oneofcomplextypes1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [OneofComplexTypes1BoxedList](#oneofcomplextypes1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [OneofComplexTypes1Boxed](#oneofcomplextypes1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -196,103 +204,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap([Schema1Map](#schema1map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema1Map](#schema1map) | data validated payload |
+| [Schema1Map](#schema1map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -325,7 +339,9 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Map0Builder
public class Schema1Map0Builder
builder for `Map`
@@ -381,27 +397,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedString](#fooboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
@@ -415,7 +432,7 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -424,103 +441,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap([Schema0Map](#schema0map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema0Map](#schema0map) | data validated payload |
+| [Schema0Map](#schema0map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -553,7 +576,9 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Map0Builder
public class Schema0Map0Builder
builder for `Map`
@@ -612,27 +637,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedNumber](#barboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
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 f122b9e0462..176ea9e3a54 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
@@ -4,54 +4,55 @@ public class OneofWithBaseSchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [OneofWithBaseSchema.OneofWithBaseSchema1Boxed](#oneofwithbaseschema1boxed) abstract sealed validated payload class |
-| static class | [OneofWithBaseSchema.OneofWithBaseSchema1BoxedString](#oneofwithbaseschema1boxedstring) boxed class to store validated String payloads |
+| sealed interface | [OneofWithBaseSchema.OneofWithBaseSchema1Boxed](#oneofwithbaseschema1boxed) sealed interface for validated payloads |
+| record | [OneofWithBaseSchema.OneofWithBaseSchema1BoxedString](#oneofwithbaseschema1boxedstring) boxed class to store validated String payloads |
| static class | [OneofWithBaseSchema.OneofWithBaseSchema1](#oneofwithbaseschema1) schema class |
-| static class | [OneofWithBaseSchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [OneofWithBaseSchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofWithBaseSchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofWithBaseSchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofWithBaseSchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [OneofWithBaseSchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [OneofWithBaseSchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithBaseSchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [OneofWithBaseSchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [OneofWithBaseSchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofWithBaseSchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [OneofWithBaseSchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [OneofWithBaseSchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [OneofWithBaseSchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithBaseSchema.Schema1](#schema1) schema class |
-| static class | [OneofWithBaseSchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [OneofWithBaseSchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofWithBaseSchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofWithBaseSchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofWithBaseSchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [OneofWithBaseSchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [OneofWithBaseSchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithBaseSchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [OneofWithBaseSchema.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [OneofWithBaseSchema.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofWithBaseSchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [OneofWithBaseSchema.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [OneofWithBaseSchema.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [OneofWithBaseSchema.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithBaseSchema.Schema0](#schema0) schema class |
## OneofWithBaseSchema1Boxed
-public static abstract sealed class OneofWithBaseSchema1Boxed
+public sealed interface OneofWithBaseSchema1Boxed
permits
[OneofWithBaseSchema1BoxedString](#oneofwithbaseschema1boxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## OneofWithBaseSchema1BoxedString
-public static final class OneofWithBaseSchema1BoxedString
-extends [OneofWithBaseSchema1Boxed](#oneofwithbaseschema1boxed)
+public record OneofWithBaseSchema1BoxedString
+implements [OneofWithBaseSchema1Boxed](#oneofwithbaseschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithBaseSchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithBaseSchema1
public static class OneofWithBaseSchema1
@@ -92,9 +93,11 @@ String validatedPayload = OneofWithBaseSchema.OneofWithBaseSchema1.validate(
| ----------------- | ---------------------- |
| String | validate(String arg, SchemaConfiguration configuration) |
| [OneofWithBaseSchema1BoxedString](#oneofwithbaseschema1boxedstring) | validateAndBox(String arg, SchemaConfiguration configuration) |
+| [OneofWithBaseSchema1Boxed](#oneofwithbaseschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -103,103 +106,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -231,9 +240,11 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -242,103 +253,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -370,5 +387,7 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md
index 9129b14859b..a3b4f2933cb 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithEmptySchema.md
@@ -4,34 +4,34 @@ public class OneofWithEmptySchema
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed) abstract sealed validated payload class |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedVoid](#oneofwithemptyschema1boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedBoolean](#oneofwithemptyschema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedNumber](#oneofwithemptyschema1boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedString](#oneofwithemptyschema1boxedstring) boxed class to store validated String payloads |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedList](#oneofwithemptyschema1boxedlist) boxed class to store validated List payloads |
-| static class | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedMap](#oneofwithemptyschema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithEmptySchema.OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed) sealed interface for validated payloads |
+| record | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedVoid](#oneofwithemptyschema1boxedvoid) boxed class to store validated null payloads |
+| record | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedBoolean](#oneofwithemptyschema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedNumber](#oneofwithemptyschema1boxednumber) boxed class to store validated Number payloads |
+| record | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedString](#oneofwithemptyschema1boxedstring) boxed class to store validated String payloads |
+| record | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedList](#oneofwithemptyschema1boxedlist) boxed class to store validated List payloads |
+| record | [OneofWithEmptySchema.OneofWithEmptySchema1BoxedMap](#oneofwithemptyschema1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithEmptySchema.OneofWithEmptySchema1](#oneofwithemptyschema1) schema class |
-| static class | [OneofWithEmptySchema.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [OneofWithEmptySchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofWithEmptySchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofWithEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofWithEmptySchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [OneofWithEmptySchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [OneofWithEmptySchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithEmptySchema.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [OneofWithEmptySchema.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [OneofWithEmptySchema.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofWithEmptySchema.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [OneofWithEmptySchema.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [OneofWithEmptySchema.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [OneofWithEmptySchema.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithEmptySchema.Schema1](#schema1) schema class |
-| static class | [OneofWithEmptySchema.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [OneofWithEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [OneofWithEmptySchema.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [OneofWithEmptySchema.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
| static class | [OneofWithEmptySchema.Schema0](#schema0) schema class |
## OneofWithEmptySchema1Boxed
-public static abstract sealed class OneofWithEmptySchema1Boxed
+public sealed interface OneofWithEmptySchema1Boxed
permits
[OneofWithEmptySchema1BoxedVoid](#oneofwithemptyschema1boxedvoid),
[OneofWithEmptySchema1BoxedBoolean](#oneofwithemptyschema1boxedboolean),
@@ -40,103 +40,109 @@ permits
[OneofWithEmptySchema1BoxedList](#oneofwithemptyschema1boxedlist),
[OneofWithEmptySchema1BoxedMap](#oneofwithemptyschema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## OneofWithEmptySchema1BoxedVoid
-public static final class OneofWithEmptySchema1BoxedVoid
-extends [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
+public record OneofWithEmptySchema1BoxedVoid
+implements [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithEmptySchema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithEmptySchema1BoxedBoolean
-public static final class OneofWithEmptySchema1BoxedBoolean
-extends [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
+public record OneofWithEmptySchema1BoxedBoolean
+implements [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithEmptySchema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithEmptySchema1BoxedNumber
-public static final class OneofWithEmptySchema1BoxedNumber
-extends [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
+public record OneofWithEmptySchema1BoxedNumber
+implements [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithEmptySchema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithEmptySchema1BoxedString
-public static final class OneofWithEmptySchema1BoxedString
-extends [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
+public record OneofWithEmptySchema1BoxedString
+implements [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithEmptySchema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithEmptySchema1BoxedList
-public static final class OneofWithEmptySchema1BoxedList
-extends [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
+public record OneofWithEmptySchema1BoxedList
+implements [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithEmptySchema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithEmptySchema1BoxedMap
-public static final class OneofWithEmptySchema1BoxedMap
-extends [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
+public record OneofWithEmptySchema1BoxedMap
+implements [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithEmptySchema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithEmptySchema1
public static class OneofWithEmptySchema1
@@ -168,9 +174,11 @@ A schema class that validates payloads
| [OneofWithEmptySchema1BoxedBoolean](#oneofwithemptyschema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [OneofWithEmptySchema1BoxedMap](#oneofwithemptyschema1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [OneofWithEmptySchema1BoxedList](#oneofwithemptyschema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [OneofWithEmptySchema1Boxed](#oneofwithemptyschema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -179,103 +187,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -289,27 +303,28 @@ A schema class that validates payloads
| validateAndBox |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedNumber](#schema0boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md
index 78f1deb2646..b5daaad8023 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/OneofWithRequired.md
@@ -4,7 +4,7 @@ public class OneofWithRequired
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,52 +12,53 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [OneofWithRequired.OneofWithRequired1Boxed](#oneofwithrequired1boxed) abstract sealed validated payload class |
-| static class | [OneofWithRequired.OneofWithRequired1BoxedMap](#oneofwithrequired1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithRequired.OneofWithRequired1Boxed](#oneofwithrequired1boxed) sealed interface for validated payloads |
+| record | [OneofWithRequired.OneofWithRequired1BoxedMap](#oneofwithrequired1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithRequired.OneofWithRequired1](#oneofwithrequired1) schema class |
-| static class | [OneofWithRequired.Schema1Boxed](#schema1boxed) abstract sealed validated payload class |
-| static class | [OneofWithRequired.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofWithRequired.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofWithRequired.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofWithRequired.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
-| static class | [OneofWithRequired.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
-| static class | [OneofWithRequired.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithRequired.Schema1Boxed](#schema1boxed) sealed interface for validated payloads |
+| record | [OneofWithRequired.Schema1BoxedVoid](#schema1boxedvoid) boxed class to store validated null payloads |
+| record | [OneofWithRequired.Schema1BoxedBoolean](#schema1boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofWithRequired.Schema1BoxedNumber](#schema1boxednumber) boxed class to store validated Number payloads |
+| record | [OneofWithRequired.Schema1BoxedString](#schema1boxedstring) boxed class to store validated String payloads |
+| record | [OneofWithRequired.Schema1BoxedList](#schema1boxedlist) boxed class to store validated List payloads |
+| record | [OneofWithRequired.Schema1BoxedMap](#schema1boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithRequired.Schema1](#schema1) schema class |
| static class | [OneofWithRequired.Schema1MapBuilder](#schema1mapbuilder) builder for Map payloads |
| static class | [OneofWithRequired.Schema1Map](#schema1map) output class for Map payloads |
-| static class | [OneofWithRequired.Schema0Boxed](#schema0boxed) abstract sealed validated payload class |
-| static class | [OneofWithRequired.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
-| static class | [OneofWithRequired.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
-| static class | [OneofWithRequired.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
-| static class | [OneofWithRequired.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
-| static class | [OneofWithRequired.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
-| static class | [OneofWithRequired.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [OneofWithRequired.Schema0Boxed](#schema0boxed) sealed interface for validated payloads |
+| record | [OneofWithRequired.Schema0BoxedVoid](#schema0boxedvoid) boxed class to store validated null payloads |
+| record | [OneofWithRequired.Schema0BoxedBoolean](#schema0boxedboolean) boxed class to store validated boolean payloads |
+| record | [OneofWithRequired.Schema0BoxedNumber](#schema0boxednumber) boxed class to store validated Number payloads |
+| record | [OneofWithRequired.Schema0BoxedString](#schema0boxedstring) boxed class to store validated String payloads |
+| record | [OneofWithRequired.Schema0BoxedList](#schema0boxedlist) boxed class to store validated List payloads |
+| record | [OneofWithRequired.Schema0BoxedMap](#schema0boxedmap) boxed class to store validated Map payloads |
| static class | [OneofWithRequired.Schema0](#schema0) schema class |
| static class | [OneofWithRequired.Schema0MapBuilder](#schema0mapbuilder) builder for Map payloads |
| static class | [OneofWithRequired.Schema0Map](#schema0map) output class for Map payloads |
## OneofWithRequired1Boxed
-public static abstract sealed class OneofWithRequired1Boxed
+public sealed interface OneofWithRequired1Boxed
permits
[OneofWithRequired1BoxedMap](#oneofwithrequired1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## OneofWithRequired1BoxedMap
-public static final class OneofWithRequired1BoxedMap
-extends [OneofWithRequired1Boxed](#oneofwithrequired1boxed)
+public record OneofWithRequired1BoxedMap
+implements [OneofWithRequired1Boxed](#oneofwithrequired1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| OneofWithRequired1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## OneofWithRequired1
public static class OneofWithRequired1
@@ -76,9 +77,11 @@ A schema class that validates payloads
| ----------------- | ---------------------- |
| FrozenMap | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
| [OneofWithRequired1BoxedMap](#oneofwithrequired1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
+| [OneofWithRequired1Boxed](#oneofwithrequired1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Boxed
-public static abstract sealed class Schema1Boxed
+public sealed interface Schema1Boxed
permits
[Schema1BoxedVoid](#schema1boxedvoid),
[Schema1BoxedBoolean](#schema1boxedboolean),
@@ -87,103 +90,109 @@ permits
[Schema1BoxedList](#schema1boxedlist),
[Schema1BoxedMap](#schema1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema1BoxedVoid
-public static final class Schema1BoxedVoid
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedVoid
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedBoolean
-public static final class Schema1BoxedBoolean
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedBoolean
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedNumber
-public static final class Schema1BoxedNumber
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedNumber
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedString
-public static final class Schema1BoxedString
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedString
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedList
-public static final class Schema1BoxedList
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedList
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1BoxedMap
-public static final class Schema1BoxedMap
-extends [Schema1Boxed](#schema1boxed)
+public record Schema1BoxedMap
+implements [Schema1Boxed](#schema1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema1BoxedMap([Schema1Map](#schema1map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema1Map](#schema1map) | data validated payload |
+| [Schema1Map](#schema1map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema1
public static class Schema1
@@ -215,7 +224,9 @@ A schema class that validates payloads
| [Schema1BoxedBoolean](#schema1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema1BoxedMap](#schema1boxedmap) | validateAndBox([Map<?, ?>](#schema1mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema1BoxedList](#schema1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema1Boxed](#schema1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema1Map00Builder
public class Schema1Map00Builder
builder for `Map`
@@ -337,7 +348,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## Schema0Boxed
-public static abstract sealed class Schema0Boxed
+public sealed interface Schema0Boxed
permits
[Schema0BoxedVoid](#schema0boxedvoid),
[Schema0BoxedBoolean](#schema0boxedboolean),
@@ -346,103 +357,109 @@ permits
[Schema0BoxedList](#schema0boxedlist),
[Schema0BoxedMap](#schema0boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Schema0BoxedVoid
-public static final class Schema0BoxedVoid
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedVoid
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedBoolean
-public static final class Schema0BoxedBoolean
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedBoolean
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedNumber
-public static final class Schema0BoxedNumber
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedNumber
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedString
-public static final class Schema0BoxedString
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedString
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedList
-public static final class Schema0BoxedList
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedList
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0BoxedMap
-public static final class Schema0BoxedMap
-extends [Schema0Boxed](#schema0boxed)
+public record Schema0BoxedMap
+implements [Schema0Boxed](#schema0boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Schema0BoxedMap([Schema0Map](#schema0map) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [Schema0Map](#schema0map) | data validated payload |
+| [Schema0Map](#schema0map) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Schema0
public static class Schema0
@@ -474,7 +491,9 @@ A schema class that validates payloads
| [Schema0BoxedBoolean](#schema0boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [Schema0BoxedMap](#schema0boxedmap) | validateAndBox([Map<?, ?>](#schema0mapbuilder) arg, SchemaConfiguration configuration) |
| [Schema0BoxedList](#schema0boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [Schema0Boxed](#schema0boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## Schema0Map00Builder
public class Schema0Map00Builder
builder for `Map`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md
index 09b6b5b6cc3..15a76dd0a5d 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternIsNotAnchored.md
@@ -4,23 +4,23 @@ public class PatternIsNotAnchored
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed) abstract sealed validated payload class |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedVoid](#patternisnotanchored1boxedvoid) boxed class to store validated null payloads |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedBoolean](#patternisnotanchored1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedNumber](#patternisnotanchored1boxednumber) boxed class to store validated Number payloads |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedString](#patternisnotanchored1boxedstring) boxed class to store validated String payloads |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedList](#patternisnotanchored1boxedlist) boxed class to store validated List payloads |
-| static class | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedMap](#patternisnotanchored1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [PatternIsNotAnchored.PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed) sealed interface for validated payloads |
+| record | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedVoid](#patternisnotanchored1boxedvoid) boxed class to store validated null payloads |
+| record | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedBoolean](#patternisnotanchored1boxedboolean) boxed class to store validated boolean payloads |
+| record | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedNumber](#patternisnotanchored1boxednumber) boxed class to store validated Number payloads |
+| record | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedString](#patternisnotanchored1boxedstring) boxed class to store validated String payloads |
+| record | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedList](#patternisnotanchored1boxedlist) boxed class to store validated List payloads |
+| record | [PatternIsNotAnchored.PatternIsNotAnchored1BoxedMap](#patternisnotanchored1boxedmap) boxed class to store validated Map payloads |
| static class | [PatternIsNotAnchored.PatternIsNotAnchored1](#patternisnotanchored1) schema class |
## PatternIsNotAnchored1Boxed
-public static abstract sealed class PatternIsNotAnchored1Boxed
+public sealed interface PatternIsNotAnchored1Boxed
permits
[PatternIsNotAnchored1BoxedVoid](#patternisnotanchored1boxedvoid),
[PatternIsNotAnchored1BoxedBoolean](#patternisnotanchored1boxedboolean),
@@ -29,103 +29,109 @@ permits
[PatternIsNotAnchored1BoxedList](#patternisnotanchored1boxedlist),
[PatternIsNotAnchored1BoxedMap](#patternisnotanchored1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## PatternIsNotAnchored1BoxedVoid
-public static final class PatternIsNotAnchored1BoxedVoid
-extends [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
+public record PatternIsNotAnchored1BoxedVoid
+implements [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternIsNotAnchored1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternIsNotAnchored1BoxedBoolean
-public static final class PatternIsNotAnchored1BoxedBoolean
-extends [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
+public record PatternIsNotAnchored1BoxedBoolean
+implements [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternIsNotAnchored1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternIsNotAnchored1BoxedNumber
-public static final class PatternIsNotAnchored1BoxedNumber
-extends [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
+public record PatternIsNotAnchored1BoxedNumber
+implements [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternIsNotAnchored1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternIsNotAnchored1BoxedString
-public static final class PatternIsNotAnchored1BoxedString
-extends [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
+public record PatternIsNotAnchored1BoxedString
+implements [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternIsNotAnchored1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternIsNotAnchored1BoxedList
-public static final class PatternIsNotAnchored1BoxedList
-extends [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
+public record PatternIsNotAnchored1BoxedList
+implements [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternIsNotAnchored1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternIsNotAnchored1BoxedMap
-public static final class PatternIsNotAnchored1BoxedMap
-extends [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
+public record PatternIsNotAnchored1BoxedMap
+implements [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternIsNotAnchored1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternIsNotAnchored1
public static class PatternIsNotAnchored1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [PatternIsNotAnchored1BoxedBoolean](#patternisnotanchored1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [PatternIsNotAnchored1BoxedMap](#patternisnotanchored1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [PatternIsNotAnchored1BoxedList](#patternisnotanchored1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [PatternIsNotAnchored1Boxed](#patternisnotanchored1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternValidation.md
index 7a47b6b1945..ddec1547b2a 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PatternValidation.md
@@ -4,23 +4,23 @@ public class PatternValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [PatternValidation.PatternValidation1Boxed](#patternvalidation1boxed) abstract sealed validated payload class |
-| static class | [PatternValidation.PatternValidation1BoxedVoid](#patternvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [PatternValidation.PatternValidation1BoxedBoolean](#patternvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [PatternValidation.PatternValidation1BoxedNumber](#patternvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [PatternValidation.PatternValidation1BoxedString](#patternvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [PatternValidation.PatternValidation1BoxedList](#patternvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [PatternValidation.PatternValidation1BoxedMap](#patternvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [PatternValidation.PatternValidation1Boxed](#patternvalidation1boxed) sealed interface for validated payloads |
+| record | [PatternValidation.PatternValidation1BoxedVoid](#patternvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [PatternValidation.PatternValidation1BoxedBoolean](#patternvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [PatternValidation.PatternValidation1BoxedNumber](#patternvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [PatternValidation.PatternValidation1BoxedString](#patternvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [PatternValidation.PatternValidation1BoxedList](#patternvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [PatternValidation.PatternValidation1BoxedMap](#patternvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [PatternValidation.PatternValidation1](#patternvalidation1) schema class |
## PatternValidation1Boxed
-public static abstract sealed class PatternValidation1Boxed
+public sealed interface PatternValidation1Boxed
permits
[PatternValidation1BoxedVoid](#patternvalidation1boxedvoid),
[PatternValidation1BoxedBoolean](#patternvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[PatternValidation1BoxedList](#patternvalidation1boxedlist),
[PatternValidation1BoxedMap](#patternvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## PatternValidation1BoxedVoid
-public static final class PatternValidation1BoxedVoid
-extends [PatternValidation1Boxed](#patternvalidation1boxed)
+public record PatternValidation1BoxedVoid
+implements [PatternValidation1Boxed](#patternvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternValidation1BoxedBoolean
-public static final class PatternValidation1BoxedBoolean
-extends [PatternValidation1Boxed](#patternvalidation1boxed)
+public record PatternValidation1BoxedBoolean
+implements [PatternValidation1Boxed](#patternvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternValidation1BoxedNumber
-public static final class PatternValidation1BoxedNumber
-extends [PatternValidation1Boxed](#patternvalidation1boxed)
+public record PatternValidation1BoxedNumber
+implements [PatternValidation1Boxed](#patternvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternValidation1BoxedString
-public static final class PatternValidation1BoxedString
-extends [PatternValidation1Boxed](#patternvalidation1boxed)
+public record PatternValidation1BoxedString
+implements [PatternValidation1Boxed](#patternvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternValidation1BoxedList
-public static final class PatternValidation1BoxedList
-extends [PatternValidation1Boxed](#patternvalidation1boxed)
+public record PatternValidation1BoxedList
+implements [PatternValidation1Boxed](#patternvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternValidation1BoxedMap
-public static final class PatternValidation1BoxedMap
-extends [PatternValidation1Boxed](#patternvalidation1boxed)
+public record PatternValidation1BoxedMap
+implements [PatternValidation1Boxed](#patternvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PatternValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PatternValidation1
public static class PatternValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [PatternValidation1BoxedBoolean](#patternvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [PatternValidation1BoxedMap](#patternvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [PatternValidation1BoxedList](#patternvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [PatternValidation1Boxed](#patternvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md
index d2af863280c..a34e94b8786 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertiesWithEscapedCharacters.md
@@ -4,7 +4,7 @@ public class PropertiesWithEscapedCharacters
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,37 +12,37 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedVoid](#propertieswithescapedcharacters1boxedvoid) boxed class to store validated null payloads |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedBoolean](#propertieswithescapedcharacters1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedNumber](#propertieswithescapedcharacters1boxednumber) boxed class to store validated Number payloads |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedString](#propertieswithescapedcharacters1boxedstring) boxed class to store validated String payloads |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedList](#propertieswithescapedcharacters1boxedlist) boxed class to store validated List payloads |
-| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedMap](#propertieswithescapedcharacters1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedVoid](#propertieswithescapedcharacters1boxedvoid) boxed class to store validated null payloads |
+| record | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedBoolean](#propertieswithescapedcharacters1boxedboolean) boxed class to store validated boolean payloads |
+| record | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedNumber](#propertieswithescapedcharacters1boxednumber) boxed class to store validated Number payloads |
+| record | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedString](#propertieswithescapedcharacters1boxedstring) boxed class to store validated String payloads |
+| record | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedList](#propertieswithescapedcharacters1boxedlist) boxed class to store validated List payloads |
+| record | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1BoxedMap](#propertieswithescapedcharacters1boxedmap) boxed class to store validated Map payloads |
| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharacters1](#propertieswithescapedcharacters1) schema class |
| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharactersMapBuilder](#propertieswithescapedcharactersmapbuilder) builder for Map payloads |
| static class | [PropertiesWithEscapedCharacters.PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) output class for Map payloads |
-| static class | [PropertiesWithEscapedCharacters.FoofbarBoxed](#foofbarboxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.FoofbarBoxedNumber](#foofbarboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.FoofbarBoxed](#foofbarboxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.FoofbarBoxedNumber](#foofbarboxednumber) boxed class to store validated Number payloads |
| static class | [PropertiesWithEscapedCharacters.Foofbar](#foofbar) schema class |
-| static class | [PropertiesWithEscapedCharacters.FootbarBoxed](#footbarboxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.FootbarBoxedNumber](#footbarboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.FootbarBoxed](#footbarboxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.FootbarBoxedNumber](#footbarboxednumber) boxed class to store validated Number payloads |
| static class | [PropertiesWithEscapedCharacters.Footbar](#footbar) schema class |
-| static class | [PropertiesWithEscapedCharacters.FoorbarBoxed](#foorbarboxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.FoorbarBoxedNumber](#foorbarboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.FoorbarBoxed](#foorbarboxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.FoorbarBoxedNumber](#foorbarboxednumber) boxed class to store validated Number payloads |
| static class | [PropertiesWithEscapedCharacters.Foorbar](#foorbar) schema class |
-| static class | [PropertiesWithEscapedCharacters.Foobar1Boxed](#foobar1boxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.Foobar1BoxedNumber](#foobar1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.Foobar1Boxed](#foobar1boxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.Foobar1BoxedNumber](#foobar1boxednumber) boxed class to store validated Number payloads |
| static class | [PropertiesWithEscapedCharacters.Foobar1](#foobar1) schema class |
-| static class | [PropertiesWithEscapedCharacters.FoobarBoxed](#foobarboxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.FoobarBoxedNumber](#foobarboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.FoobarBoxed](#foobarboxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.FoobarBoxedNumber](#foobarboxednumber) boxed class to store validated Number payloads |
| static class | [PropertiesWithEscapedCharacters.Foobar](#foobar) schema class |
-| static class | [PropertiesWithEscapedCharacters.FoonbarBoxed](#foonbarboxed) abstract sealed validated payload class |
-| static class | [PropertiesWithEscapedCharacters.FoonbarBoxedNumber](#foonbarboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [PropertiesWithEscapedCharacters.FoonbarBoxed](#foonbarboxed) sealed interface for validated payloads |
+| record | [PropertiesWithEscapedCharacters.FoonbarBoxedNumber](#foonbarboxednumber) boxed class to store validated Number payloads |
| static class | [PropertiesWithEscapedCharacters.Foonbar](#foonbar) schema class |
## PropertiesWithEscapedCharacters1Boxed
-public static abstract sealed class PropertiesWithEscapedCharacters1Boxed
+public sealed interface PropertiesWithEscapedCharacters1Boxed
permits
[PropertiesWithEscapedCharacters1BoxedVoid](#propertieswithescapedcharacters1boxedvoid),
[PropertiesWithEscapedCharacters1BoxedBoolean](#propertieswithescapedcharacters1boxedboolean),
@@ -51,103 +51,109 @@ permits
[PropertiesWithEscapedCharacters1BoxedList](#propertieswithescapedcharacters1boxedlist),
[PropertiesWithEscapedCharacters1BoxedMap](#propertieswithescapedcharacters1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## PropertiesWithEscapedCharacters1BoxedVoid
-public static final class PropertiesWithEscapedCharacters1BoxedVoid
-extends [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
+public record PropertiesWithEscapedCharacters1BoxedVoid
+implements [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertiesWithEscapedCharacters1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertiesWithEscapedCharacters1BoxedBoolean
-public static final class PropertiesWithEscapedCharacters1BoxedBoolean
-extends [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
+public record PropertiesWithEscapedCharacters1BoxedBoolean
+implements [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertiesWithEscapedCharacters1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertiesWithEscapedCharacters1BoxedNumber
-public static final class PropertiesWithEscapedCharacters1BoxedNumber
-extends [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
+public record PropertiesWithEscapedCharacters1BoxedNumber
+implements [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertiesWithEscapedCharacters1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertiesWithEscapedCharacters1BoxedString
-public static final class PropertiesWithEscapedCharacters1BoxedString
-extends [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
+public record PropertiesWithEscapedCharacters1BoxedString
+implements [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertiesWithEscapedCharacters1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertiesWithEscapedCharacters1BoxedList
-public static final class PropertiesWithEscapedCharacters1BoxedList
-extends [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
+public record PropertiesWithEscapedCharacters1BoxedList
+implements [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertiesWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertiesWithEscapedCharacters1BoxedMap
-public static final class PropertiesWithEscapedCharacters1BoxedMap
-extends [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
+public record PropertiesWithEscapedCharacters1BoxedMap
+implements [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertiesWithEscapedCharacters1BoxedMap([PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) | data validated payload |
+| [PropertiesWithEscapedCharactersMap](#propertieswithescapedcharactersmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertiesWithEscapedCharacters1
public static class PropertiesWithEscapedCharacters1
@@ -179,7 +185,9 @@ A schema class that validates payloads
| [PropertiesWithEscapedCharacters1BoxedBoolean](#propertieswithescapedcharacters1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [PropertiesWithEscapedCharacters1BoxedMap](#propertieswithescapedcharacters1boxedmap) | validateAndBox([Map<?, ?>](#propertieswithescapedcharactersmapbuilder) arg, SchemaConfiguration configuration) |
| [PropertiesWithEscapedCharacters1BoxedList](#propertieswithescapedcharacters1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [PropertiesWithEscapedCharacters1Boxed](#propertieswithescapedcharacters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## PropertiesWithEscapedCharactersMapBuilder
public class PropertiesWithEscapedCharactersMapBuilder
builder for `Map`
@@ -243,27 +251,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FoofbarBoxed
-public static abstract sealed class FoofbarBoxed
+public sealed interface FoofbarBoxed
permits
[FoofbarBoxedNumber](#foofbarboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FoofbarBoxedNumber
-public static final class FoofbarBoxedNumber
-extends [FoofbarBoxed](#foofbarboxed)
+public record FoofbarBoxedNumber
+implements [FoofbarBoxed](#foofbarboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FoofbarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foofbar
public static class Foofbar
@@ -277,27 +286,28 @@ A schema class that validates payloads
| validateAndBox |
## FootbarBoxed
-public static abstract sealed class FootbarBoxed
+public sealed interface FootbarBoxed
permits
[FootbarBoxedNumber](#footbarboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FootbarBoxedNumber
-public static final class FootbarBoxedNumber
-extends [FootbarBoxed](#footbarboxed)
+public record FootbarBoxedNumber
+implements [FootbarBoxed](#footbarboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FootbarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Footbar
public static class Footbar
@@ -311,27 +321,28 @@ A schema class that validates payloads
| validateAndBox |
## FoorbarBoxed
-public static abstract sealed class FoorbarBoxed
+public sealed interface FoorbarBoxed
permits
[FoorbarBoxedNumber](#foorbarboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FoorbarBoxedNumber
-public static final class FoorbarBoxedNumber
-extends [FoorbarBoxed](#foorbarboxed)
+public record FoorbarBoxedNumber
+implements [FoorbarBoxed](#foorbarboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FoorbarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foorbar
public static class Foorbar
@@ -345,27 +356,28 @@ A schema class that validates payloads
| validateAndBox |
## Foobar1Boxed
-public static abstract sealed class Foobar1Boxed
+public sealed interface Foobar1Boxed
permits
[Foobar1BoxedNumber](#foobar1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## Foobar1BoxedNumber
-public static final class Foobar1BoxedNumber
-extends [Foobar1Boxed](#foobar1boxed)
+public record Foobar1BoxedNumber
+implements [Foobar1Boxed](#foobar1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| Foobar1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foobar1
public static class Foobar1
@@ -379,27 +391,28 @@ A schema class that validates payloads
| validateAndBox |
## FoobarBoxed
-public static abstract sealed class FoobarBoxed
+public sealed interface FoobarBoxed
permits
[FoobarBoxedNumber](#foobarboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FoobarBoxedNumber
-public static final class FoobarBoxedNumber
-extends [FoobarBoxed](#foobarboxed)
+public record FoobarBoxedNumber
+implements [FoobarBoxed](#foobarboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FoobarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foobar
public static class Foobar
@@ -413,27 +426,28 @@ A schema class that validates payloads
| validateAndBox |
## FoonbarBoxed
-public static abstract sealed class FoonbarBoxed
+public sealed interface FoonbarBoxed
permits
[FoonbarBoxedNumber](#foonbarboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FoonbarBoxedNumber
-public static final class FoonbarBoxedNumber
-extends [FoonbarBoxed](#foonbarboxed)
+public record FoonbarBoxedNumber
+implements [FoonbarBoxed](#foonbarboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FoonbarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foonbar
public static class Foonbar
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md
index 45748c1d470..1d8a12ff4d3 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/PropertyNamedRefThatIsNotAReference.md
@@ -4,7 +4,7 @@ public class PropertyNamedRefThatIsNotAReference
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,22 +12,22 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed) abstract sealed validated payload class |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedVoid](#propertynamedrefthatisnotareference1boxedvoid) boxed class to store validated null payloads |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedBoolean](#propertynamedrefthatisnotareference1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedNumber](#propertynamedrefthatisnotareference1boxednumber) boxed class to store validated Number payloads |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedString](#propertynamedrefthatisnotareference1boxedstring) boxed class to store validated String payloads |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedList](#propertynamedrefthatisnotareference1boxedlist) boxed class to store validated List payloads |
-| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedMap](#propertynamedrefthatisnotareference1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed) sealed interface for validated payloads |
+| record | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedVoid](#propertynamedrefthatisnotareference1boxedvoid) boxed class to store validated null payloads |
+| record | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedBoolean](#propertynamedrefthatisnotareference1boxedboolean) boxed class to store validated boolean payloads |
+| record | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedNumber](#propertynamedrefthatisnotareference1boxednumber) boxed class to store validated Number payloads |
+| record | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedString](#propertynamedrefthatisnotareference1boxedstring) boxed class to store validated String payloads |
+| record | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedList](#propertynamedrefthatisnotareference1boxedlist) boxed class to store validated List payloads |
+| record | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1BoxedMap](#propertynamedrefthatisnotareference1boxedmap) boxed class to store validated Map payloads |
| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReference1](#propertynamedrefthatisnotareference1) schema class |
| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReferenceMapBuilder](#propertynamedrefthatisnotareferencemapbuilder) builder for Map payloads |
| static class | [PropertyNamedRefThatIsNotAReference.PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) output class for Map payloads |
-| static class | [PropertyNamedRefThatIsNotAReference.RefBoxed](#refboxed) abstract sealed validated payload class |
-| static class | [PropertyNamedRefThatIsNotAReference.RefBoxedString](#refboxedstring) boxed class to store validated String payloads |
+| sealed interface | [PropertyNamedRefThatIsNotAReference.RefBoxed](#refboxed) sealed interface for validated payloads |
+| record | [PropertyNamedRefThatIsNotAReference.RefBoxedString](#refboxedstring) boxed class to store validated String payloads |
| static class | [PropertyNamedRefThatIsNotAReference.Ref](#ref) schema class |
## PropertyNamedRefThatIsNotAReference1Boxed
-public static abstract sealed class PropertyNamedRefThatIsNotAReference1Boxed
+public sealed interface PropertyNamedRefThatIsNotAReference1Boxed
permits
[PropertyNamedRefThatIsNotAReference1BoxedVoid](#propertynamedrefthatisnotareference1boxedvoid),
[PropertyNamedRefThatIsNotAReference1BoxedBoolean](#propertynamedrefthatisnotareference1boxedboolean),
@@ -36,103 +36,109 @@ permits
[PropertyNamedRefThatIsNotAReference1BoxedList](#propertynamedrefthatisnotareference1boxedlist),
[PropertyNamedRefThatIsNotAReference1BoxedMap](#propertynamedrefthatisnotareference1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## PropertyNamedRefThatIsNotAReference1BoxedVoid
-public static final class PropertyNamedRefThatIsNotAReference1BoxedVoid
-extends [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
+public record PropertyNamedRefThatIsNotAReference1BoxedVoid
+implements [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertyNamedRefThatIsNotAReference1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertyNamedRefThatIsNotAReference1BoxedBoolean
-public static final class PropertyNamedRefThatIsNotAReference1BoxedBoolean
-extends [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
+public record PropertyNamedRefThatIsNotAReference1BoxedBoolean
+implements [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertyNamedRefThatIsNotAReference1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertyNamedRefThatIsNotAReference1BoxedNumber
-public static final class PropertyNamedRefThatIsNotAReference1BoxedNumber
-extends [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
+public record PropertyNamedRefThatIsNotAReference1BoxedNumber
+implements [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertyNamedRefThatIsNotAReference1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertyNamedRefThatIsNotAReference1BoxedString
-public static final class PropertyNamedRefThatIsNotAReference1BoxedString
-extends [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
+public record PropertyNamedRefThatIsNotAReference1BoxedString
+implements [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertyNamedRefThatIsNotAReference1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertyNamedRefThatIsNotAReference1BoxedList
-public static final class PropertyNamedRefThatIsNotAReference1BoxedList
-extends [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
+public record PropertyNamedRefThatIsNotAReference1BoxedList
+implements [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertyNamedRefThatIsNotAReference1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertyNamedRefThatIsNotAReference1BoxedMap
-public static final class PropertyNamedRefThatIsNotAReference1BoxedMap
-extends [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
+public record PropertyNamedRefThatIsNotAReference1BoxedMap
+implements [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| PropertyNamedRefThatIsNotAReference1BoxedMap([PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) | data validated payload |
+| [PropertyNamedRefThatIsNotAReferenceMap](#propertynamedrefthatisnotareferencemap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## PropertyNamedRefThatIsNotAReference1
public static class PropertyNamedRefThatIsNotAReference1
@@ -164,7 +170,9 @@ A schema class that validates payloads
| [PropertyNamedRefThatIsNotAReference1BoxedBoolean](#propertynamedrefthatisnotareference1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [PropertyNamedRefThatIsNotAReference1BoxedMap](#propertynamedrefthatisnotareference1boxedmap) | validateAndBox([Map<?, ?>](#propertynamedrefthatisnotareferencemapbuilder) arg, SchemaConfiguration configuration) |
| [PropertyNamedRefThatIsNotAReference1BoxedList](#propertynamedrefthatisnotareference1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [PropertyNamedRefThatIsNotAReference1Boxed](#propertynamedrefthatisnotareference1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## PropertyNamedRefThatIsNotAReferenceMapBuilder
public class PropertyNamedRefThatIsNotAReferenceMapBuilder
builder for `Map`
@@ -205,27 +213,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## RefBoxed
-public static abstract sealed class RefBoxed
+public sealed interface RefBoxed
permits
[RefBoxedString](#refboxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefBoxedString
-public static final class RefBoxedString
-extends [RefBoxed](#refboxed)
+public record RefBoxedString
+implements [RefBoxed](#refboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Ref
public static class Ref
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 5278c64a077..e64b1886a04 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
@@ -4,7 +4,7 @@ public class RefInAdditionalproperties
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,34 +12,35 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInAdditionalproperties.RefInAdditionalproperties1Boxed](#refinadditionalproperties1boxed) abstract sealed validated payload class |
-| static class | [RefInAdditionalproperties.RefInAdditionalproperties1BoxedMap](#refinadditionalproperties1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RefInAdditionalproperties.RefInAdditionalproperties1Boxed](#refinadditionalproperties1boxed) sealed interface for validated payloads |
+| record | [RefInAdditionalproperties.RefInAdditionalproperties1BoxedMap](#refinadditionalproperties1boxedmap) boxed class to store validated Map payloads |
| static class | [RefInAdditionalproperties.RefInAdditionalproperties1](#refinadditionalproperties1) schema class |
| static class | [RefInAdditionalproperties.RefInAdditionalpropertiesMapBuilder](#refinadditionalpropertiesmapbuilder) builder for Map payloads |
| static class | [RefInAdditionalproperties.RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) output class for Map payloads |
## RefInAdditionalproperties1Boxed
-public static abstract sealed class RefInAdditionalproperties1Boxed
+public sealed interface RefInAdditionalproperties1Boxed
permits
[RefInAdditionalproperties1BoxedMap](#refinadditionalproperties1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInAdditionalproperties1BoxedMap
-public static final class RefInAdditionalproperties1BoxedMap
-extends [RefInAdditionalproperties1Boxed](#refinadditionalproperties1boxed)
+public record RefInAdditionalproperties1BoxedMap
+implements [RefInAdditionalproperties1Boxed](#refinadditionalproperties1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAdditionalproperties1BoxedMap([RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | data validated payload |
+| [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAdditionalproperties1
public static class RefInAdditionalproperties1
@@ -82,7 +83,9 @@ RefInAdditionalproperties.RefInAdditionalpropertiesMap validatedPayload =
| ----------------- | ---------------------- |
| [RefInAdditionalpropertiesMap](#refinadditionalpropertiesmap) | validate([Map<?, ?>](#refinadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) |
| [RefInAdditionalproperties1BoxedMap](#refinadditionalproperties1boxedmap) | validateAndBox([Map<?, ?>](#refinadditionalpropertiesmapbuilder) arg, SchemaConfiguration configuration) |
+| [RefInAdditionalproperties1Boxed](#refinadditionalproperties1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RefInAdditionalpropertiesMapBuilder
public class RefInAdditionalpropertiesMapBuilder
builder for `Map`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAllof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAllof.md
index c4df02cb2e4..7641a2acac4 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAllof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAllof.md
@@ -4,23 +4,23 @@ public class RefInAllof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInAllof.RefInAllof1Boxed](#refinallof1boxed) abstract sealed validated payload class |
-| static class | [RefInAllof.RefInAllof1BoxedVoid](#refinallof1boxedvoid) boxed class to store validated null payloads |
-| static class | [RefInAllof.RefInAllof1BoxedBoolean](#refinallof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RefInAllof.RefInAllof1BoxedNumber](#refinallof1boxednumber) boxed class to store validated Number payloads |
-| static class | [RefInAllof.RefInAllof1BoxedString](#refinallof1boxedstring) boxed class to store validated String payloads |
-| static class | [RefInAllof.RefInAllof1BoxedList](#refinallof1boxedlist) boxed class to store validated List payloads |
-| static class | [RefInAllof.RefInAllof1BoxedMap](#refinallof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RefInAllof.RefInAllof1Boxed](#refinallof1boxed) sealed interface for validated payloads |
+| record | [RefInAllof.RefInAllof1BoxedVoid](#refinallof1boxedvoid) boxed class to store validated null payloads |
+| record | [RefInAllof.RefInAllof1BoxedBoolean](#refinallof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RefInAllof.RefInAllof1BoxedNumber](#refinallof1boxednumber) boxed class to store validated Number payloads |
+| record | [RefInAllof.RefInAllof1BoxedString](#refinallof1boxedstring) boxed class to store validated String payloads |
+| record | [RefInAllof.RefInAllof1BoxedList](#refinallof1boxedlist) boxed class to store validated List payloads |
+| record | [RefInAllof.RefInAllof1BoxedMap](#refinallof1boxedmap) boxed class to store validated Map payloads |
| static class | [RefInAllof.RefInAllof1](#refinallof1) schema class |
## RefInAllof1Boxed
-public static abstract sealed class RefInAllof1Boxed
+public sealed interface RefInAllof1Boxed
permits
[RefInAllof1BoxedVoid](#refinallof1boxedvoid),
[RefInAllof1BoxedBoolean](#refinallof1boxedboolean),
@@ -29,103 +29,109 @@ permits
[RefInAllof1BoxedList](#refinallof1boxedlist),
[RefInAllof1BoxedMap](#refinallof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInAllof1BoxedVoid
-public static final class RefInAllof1BoxedVoid
-extends [RefInAllof1Boxed](#refinallof1boxed)
+public record RefInAllof1BoxedVoid
+implements [RefInAllof1Boxed](#refinallof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAllof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAllof1BoxedBoolean
-public static final class RefInAllof1BoxedBoolean
-extends [RefInAllof1Boxed](#refinallof1boxed)
+public record RefInAllof1BoxedBoolean
+implements [RefInAllof1Boxed](#refinallof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAllof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAllof1BoxedNumber
-public static final class RefInAllof1BoxedNumber
-extends [RefInAllof1Boxed](#refinallof1boxed)
+public record RefInAllof1BoxedNumber
+implements [RefInAllof1Boxed](#refinallof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAllof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAllof1BoxedString
-public static final class RefInAllof1BoxedString
-extends [RefInAllof1Boxed](#refinallof1boxed)
+public record RefInAllof1BoxedString
+implements [RefInAllof1Boxed](#refinallof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAllof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAllof1BoxedList
-public static final class RefInAllof1BoxedList
-extends [RefInAllof1Boxed](#refinallof1boxed)
+public record RefInAllof1BoxedList
+implements [RefInAllof1Boxed](#refinallof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAllof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAllof1BoxedMap
-public static final class RefInAllof1BoxedMap
-extends [RefInAllof1Boxed](#refinallof1boxed)
+public record RefInAllof1BoxedMap
+implements [RefInAllof1Boxed](#refinallof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAllof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAllof1
public static class RefInAllof1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [RefInAllof1BoxedBoolean](#refinallof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RefInAllof1BoxedMap](#refinallof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [RefInAllof1BoxedList](#refinallof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RefInAllof1Boxed](#refinallof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAnyof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAnyof.md
index 86e21540d1a..41635be43d4 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAnyof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInAnyof.md
@@ -4,23 +4,23 @@ public class RefInAnyof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInAnyof.RefInAnyof1Boxed](#refinanyof1boxed) abstract sealed validated payload class |
-| static class | [RefInAnyof.RefInAnyof1BoxedVoid](#refinanyof1boxedvoid) boxed class to store validated null payloads |
-| static class | [RefInAnyof.RefInAnyof1BoxedBoolean](#refinanyof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RefInAnyof.RefInAnyof1BoxedNumber](#refinanyof1boxednumber) boxed class to store validated Number payloads |
-| static class | [RefInAnyof.RefInAnyof1BoxedString](#refinanyof1boxedstring) boxed class to store validated String payloads |
-| static class | [RefInAnyof.RefInAnyof1BoxedList](#refinanyof1boxedlist) boxed class to store validated List payloads |
-| static class | [RefInAnyof.RefInAnyof1BoxedMap](#refinanyof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RefInAnyof.RefInAnyof1Boxed](#refinanyof1boxed) sealed interface for validated payloads |
+| record | [RefInAnyof.RefInAnyof1BoxedVoid](#refinanyof1boxedvoid) boxed class to store validated null payloads |
+| record | [RefInAnyof.RefInAnyof1BoxedBoolean](#refinanyof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RefInAnyof.RefInAnyof1BoxedNumber](#refinanyof1boxednumber) boxed class to store validated Number payloads |
+| record | [RefInAnyof.RefInAnyof1BoxedString](#refinanyof1boxedstring) boxed class to store validated String payloads |
+| record | [RefInAnyof.RefInAnyof1BoxedList](#refinanyof1boxedlist) boxed class to store validated List payloads |
+| record | [RefInAnyof.RefInAnyof1BoxedMap](#refinanyof1boxedmap) boxed class to store validated Map payloads |
| static class | [RefInAnyof.RefInAnyof1](#refinanyof1) schema class |
## RefInAnyof1Boxed
-public static abstract sealed class RefInAnyof1Boxed
+public sealed interface RefInAnyof1Boxed
permits
[RefInAnyof1BoxedVoid](#refinanyof1boxedvoid),
[RefInAnyof1BoxedBoolean](#refinanyof1boxedboolean),
@@ -29,103 +29,109 @@ permits
[RefInAnyof1BoxedList](#refinanyof1boxedlist),
[RefInAnyof1BoxedMap](#refinanyof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInAnyof1BoxedVoid
-public static final class RefInAnyof1BoxedVoid
-extends [RefInAnyof1Boxed](#refinanyof1boxed)
+public record RefInAnyof1BoxedVoid
+implements [RefInAnyof1Boxed](#refinanyof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAnyof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAnyof1BoxedBoolean
-public static final class RefInAnyof1BoxedBoolean
-extends [RefInAnyof1Boxed](#refinanyof1boxed)
+public record RefInAnyof1BoxedBoolean
+implements [RefInAnyof1Boxed](#refinanyof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAnyof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAnyof1BoxedNumber
-public static final class RefInAnyof1BoxedNumber
-extends [RefInAnyof1Boxed](#refinanyof1boxed)
+public record RefInAnyof1BoxedNumber
+implements [RefInAnyof1Boxed](#refinanyof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAnyof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAnyof1BoxedString
-public static final class RefInAnyof1BoxedString
-extends [RefInAnyof1Boxed](#refinanyof1boxed)
+public record RefInAnyof1BoxedString
+implements [RefInAnyof1Boxed](#refinanyof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAnyof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAnyof1BoxedList
-public static final class RefInAnyof1BoxedList
-extends [RefInAnyof1Boxed](#refinanyof1boxed)
+public record RefInAnyof1BoxedList
+implements [RefInAnyof1Boxed](#refinanyof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAnyof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAnyof1BoxedMap
-public static final class RefInAnyof1BoxedMap
-extends [RefInAnyof1Boxed](#refinanyof1boxed)
+public record RefInAnyof1BoxedMap
+implements [RefInAnyof1Boxed](#refinanyof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInAnyof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInAnyof1
public static class RefInAnyof1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [RefInAnyof1BoxedBoolean](#refinanyof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RefInAnyof1BoxedMap](#refinanyof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [RefInAnyof1BoxedList](#refinanyof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RefInAnyof1Boxed](#refinanyof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInItems.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInItems.md
index c80ac03580e..6fd5379a910 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
@@ -4,7 +4,7 @@ public class RefInItems
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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 list payloads, extends FrozenList
- classes to build inputs for list payloads
@@ -12,34 +12,35 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInItems.RefInItems1Boxed](#refinitems1boxed) abstract sealed validated payload class |
-| static class | [RefInItems.RefInItems1BoxedList](#refinitems1boxedlist) boxed class to store validated List payloads |
+| sealed interface | [RefInItems.RefInItems1Boxed](#refinitems1boxed) sealed interface for validated payloads |
+| record | [RefInItems.RefInItems1BoxedList](#refinitems1boxedlist) boxed class to store validated List payloads |
| static class | [RefInItems.RefInItems1](#refinitems1) schema class |
| static class | [RefInItems.RefInItemsListBuilder](#refinitemslistbuilder) builder for List payloads |
| static class | [RefInItems.RefInItemsList](#refinitemslist) output class for List payloads |
## RefInItems1Boxed
-public static abstract sealed class RefInItems1Boxed
+public sealed interface RefInItems1Boxed
permits
[RefInItems1BoxedList](#refinitems1boxedlist)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInItems1BoxedList
-public static final class RefInItems1BoxedList
-extends [RefInItems1Boxed](#refinitems1boxed)
+public record RefInItems1BoxedList
+implements [RefInItems1Boxed](#refinitems1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInItems1BoxedList([RefInItemsList](#refinitemslist) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RefInItemsList](#refinitemslist) | data validated payload |
+| [RefInItemsList](#refinitemslist) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInItems1
public static class RefInItems1
@@ -82,7 +83,9 @@ RefInItems.RefInItemsList validatedPayload =
| ----------------- | ---------------------- |
| [RefInItemsList](#refinitemslist) | validate([List>](#refinitemslistbuilder) arg, SchemaConfiguration configuration) |
| [RefInItems1BoxedList](#refinitems1boxedlist) | validateAndBox([List>](#refinitemslistbuilder) arg, SchemaConfiguration configuration) |
+| [RefInItems1Boxed](#refinitems1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RefInItemsListBuilder
public class RefInItemsListBuilder
builder for `List<@Nullable Object>`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInNot.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInNot.md
index 2f2127e82b0..061bbd12510 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInNot.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInNot.md
@@ -4,23 +4,23 @@ public class RefInNot
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInNot.RefInNot1Boxed](#refinnot1boxed) abstract sealed validated payload class |
-| static class | [RefInNot.RefInNot1BoxedVoid](#refinnot1boxedvoid) boxed class to store validated null payloads |
-| static class | [RefInNot.RefInNot1BoxedBoolean](#refinnot1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RefInNot.RefInNot1BoxedNumber](#refinnot1boxednumber) boxed class to store validated Number payloads |
-| static class | [RefInNot.RefInNot1BoxedString](#refinnot1boxedstring) boxed class to store validated String payloads |
-| static class | [RefInNot.RefInNot1BoxedList](#refinnot1boxedlist) boxed class to store validated List payloads |
-| static class | [RefInNot.RefInNot1BoxedMap](#refinnot1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RefInNot.RefInNot1Boxed](#refinnot1boxed) sealed interface for validated payloads |
+| record | [RefInNot.RefInNot1BoxedVoid](#refinnot1boxedvoid) boxed class to store validated null payloads |
+| record | [RefInNot.RefInNot1BoxedBoolean](#refinnot1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RefInNot.RefInNot1BoxedNumber](#refinnot1boxednumber) boxed class to store validated Number payloads |
+| record | [RefInNot.RefInNot1BoxedString](#refinnot1boxedstring) boxed class to store validated String payloads |
+| record | [RefInNot.RefInNot1BoxedList](#refinnot1boxedlist) boxed class to store validated List payloads |
+| record | [RefInNot.RefInNot1BoxedMap](#refinnot1boxedmap) boxed class to store validated Map payloads |
| static class | [RefInNot.RefInNot1](#refinnot1) schema class |
## RefInNot1Boxed
-public static abstract sealed class RefInNot1Boxed
+public sealed interface RefInNot1Boxed
permits
[RefInNot1BoxedVoid](#refinnot1boxedvoid),
[RefInNot1BoxedBoolean](#refinnot1boxedboolean),
@@ -29,103 +29,109 @@ permits
[RefInNot1BoxedList](#refinnot1boxedlist),
[RefInNot1BoxedMap](#refinnot1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInNot1BoxedVoid
-public static final class RefInNot1BoxedVoid
-extends [RefInNot1Boxed](#refinnot1boxed)
+public record RefInNot1BoxedVoid
+implements [RefInNot1Boxed](#refinnot1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInNot1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInNot1BoxedBoolean
-public static final class RefInNot1BoxedBoolean
-extends [RefInNot1Boxed](#refinnot1boxed)
+public record RefInNot1BoxedBoolean
+implements [RefInNot1Boxed](#refinnot1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInNot1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInNot1BoxedNumber
-public static final class RefInNot1BoxedNumber
-extends [RefInNot1Boxed](#refinnot1boxed)
+public record RefInNot1BoxedNumber
+implements [RefInNot1Boxed](#refinnot1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInNot1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInNot1BoxedString
-public static final class RefInNot1BoxedString
-extends [RefInNot1Boxed](#refinnot1boxed)
+public record RefInNot1BoxedString
+implements [RefInNot1Boxed](#refinnot1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInNot1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInNot1BoxedList
-public static final class RefInNot1BoxedList
-extends [RefInNot1Boxed](#refinnot1boxed)
+public record RefInNot1BoxedList
+implements [RefInNot1Boxed](#refinnot1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInNot1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInNot1BoxedMap
-public static final class RefInNot1BoxedMap
-extends [RefInNot1Boxed](#refinnot1boxed)
+public record RefInNot1BoxedMap
+implements [RefInNot1Boxed](#refinnot1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInNot1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInNot1
public static class RefInNot1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [RefInNot1BoxedBoolean](#refinnot1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RefInNot1BoxedMap](#refinnot1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [RefInNot1BoxedList](#refinnot1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RefInNot1Boxed](#refinnot1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInOneof.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInOneof.md
index f532a514601..ec5a6fe66ba 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInOneof.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInOneof.md
@@ -4,23 +4,23 @@ public class RefInOneof
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInOneof.RefInOneof1Boxed](#refinoneof1boxed) abstract sealed validated payload class |
-| static class | [RefInOneof.RefInOneof1BoxedVoid](#refinoneof1boxedvoid) boxed class to store validated null payloads |
-| static class | [RefInOneof.RefInOneof1BoxedBoolean](#refinoneof1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RefInOneof.RefInOneof1BoxedNumber](#refinoneof1boxednumber) boxed class to store validated Number payloads |
-| static class | [RefInOneof.RefInOneof1BoxedString](#refinoneof1boxedstring) boxed class to store validated String payloads |
-| static class | [RefInOneof.RefInOneof1BoxedList](#refinoneof1boxedlist) boxed class to store validated List payloads |
-| static class | [RefInOneof.RefInOneof1BoxedMap](#refinoneof1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RefInOneof.RefInOneof1Boxed](#refinoneof1boxed) sealed interface for validated payloads |
+| record | [RefInOneof.RefInOneof1BoxedVoid](#refinoneof1boxedvoid) boxed class to store validated null payloads |
+| record | [RefInOneof.RefInOneof1BoxedBoolean](#refinoneof1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RefInOneof.RefInOneof1BoxedNumber](#refinoneof1boxednumber) boxed class to store validated Number payloads |
+| record | [RefInOneof.RefInOneof1BoxedString](#refinoneof1boxedstring) boxed class to store validated String payloads |
+| record | [RefInOneof.RefInOneof1BoxedList](#refinoneof1boxedlist) boxed class to store validated List payloads |
+| record | [RefInOneof.RefInOneof1BoxedMap](#refinoneof1boxedmap) boxed class to store validated Map payloads |
| static class | [RefInOneof.RefInOneof1](#refinoneof1) schema class |
## RefInOneof1Boxed
-public static abstract sealed class RefInOneof1Boxed
+public sealed interface RefInOneof1Boxed
permits
[RefInOneof1BoxedVoid](#refinoneof1boxedvoid),
[RefInOneof1BoxedBoolean](#refinoneof1boxedboolean),
@@ -29,103 +29,109 @@ permits
[RefInOneof1BoxedList](#refinoneof1boxedlist),
[RefInOneof1BoxedMap](#refinoneof1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInOneof1BoxedVoid
-public static final class RefInOneof1BoxedVoid
-extends [RefInOneof1Boxed](#refinoneof1boxed)
+public record RefInOneof1BoxedVoid
+implements [RefInOneof1Boxed](#refinoneof1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInOneof1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInOneof1BoxedBoolean
-public static final class RefInOneof1BoxedBoolean
-extends [RefInOneof1Boxed](#refinoneof1boxed)
+public record RefInOneof1BoxedBoolean
+implements [RefInOneof1Boxed](#refinoneof1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInOneof1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInOneof1BoxedNumber
-public static final class RefInOneof1BoxedNumber
-extends [RefInOneof1Boxed](#refinoneof1boxed)
+public record RefInOneof1BoxedNumber
+implements [RefInOneof1Boxed](#refinoneof1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInOneof1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInOneof1BoxedString
-public static final class RefInOneof1BoxedString
-extends [RefInOneof1Boxed](#refinoneof1boxed)
+public record RefInOneof1BoxedString
+implements [RefInOneof1Boxed](#refinoneof1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInOneof1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInOneof1BoxedList
-public static final class RefInOneof1BoxedList
-extends [RefInOneof1Boxed](#refinoneof1boxed)
+public record RefInOneof1BoxedList
+implements [RefInOneof1Boxed](#refinoneof1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInOneof1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInOneof1BoxedMap
-public static final class RefInOneof1BoxedMap
-extends [RefInOneof1Boxed](#refinoneof1boxed)
+public record RefInOneof1BoxedMap
+implements [RefInOneof1Boxed](#refinoneof1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInOneof1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInOneof1
public static class RefInOneof1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [RefInOneof1BoxedBoolean](#refinoneof1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RefInOneof1BoxedMap](#refinoneof1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [RefInOneof1BoxedList](#refinoneof1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RefInOneof1Boxed](#refinoneof1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md
index 96c8267ff2a..63ded6bc398 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RefInProperty.md
@@ -4,7 +4,7 @@ public class RefInProperty
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,19 +12,19 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RefInProperty.RefInProperty1Boxed](#refinproperty1boxed) abstract sealed validated payload class |
-| static class | [RefInProperty.RefInProperty1BoxedVoid](#refinproperty1boxedvoid) boxed class to store validated null payloads |
-| static class | [RefInProperty.RefInProperty1BoxedBoolean](#refinproperty1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RefInProperty.RefInProperty1BoxedNumber](#refinproperty1boxednumber) boxed class to store validated Number payloads |
-| static class | [RefInProperty.RefInProperty1BoxedString](#refinproperty1boxedstring) boxed class to store validated String payloads |
-| static class | [RefInProperty.RefInProperty1BoxedList](#refinproperty1boxedlist) boxed class to store validated List payloads |
-| static class | [RefInProperty.RefInProperty1BoxedMap](#refinproperty1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RefInProperty.RefInProperty1Boxed](#refinproperty1boxed) sealed interface for validated payloads |
+| record | [RefInProperty.RefInProperty1BoxedVoid](#refinproperty1boxedvoid) boxed class to store validated null payloads |
+| record | [RefInProperty.RefInProperty1BoxedBoolean](#refinproperty1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RefInProperty.RefInProperty1BoxedNumber](#refinproperty1boxednumber) boxed class to store validated Number payloads |
+| record | [RefInProperty.RefInProperty1BoxedString](#refinproperty1boxedstring) boxed class to store validated String payloads |
+| record | [RefInProperty.RefInProperty1BoxedList](#refinproperty1boxedlist) boxed class to store validated List payloads |
+| record | [RefInProperty.RefInProperty1BoxedMap](#refinproperty1boxedmap) boxed class to store validated Map payloads |
| static class | [RefInProperty.RefInProperty1](#refinproperty1) schema class |
| static class | [RefInProperty.RefInPropertyMapBuilder](#refinpropertymapbuilder) builder for Map payloads |
| static class | [RefInProperty.RefInPropertyMap](#refinpropertymap) output class for Map payloads |
## RefInProperty1Boxed
-public static abstract sealed class RefInProperty1Boxed
+public sealed interface RefInProperty1Boxed
permits
[RefInProperty1BoxedVoid](#refinproperty1boxedvoid),
[RefInProperty1BoxedBoolean](#refinproperty1boxedboolean),
@@ -33,103 +33,109 @@ permits
[RefInProperty1BoxedList](#refinproperty1boxedlist),
[RefInProperty1BoxedMap](#refinproperty1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RefInProperty1BoxedVoid
-public static final class RefInProperty1BoxedVoid
-extends [RefInProperty1Boxed](#refinproperty1boxed)
+public record RefInProperty1BoxedVoid
+implements [RefInProperty1Boxed](#refinproperty1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInProperty1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInProperty1BoxedBoolean
-public static final class RefInProperty1BoxedBoolean
-extends [RefInProperty1Boxed](#refinproperty1boxed)
+public record RefInProperty1BoxedBoolean
+implements [RefInProperty1Boxed](#refinproperty1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInProperty1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInProperty1BoxedNumber
-public static final class RefInProperty1BoxedNumber
-extends [RefInProperty1Boxed](#refinproperty1boxed)
+public record RefInProperty1BoxedNumber
+implements [RefInProperty1Boxed](#refinproperty1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInProperty1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInProperty1BoxedString
-public static final class RefInProperty1BoxedString
-extends [RefInProperty1Boxed](#refinproperty1boxed)
+public record RefInProperty1BoxedString
+implements [RefInProperty1Boxed](#refinproperty1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInProperty1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInProperty1BoxedList
-public static final class RefInProperty1BoxedList
-extends [RefInProperty1Boxed](#refinproperty1boxed)
+public record RefInProperty1BoxedList
+implements [RefInProperty1Boxed](#refinproperty1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInProperty1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInProperty1BoxedMap
-public static final class RefInProperty1BoxedMap
-extends [RefInProperty1Boxed](#refinproperty1boxed)
+public record RefInProperty1BoxedMap
+implements [RefInProperty1Boxed](#refinproperty1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RefInProperty1BoxedMap([RefInPropertyMap](#refinpropertymap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RefInPropertyMap](#refinpropertymap) | data validated payload |
+| [RefInPropertyMap](#refinpropertymap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RefInProperty1
public static class RefInProperty1
@@ -161,7 +167,9 @@ A schema class that validates payloads
| [RefInProperty1BoxedBoolean](#refinproperty1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RefInProperty1BoxedMap](#refinproperty1boxedmap) | validateAndBox([Map<?, ?>](#refinpropertymapbuilder) arg, SchemaConfiguration configuration) |
| [RefInProperty1BoxedList](#refinproperty1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RefInProperty1Boxed](#refinproperty1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RefInPropertyMapBuilder
public class RefInPropertyMapBuilder
builder for `Map`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md
index e50e0a3c2e1..365a4f96ff4 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredDefaultValidation.md
@@ -4,7 +4,7 @@ public class RequiredDefaultValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,27 +12,27 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed) abstract sealed validated payload class |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedVoid](#requireddefaultvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedBoolean](#requireddefaultvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedNumber](#requireddefaultvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedString](#requireddefaultvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedList](#requireddefaultvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedMap](#requireddefaultvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredDefaultValidation.RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed) sealed interface for validated payloads |
+| record | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedVoid](#requireddefaultvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedBoolean](#requireddefaultvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedNumber](#requireddefaultvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedString](#requireddefaultvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedList](#requireddefaultvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [RequiredDefaultValidation.RequiredDefaultValidation1BoxedMap](#requireddefaultvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [RequiredDefaultValidation.RequiredDefaultValidation1](#requireddefaultvalidation1) schema class |
| static class | [RequiredDefaultValidation.RequiredDefaultValidationMapBuilder](#requireddefaultvalidationmapbuilder) builder for Map payloads |
| static class | [RequiredDefaultValidation.RequiredDefaultValidationMap](#requireddefaultvalidationmap) output class for Map payloads |
-| static class | [RequiredDefaultValidation.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [RequiredDefaultValidation.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredDefaultValidation.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredDefaultValidation.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredDefaultValidation.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [RequiredDefaultValidation.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [RequiredDefaultValidation.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredDefaultValidation.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [RequiredDefaultValidation.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [RequiredDefaultValidation.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredDefaultValidation.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [RequiredDefaultValidation.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [RequiredDefaultValidation.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [RequiredDefaultValidation.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [RequiredDefaultValidation.Foo](#foo) schema class |
## RequiredDefaultValidation1Boxed
-public static abstract sealed class RequiredDefaultValidation1Boxed
+public sealed interface RequiredDefaultValidation1Boxed
permits
[RequiredDefaultValidation1BoxedVoid](#requireddefaultvalidation1boxedvoid),
[RequiredDefaultValidation1BoxedBoolean](#requireddefaultvalidation1boxedboolean),
@@ -41,103 +41,109 @@ permits
[RequiredDefaultValidation1BoxedList](#requireddefaultvalidation1boxedlist),
[RequiredDefaultValidation1BoxedMap](#requireddefaultvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RequiredDefaultValidation1BoxedVoid
-public static final class RequiredDefaultValidation1BoxedVoid
-extends [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
+public record RequiredDefaultValidation1BoxedVoid
+implements [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredDefaultValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredDefaultValidation1BoxedBoolean
-public static final class RequiredDefaultValidation1BoxedBoolean
-extends [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
+public record RequiredDefaultValidation1BoxedBoolean
+implements [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredDefaultValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredDefaultValidation1BoxedNumber
-public static final class RequiredDefaultValidation1BoxedNumber
-extends [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
+public record RequiredDefaultValidation1BoxedNumber
+implements [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredDefaultValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredDefaultValidation1BoxedString
-public static final class RequiredDefaultValidation1BoxedString
-extends [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
+public record RequiredDefaultValidation1BoxedString
+implements [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredDefaultValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredDefaultValidation1BoxedList
-public static final class RequiredDefaultValidation1BoxedList
-extends [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
+public record RequiredDefaultValidation1BoxedList
+implements [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredDefaultValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredDefaultValidation1BoxedMap
-public static final class RequiredDefaultValidation1BoxedMap
-extends [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
+public record RequiredDefaultValidation1BoxedMap
+implements [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredDefaultValidation1BoxedMap([RequiredDefaultValidationMap](#requireddefaultvalidationmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RequiredDefaultValidationMap](#requireddefaultvalidationmap) | data validated payload |
+| [RequiredDefaultValidationMap](#requireddefaultvalidationmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredDefaultValidation1
public static class RequiredDefaultValidation1
@@ -169,7 +175,9 @@ A schema class that validates payloads
| [RequiredDefaultValidation1BoxedBoolean](#requireddefaultvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RequiredDefaultValidation1BoxedMap](#requireddefaultvalidation1boxedmap) | validateAndBox([Map<?, ?>](#requireddefaultvalidationmapbuilder) arg, SchemaConfiguration configuration) |
| [RequiredDefaultValidation1BoxedList](#requireddefaultvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RequiredDefaultValidation1Boxed](#requireddefaultvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RequiredDefaultValidationMapBuilder
public class RequiredDefaultValidationMapBuilder
builder for `Map`
@@ -218,7 +226,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -227,103 +235,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md
index 8b9f025df75..8db2b0fbc2b 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredValidation.md
@@ -4,7 +4,7 @@ public class RequiredValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,35 +12,35 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RequiredValidation.RequiredValidation1Boxed](#requiredvalidation1boxed) abstract sealed validated payload class |
-| static class | [RequiredValidation.RequiredValidation1BoxedVoid](#requiredvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredValidation.RequiredValidation1BoxedBoolean](#requiredvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredValidation.RequiredValidation1BoxedNumber](#requiredvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredValidation.RequiredValidation1BoxedString](#requiredvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [RequiredValidation.RequiredValidation1BoxedList](#requiredvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [RequiredValidation.RequiredValidation1BoxedMap](#requiredvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredValidation.RequiredValidation1Boxed](#requiredvalidation1boxed) sealed interface for validated payloads |
+| record | [RequiredValidation.RequiredValidation1BoxedVoid](#requiredvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [RequiredValidation.RequiredValidation1BoxedBoolean](#requiredvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredValidation.RequiredValidation1BoxedNumber](#requiredvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [RequiredValidation.RequiredValidation1BoxedString](#requiredvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [RequiredValidation.RequiredValidation1BoxedList](#requiredvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [RequiredValidation.RequiredValidation1BoxedMap](#requiredvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [RequiredValidation.RequiredValidation1](#requiredvalidation1) schema class |
| static class | [RequiredValidation.RequiredValidationMapBuilder](#requiredvalidationmapbuilder) builder for Map payloads |
| static class | [RequiredValidation.RequiredValidationMap](#requiredvalidationmap) output class for Map payloads |
-| static class | [RequiredValidation.BarBoxed](#barboxed) abstract sealed validated payload class |
-| static class | [RequiredValidation.BarBoxedVoid](#barboxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredValidation.BarBoxedBoolean](#barboxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredValidation.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredValidation.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
-| static class | [RequiredValidation.BarBoxedList](#barboxedlist) boxed class to store validated List payloads |
-| static class | [RequiredValidation.BarBoxedMap](#barboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredValidation.BarBoxed](#barboxed) sealed interface for validated payloads |
+| record | [RequiredValidation.BarBoxedVoid](#barboxedvoid) boxed class to store validated null payloads |
+| record | [RequiredValidation.BarBoxedBoolean](#barboxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredValidation.BarBoxedNumber](#barboxednumber) boxed class to store validated Number payloads |
+| record | [RequiredValidation.BarBoxedString](#barboxedstring) boxed class to store validated String payloads |
+| record | [RequiredValidation.BarBoxedList](#barboxedlist) boxed class to store validated List payloads |
+| record | [RequiredValidation.BarBoxedMap](#barboxedmap) boxed class to store validated Map payloads |
| static class | [RequiredValidation.Bar](#bar) schema class |
-| static class | [RequiredValidation.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [RequiredValidation.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredValidation.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredValidation.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredValidation.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [RequiredValidation.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [RequiredValidation.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredValidation.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [RequiredValidation.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [RequiredValidation.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredValidation.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [RequiredValidation.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [RequiredValidation.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [RequiredValidation.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [RequiredValidation.Foo](#foo) schema class |
## RequiredValidation1Boxed
-public static abstract sealed class RequiredValidation1Boxed
+public sealed interface RequiredValidation1Boxed
permits
[RequiredValidation1BoxedVoid](#requiredvalidation1boxedvoid),
[RequiredValidation1BoxedBoolean](#requiredvalidation1boxedboolean),
@@ -49,103 +49,109 @@ permits
[RequiredValidation1BoxedList](#requiredvalidation1boxedlist),
[RequiredValidation1BoxedMap](#requiredvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RequiredValidation1BoxedVoid
-public static final class RequiredValidation1BoxedVoid
-extends [RequiredValidation1Boxed](#requiredvalidation1boxed)
+public record RequiredValidation1BoxedVoid
+implements [RequiredValidation1Boxed](#requiredvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredValidation1BoxedBoolean
-public static final class RequiredValidation1BoxedBoolean
-extends [RequiredValidation1Boxed](#requiredvalidation1boxed)
+public record RequiredValidation1BoxedBoolean
+implements [RequiredValidation1Boxed](#requiredvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredValidation1BoxedNumber
-public static final class RequiredValidation1BoxedNumber
-extends [RequiredValidation1Boxed](#requiredvalidation1boxed)
+public record RequiredValidation1BoxedNumber
+implements [RequiredValidation1Boxed](#requiredvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredValidation1BoxedString
-public static final class RequiredValidation1BoxedString
-extends [RequiredValidation1Boxed](#requiredvalidation1boxed)
+public record RequiredValidation1BoxedString
+implements [RequiredValidation1Boxed](#requiredvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredValidation1BoxedList
-public static final class RequiredValidation1BoxedList
-extends [RequiredValidation1Boxed](#requiredvalidation1boxed)
+public record RequiredValidation1BoxedList
+implements [RequiredValidation1Boxed](#requiredvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredValidation1BoxedMap
-public static final class RequiredValidation1BoxedMap
-extends [RequiredValidation1Boxed](#requiredvalidation1boxed)
+public record RequiredValidation1BoxedMap
+implements [RequiredValidation1Boxed](#requiredvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredValidation1BoxedMap([RequiredValidationMap](#requiredvalidationmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RequiredValidationMap](#requiredvalidationmap) | data validated payload |
+| [RequiredValidationMap](#requiredvalidationmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredValidation1
public static class RequiredValidation1
@@ -178,7 +184,9 @@ A schema class that validates payloads
| [RequiredValidation1BoxedBoolean](#requiredvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RequiredValidation1BoxedMap](#requiredvalidation1boxedmap) | validateAndBox([Map<?, ?>](#requiredvalidationmapbuilder) arg, SchemaConfiguration configuration) |
| [RequiredValidation1BoxedList](#requiredvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RequiredValidation1Boxed](#requiredvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RequiredValidationMap0Builder
public class RequiredValidationMap0Builder
builder for `Map`
@@ -252,7 +260,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## BarBoxed
-public static abstract sealed class BarBoxed
+public sealed interface BarBoxed
permits
[BarBoxedVoid](#barboxedvoid),
[BarBoxedBoolean](#barboxedboolean),
@@ -261,103 +269,109 @@ permits
[BarBoxedList](#barboxedlist),
[BarBoxedMap](#barboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## BarBoxedVoid
-public static final class BarBoxedVoid
-extends [BarBoxed](#barboxed)
+public record BarBoxedVoid
+implements [BarBoxed](#barboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedBoolean
-public static final class BarBoxedBoolean
-extends [BarBoxed](#barboxed)
+public record BarBoxedBoolean
+implements [BarBoxed](#barboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedNumber
-public static final class BarBoxedNumber
-extends [BarBoxed](#barboxed)
+public record BarBoxedNumber
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedString
-public static final class BarBoxedString
-extends [BarBoxed](#barboxed)
+public record BarBoxedString
+implements [BarBoxed](#barboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedList
-public static final class BarBoxedList
-extends [BarBoxed](#barboxed)
+public record BarBoxedList
+implements [BarBoxed](#barboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## BarBoxedMap
-public static final class BarBoxedMap
-extends [BarBoxed](#barboxed)
+public record BarBoxedMap
+implements [BarBoxed](#barboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| BarBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Bar
public static class Bar
@@ -371,7 +385,7 @@ A schema class that validates payloads
| validateAndBox |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -380,103 +394,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md
index 91edade5906..a1761569c18 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEmptyArray.md
@@ -4,7 +4,7 @@ public class RequiredWithEmptyArray
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,27 +12,27 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed) abstract sealed validated payload class |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedVoid](#requiredwithemptyarray1boxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedBoolean](#requiredwithemptyarray1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedNumber](#requiredwithemptyarray1boxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedString](#requiredwithemptyarray1boxedstring) boxed class to store validated String payloads |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedList](#requiredwithemptyarray1boxedlist) boxed class to store validated List payloads |
-| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedMap](#requiredwithemptyarray1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredWithEmptyArray.RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed) sealed interface for validated payloads |
+| record | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedVoid](#requiredwithemptyarray1boxedvoid) boxed class to store validated null payloads |
+| record | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedBoolean](#requiredwithemptyarray1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedNumber](#requiredwithemptyarray1boxednumber) boxed class to store validated Number payloads |
+| record | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedString](#requiredwithemptyarray1boxedstring) boxed class to store validated String payloads |
+| record | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedList](#requiredwithemptyarray1boxedlist) boxed class to store validated List payloads |
+| record | [RequiredWithEmptyArray.RequiredWithEmptyArray1BoxedMap](#requiredwithemptyarray1boxedmap) boxed class to store validated Map payloads |
| static class | [RequiredWithEmptyArray.RequiredWithEmptyArray1](#requiredwithemptyarray1) schema class |
| static class | [RequiredWithEmptyArray.RequiredWithEmptyArrayMapBuilder](#requiredwithemptyarraymapbuilder) builder for Map payloads |
| static class | [RequiredWithEmptyArray.RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) output class for Map payloads |
-| static class | [RequiredWithEmptyArray.FooBoxed](#fooboxed) abstract sealed validated payload class |
-| static class | [RequiredWithEmptyArray.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredWithEmptyArray.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredWithEmptyArray.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredWithEmptyArray.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
-| static class | [RequiredWithEmptyArray.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
-| static class | [RequiredWithEmptyArray.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredWithEmptyArray.FooBoxed](#fooboxed) sealed interface for validated payloads |
+| record | [RequiredWithEmptyArray.FooBoxedVoid](#fooboxedvoid) boxed class to store validated null payloads |
+| record | [RequiredWithEmptyArray.FooBoxedBoolean](#fooboxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredWithEmptyArray.FooBoxedNumber](#fooboxednumber) boxed class to store validated Number payloads |
+| record | [RequiredWithEmptyArray.FooBoxedString](#fooboxedstring) boxed class to store validated String payloads |
+| record | [RequiredWithEmptyArray.FooBoxedList](#fooboxedlist) boxed class to store validated List payloads |
+| record | [RequiredWithEmptyArray.FooBoxedMap](#fooboxedmap) boxed class to store validated Map payloads |
| static class | [RequiredWithEmptyArray.Foo](#foo) schema class |
## RequiredWithEmptyArray1Boxed
-public static abstract sealed class RequiredWithEmptyArray1Boxed
+public sealed interface RequiredWithEmptyArray1Boxed
permits
[RequiredWithEmptyArray1BoxedVoid](#requiredwithemptyarray1boxedvoid),
[RequiredWithEmptyArray1BoxedBoolean](#requiredwithemptyarray1boxedboolean),
@@ -41,103 +41,109 @@ permits
[RequiredWithEmptyArray1BoxedList](#requiredwithemptyarray1boxedlist),
[RequiredWithEmptyArray1BoxedMap](#requiredwithemptyarray1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RequiredWithEmptyArray1BoxedVoid
-public static final class RequiredWithEmptyArray1BoxedVoid
-extends [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
+public record RequiredWithEmptyArray1BoxedVoid
+implements [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEmptyArray1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEmptyArray1BoxedBoolean
-public static final class RequiredWithEmptyArray1BoxedBoolean
-extends [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
+public record RequiredWithEmptyArray1BoxedBoolean
+implements [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEmptyArray1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEmptyArray1BoxedNumber
-public static final class RequiredWithEmptyArray1BoxedNumber
-extends [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
+public record RequiredWithEmptyArray1BoxedNumber
+implements [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEmptyArray1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEmptyArray1BoxedString
-public static final class RequiredWithEmptyArray1BoxedString
-extends [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
+public record RequiredWithEmptyArray1BoxedString
+implements [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEmptyArray1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEmptyArray1BoxedList
-public static final class RequiredWithEmptyArray1BoxedList
-extends [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
+public record RequiredWithEmptyArray1BoxedList
+implements [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEmptyArray1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEmptyArray1BoxedMap
-public static final class RequiredWithEmptyArray1BoxedMap
-extends [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
+public record RequiredWithEmptyArray1BoxedMap
+implements [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEmptyArray1BoxedMap([RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) | data validated payload |
+| [RequiredWithEmptyArrayMap](#requiredwithemptyarraymap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEmptyArray1
public static class RequiredWithEmptyArray1
@@ -169,7 +175,9 @@ A schema class that validates payloads
| [RequiredWithEmptyArray1BoxedBoolean](#requiredwithemptyarray1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RequiredWithEmptyArray1BoxedMap](#requiredwithemptyarray1boxedmap) | validateAndBox([Map<?, ?>](#requiredwithemptyarraymapbuilder) arg, SchemaConfiguration configuration) |
| [RequiredWithEmptyArray1BoxedList](#requiredwithemptyarray1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RequiredWithEmptyArray1Boxed](#requiredwithemptyarray1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RequiredWithEmptyArrayMapBuilder
public class RequiredWithEmptyArrayMapBuilder
builder for `Map`
@@ -218,7 +226,7 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## FooBoxed
-public static abstract sealed class FooBoxed
+public sealed interface FooBoxed
permits
[FooBoxedVoid](#fooboxedvoid),
[FooBoxedBoolean](#fooboxedboolean),
@@ -227,103 +235,109 @@ permits
[FooBoxedList](#fooboxedlist),
[FooBoxedMap](#fooboxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## FooBoxedVoid
-public static final class FooBoxedVoid
-extends [FooBoxed](#fooboxed)
+public record FooBoxedVoid
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedBoolean
-public static final class FooBoxedBoolean
-extends [FooBoxed](#fooboxed)
+public record FooBoxedBoolean
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedNumber
-public static final class FooBoxedNumber
-extends [FooBoxed](#fooboxed)
+public record FooBoxedNumber
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedString
-public static final class FooBoxedString
-extends [FooBoxed](#fooboxed)
+public record FooBoxedString
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedList
-public static final class FooBoxedList
-extends [FooBoxed](#fooboxed)
+public record FooBoxedList
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## FooBoxedMap
-public static final class FooBoxedMap
-extends [FooBoxed](#fooboxed)
+public record FooBoxedMap
+implements [FooBoxed](#fooboxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| FooBoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Foo
public static class Foo
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md
index 284e500c4d3..753c5d0241d 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/RequiredWithEscapedCharacters.md
@@ -4,7 +4,7 @@ public class RequiredWithEscapedCharacters
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,19 +12,19 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed) abstract sealed validated payload class |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedVoid](#requiredwithescapedcharacters1boxedvoid) boxed class to store validated null payloads |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedBoolean](#requiredwithescapedcharacters1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedNumber](#requiredwithescapedcharacters1boxednumber) boxed class to store validated Number payloads |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedString](#requiredwithescapedcharacters1boxedstring) boxed class to store validated String payloads |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedList](#requiredwithescapedcharacters1boxedlist) boxed class to store validated List payloads |
-| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedMap](#requiredwithescapedcharacters1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed) sealed interface for validated payloads |
+| record | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedVoid](#requiredwithescapedcharacters1boxedvoid) boxed class to store validated null payloads |
+| record | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedBoolean](#requiredwithescapedcharacters1boxedboolean) boxed class to store validated boolean payloads |
+| record | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedNumber](#requiredwithescapedcharacters1boxednumber) boxed class to store validated Number payloads |
+| record | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedString](#requiredwithescapedcharacters1boxedstring) boxed class to store validated String payloads |
+| record | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedList](#requiredwithescapedcharacters1boxedlist) boxed class to store validated List payloads |
+| record | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1BoxedMap](#requiredwithescapedcharacters1boxedmap) boxed class to store validated Map payloads |
| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharacters1](#requiredwithescapedcharacters1) schema class |
| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharactersMapBuilder](#requiredwithescapedcharactersmapbuilder) builder for Map payloads |
| static class | [RequiredWithEscapedCharacters.RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) output class for Map payloads |
## RequiredWithEscapedCharacters1Boxed
-public static abstract sealed class RequiredWithEscapedCharacters1Boxed
+public sealed interface RequiredWithEscapedCharacters1Boxed
permits
[RequiredWithEscapedCharacters1BoxedVoid](#requiredwithescapedcharacters1boxedvoid),
[RequiredWithEscapedCharacters1BoxedBoolean](#requiredwithescapedcharacters1boxedboolean),
@@ -33,103 +33,109 @@ permits
[RequiredWithEscapedCharacters1BoxedList](#requiredwithescapedcharacters1boxedlist),
[RequiredWithEscapedCharacters1BoxedMap](#requiredwithescapedcharacters1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## RequiredWithEscapedCharacters1BoxedVoid
-public static final class RequiredWithEscapedCharacters1BoxedVoid
-extends [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
+public record RequiredWithEscapedCharacters1BoxedVoid
+implements [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEscapedCharacters1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEscapedCharacters1BoxedBoolean
-public static final class RequiredWithEscapedCharacters1BoxedBoolean
-extends [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
+public record RequiredWithEscapedCharacters1BoxedBoolean
+implements [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEscapedCharacters1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEscapedCharacters1BoxedNumber
-public static final class RequiredWithEscapedCharacters1BoxedNumber
-extends [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
+public record RequiredWithEscapedCharacters1BoxedNumber
+implements [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEscapedCharacters1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEscapedCharacters1BoxedString
-public static final class RequiredWithEscapedCharacters1BoxedString
-extends [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
+public record RequiredWithEscapedCharacters1BoxedString
+implements [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEscapedCharacters1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEscapedCharacters1BoxedList
-public static final class RequiredWithEscapedCharacters1BoxedList
-extends [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
+public record RequiredWithEscapedCharacters1BoxedList
+implements [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEscapedCharacters1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEscapedCharacters1BoxedMap
-public static final class RequiredWithEscapedCharacters1BoxedMap
-extends [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
+public record RequiredWithEscapedCharacters1BoxedMap
+implements [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| RequiredWithEscapedCharacters1BoxedMap([RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) | data validated payload |
+| [RequiredWithEscapedCharactersMap](#requiredwithescapedcharactersmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## RequiredWithEscapedCharacters1
public static class RequiredWithEscapedCharacters1
@@ -161,7 +167,9 @@ A schema class that validates payloads
| [RequiredWithEscapedCharacters1BoxedBoolean](#requiredwithescapedcharacters1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [RequiredWithEscapedCharacters1BoxedMap](#requiredwithescapedcharacters1boxedmap) | validateAndBox([Map<?, ?>](#requiredwithescapedcharactersmapbuilder) arg, SchemaConfiguration configuration) |
| [RequiredWithEscapedCharacters1BoxedList](#requiredwithescapedcharacters1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [RequiredWithEscapedCharacters1Boxed](#requiredwithescapedcharacters1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## RequiredWithEscapedCharactersMap000000Builder
public class RequiredWithEscapedCharactersMap000000Builder
builder for `Map`
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 a1927ab15d9..f1b951c38a5 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
@@ -4,15 +4,15 @@ public class SimpleEnumValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
- enum classes
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [SimpleEnumValidation.SimpleEnumValidation1Boxed](#simpleenumvalidation1boxed) abstract sealed validated payload class |
-| static class | [SimpleEnumValidation.SimpleEnumValidation1BoxedNumber](#simpleenumvalidation1boxednumber) boxed class to store validated Number payloads |
+| sealed interface | [SimpleEnumValidation.SimpleEnumValidation1Boxed](#simpleenumvalidation1boxed) sealed interface for validated payloads |
+| record | [SimpleEnumValidation.SimpleEnumValidation1BoxedNumber](#simpleenumvalidation1boxednumber) boxed class to store validated Number payloads |
| static class | [SimpleEnumValidation.SimpleEnumValidation1](#simpleenumvalidation1) schema class |
| enum | [SimpleEnumValidation.IntegerSimpleEnumValidationEnums](#integersimpleenumvalidationenums) Integer enum |
| enum | [SimpleEnumValidation.LongSimpleEnumValidationEnums](#longsimpleenumvalidationenums) Long enum |
@@ -20,27 +20,28 @@ A class that contains necessary nested
| enum | [SimpleEnumValidation.DoubleSimpleEnumValidationEnums](#doublesimpleenumvalidationenums) Double enum |
## SimpleEnumValidation1Boxed
-public static abstract sealed class SimpleEnumValidation1Boxed
+public sealed interface SimpleEnumValidation1Boxed
permits
[SimpleEnumValidation1BoxedNumber](#simpleenumvalidation1boxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## SimpleEnumValidation1BoxedNumber
-public static final class SimpleEnumValidation1BoxedNumber
-extends [SimpleEnumValidation1Boxed](#simpleenumvalidation1boxed)
+public record SimpleEnumValidation1BoxedNumber
+implements [SimpleEnumValidation1Boxed](#simpleenumvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| SimpleEnumValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## SimpleEnumValidation1
public static class SimpleEnumValidation1
@@ -81,7 +82,9 @@ int validatedPayload = SimpleEnumValidation.SimpleEnumValidation1.validate(
| ----------------- | ---------------------- |
| Number | validate(Number arg, SchemaConfiguration configuration) |
| [SimpleEnumValidation1BoxedNumber](#simpleenumvalidation1boxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) |
+| [SimpleEnumValidation1Boxed](#simpleenumvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## IntegerSimpleEnumValidationEnums
public enum IntegerSimpleEnumValidationEnums
extends `Enum`
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md
index 3d2c0b40869..5166ec0ed59 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/StringTypeMatchesStrings.md
@@ -4,38 +4,39 @@ public class StringTypeMatchesStrings
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [StringTypeMatchesStrings.StringTypeMatchesStrings1Boxed](#stringtypematchesstrings1boxed) abstract sealed validated payload class |
-| static class | [StringTypeMatchesStrings.StringTypeMatchesStrings1BoxedString](#stringtypematchesstrings1boxedstring) boxed class to store validated String payloads |
+| sealed interface | [StringTypeMatchesStrings.StringTypeMatchesStrings1Boxed](#stringtypematchesstrings1boxed) sealed interface for validated payloads |
+| record | [StringTypeMatchesStrings.StringTypeMatchesStrings1BoxedString](#stringtypematchesstrings1boxedstring) boxed class to store validated String payloads |
| static class | [StringTypeMatchesStrings.StringTypeMatchesStrings1](#stringtypematchesstrings1) schema class |
## StringTypeMatchesStrings1Boxed
-public static abstract sealed class StringTypeMatchesStrings1Boxed
+public sealed interface StringTypeMatchesStrings1Boxed
permits
[StringTypeMatchesStrings1BoxedString](#stringtypematchesstrings1boxedstring)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## StringTypeMatchesStrings1BoxedString
-public static final class StringTypeMatchesStrings1BoxedString
-extends [StringTypeMatchesStrings1Boxed](#stringtypematchesstrings1boxed)
+public record StringTypeMatchesStrings1BoxedString
+implements [StringTypeMatchesStrings1Boxed](#stringtypematchesstrings1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| StringTypeMatchesStrings1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## StringTypeMatchesStrings1
public static class StringTypeMatchesStrings1
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 c08d63a93dc..7071167ca33 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
@@ -4,7 +4,7 @@ public class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- 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
@@ -12,37 +12,38 @@ A class that contains necessary nested
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxed) abstract sealed validated payload class |
-| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxed) sealed interface for validated payloads |
+| record | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxedmap) boxed class to store validated Map payloads |
| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1) schema class |
| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapbuilder) builder for Map payloads |
| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) output class for Map payloads |
-| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.AlphaBoxed](#alphaboxed) abstract sealed validated payload class |
-| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.AlphaBoxedNumber](#alphaboxednumber) boxed class to store validated Number payloads |
+| sealed interface | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.AlphaBoxed](#alphaboxed) sealed interface for validated payloads |
+| record | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.AlphaBoxedNumber](#alphaboxednumber) boxed class to store validated Number payloads |
| static class | [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.Alpha](#alpha) schema class |
## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed
-public static abstract sealed class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed
+public sealed interface TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed
permits
[TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap
-public static final class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap
-extends [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxed)
+public record TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap
+implements [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap([TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | data validated payload |
+| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | data() validated payload |
+| @Nullable Object | getData() validated payload |
## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1
public static class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1
@@ -87,7 +88,9 @@ TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.TheDefaultKeywordDoesNo
| ----------------- | ---------------------- |
| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmap) | validate([Map<?, ?>](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapbuilder) arg, SchemaConfiguration configuration) |
| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1BoxedMap](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxedmap) | validateAndBox([Map<?, ?>](#thedefaultkeyworddoesnotdoanythingifthepropertyismissingmapbuilder) arg, SchemaConfiguration configuration) |
+| [TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing1Boxed](#thedefaultkeyworddoesnotdoanythingifthepropertyismissing1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder
public class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingMapBuilder
builder for `Map`
@@ -131,27 +134,28 @@ A class to store validated Map payloads
| @Nullable Object | getAdditionalProperty(String name) provides type safety for additional properties |
## AlphaBoxed
-public static abstract sealed class AlphaBoxed
+public sealed interface AlphaBoxed
permits
[AlphaBoxedNumber](#alphaboxednumber)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## AlphaBoxedNumber
-public static final class AlphaBoxedNumber
-extends [AlphaBoxed](#alphaboxed)
+public record AlphaBoxedNumber
+implements [AlphaBoxed](#alphaboxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| AlphaBoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## Alpha
public static class Alpha
@@ -193,5 +197,7 @@ int validatedPayload = TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing.
| ----------------- | ---------------------- |
| Number | validate(Number arg, SchemaConfiguration configuration) |
| [AlphaBoxedNumber](#alphaboxednumber) | validateAndBox(Number arg, SchemaConfiguration configuration) |
+| [AlphaBoxed](#alphaboxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md
index d535b08ed84..322fd231596 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsFalseValidation.md
@@ -4,23 +4,23 @@ public class UniqueitemsFalseValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed) abstract sealed validated payload class |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedVoid](#uniqueitemsfalsevalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedBoolean](#uniqueitemsfalsevalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedNumber](#uniqueitemsfalsevalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedString](#uniqueitemsfalsevalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedList](#uniqueitemsfalsevalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedMap](#uniqueitemsfalsevalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed) sealed interface for validated payloads |
+| record | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedVoid](#uniqueitemsfalsevalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedBoolean](#uniqueitemsfalsevalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedNumber](#uniqueitemsfalsevalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedString](#uniqueitemsfalsevalidation1boxedstring) boxed class to store validated String payloads |
+| record | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedList](#uniqueitemsfalsevalidation1boxedlist) boxed class to store validated List payloads |
+| record | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1BoxedMap](#uniqueitemsfalsevalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [UniqueitemsFalseValidation.UniqueitemsFalseValidation1](#uniqueitemsfalsevalidation1) schema class |
## UniqueitemsFalseValidation1Boxed
-public static abstract sealed class UniqueitemsFalseValidation1Boxed
+public sealed interface UniqueitemsFalseValidation1Boxed
permits
[UniqueitemsFalseValidation1BoxedVoid](#uniqueitemsfalsevalidation1boxedvoid),
[UniqueitemsFalseValidation1BoxedBoolean](#uniqueitemsfalsevalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[UniqueitemsFalseValidation1BoxedList](#uniqueitemsfalsevalidation1boxedlist),
[UniqueitemsFalseValidation1BoxedMap](#uniqueitemsfalsevalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## UniqueitemsFalseValidation1BoxedVoid
-public static final class UniqueitemsFalseValidation1BoxedVoid
-extends [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
+public record UniqueitemsFalseValidation1BoxedVoid
+implements [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsFalseValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsFalseValidation1BoxedBoolean
-public static final class UniqueitemsFalseValidation1BoxedBoolean
-extends [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
+public record UniqueitemsFalseValidation1BoxedBoolean
+implements [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsFalseValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsFalseValidation1BoxedNumber
-public static final class UniqueitemsFalseValidation1BoxedNumber
-extends [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
+public record UniqueitemsFalseValidation1BoxedNumber
+implements [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsFalseValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsFalseValidation1BoxedString
-public static final class UniqueitemsFalseValidation1BoxedString
-extends [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
+public record UniqueitemsFalseValidation1BoxedString
+implements [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsFalseValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsFalseValidation1BoxedList
-public static final class UniqueitemsFalseValidation1BoxedList
-extends [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
+public record UniqueitemsFalseValidation1BoxedList
+implements [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsFalseValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsFalseValidation1BoxedMap
-public static final class UniqueitemsFalseValidation1BoxedMap
-extends [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
+public record UniqueitemsFalseValidation1BoxedMap
+implements [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsFalseValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsFalseValidation1
public static class UniqueitemsFalseValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [UniqueitemsFalseValidation1BoxedBoolean](#uniqueitemsfalsevalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [UniqueitemsFalseValidation1BoxedMap](#uniqueitemsfalsevalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [UniqueitemsFalseValidation1BoxedList](#uniqueitemsfalsevalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [UniqueitemsFalseValidation1Boxed](#uniqueitemsfalsevalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsValidation.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsValidation.md
index ba4c7a9730c..be6b794fe51 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsValidation.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UniqueitemsValidation.md
@@ -4,23 +4,23 @@ public class UniqueitemsValidation
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed) abstract sealed validated payload class |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1BoxedVoid](#uniqueitemsvalidation1boxedvoid) boxed class to store validated null payloads |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1BoxedBoolean](#uniqueitemsvalidation1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1BoxedNumber](#uniqueitemsvalidation1boxednumber) boxed class to store validated Number payloads |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1BoxedString](#uniqueitemsvalidation1boxedstring) boxed class to store validated String payloads |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1BoxedList](#uniqueitemsvalidation1boxedlist) boxed class to store validated List payloads |
-| static class | [UniqueitemsValidation.UniqueitemsValidation1BoxedMap](#uniqueitemsvalidation1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [UniqueitemsValidation.UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed) sealed interface for validated payloads |
+| record | [UniqueitemsValidation.UniqueitemsValidation1BoxedVoid](#uniqueitemsvalidation1boxedvoid) boxed class to store validated null payloads |
+| record | [UniqueitemsValidation.UniqueitemsValidation1BoxedBoolean](#uniqueitemsvalidation1boxedboolean) boxed class to store validated boolean payloads |
+| record | [UniqueitemsValidation.UniqueitemsValidation1BoxedNumber](#uniqueitemsvalidation1boxednumber) boxed class to store validated Number payloads |
+| record | [UniqueitemsValidation.UniqueitemsValidation1BoxedString](#uniqueitemsvalidation1boxedstring) boxed class to store validated String payloads |
+| record | [UniqueitemsValidation.UniqueitemsValidation1BoxedList](#uniqueitemsvalidation1boxedlist) boxed class to store validated List payloads |
+| record | [UniqueitemsValidation.UniqueitemsValidation1BoxedMap](#uniqueitemsvalidation1boxedmap) boxed class to store validated Map payloads |
| static class | [UniqueitemsValidation.UniqueitemsValidation1](#uniqueitemsvalidation1) schema class |
## UniqueitemsValidation1Boxed
-public static abstract sealed class UniqueitemsValidation1Boxed
+public sealed interface UniqueitemsValidation1Boxed
permits
[UniqueitemsValidation1BoxedVoid](#uniqueitemsvalidation1boxedvoid),
[UniqueitemsValidation1BoxedBoolean](#uniqueitemsvalidation1boxedboolean),
@@ -29,103 +29,109 @@ permits
[UniqueitemsValidation1BoxedList](#uniqueitemsvalidation1boxedlist),
[UniqueitemsValidation1BoxedMap](#uniqueitemsvalidation1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## UniqueitemsValidation1BoxedVoid
-public static final class UniqueitemsValidation1BoxedVoid
-extends [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
+public record UniqueitemsValidation1BoxedVoid
+implements [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsValidation1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsValidation1BoxedBoolean
-public static final class UniqueitemsValidation1BoxedBoolean
-extends [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
+public record UniqueitemsValidation1BoxedBoolean
+implements [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsValidation1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsValidation1BoxedNumber
-public static final class UniqueitemsValidation1BoxedNumber
-extends [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
+public record UniqueitemsValidation1BoxedNumber
+implements [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsValidation1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsValidation1BoxedString
-public static final class UniqueitemsValidation1BoxedString
-extends [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
+public record UniqueitemsValidation1BoxedString
+implements [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsValidation1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsValidation1BoxedList
-public static final class UniqueitemsValidation1BoxedList
-extends [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
+public record UniqueitemsValidation1BoxedList
+implements [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsValidation1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsValidation1BoxedMap
-public static final class UniqueitemsValidation1BoxedMap
-extends [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
+public record UniqueitemsValidation1BoxedMap
+implements [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UniqueitemsValidation1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UniqueitemsValidation1
public static class UniqueitemsValidation1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [UniqueitemsValidation1BoxedBoolean](#uniqueitemsvalidation1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [UniqueitemsValidation1BoxedMap](#uniqueitemsvalidation1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [UniqueitemsValidation1BoxedList](#uniqueitemsvalidation1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [UniqueitemsValidation1Boxed](#uniqueitemsvalidation1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriFormat.md
index e88ec7c7e06..86070ed0198 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriFormat.md
@@ -4,23 +4,23 @@ public class UriFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [UriFormat.UriFormat1Boxed](#uriformat1boxed) abstract sealed validated payload class |
-| static class | [UriFormat.UriFormat1BoxedVoid](#uriformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [UriFormat.UriFormat1BoxedBoolean](#uriformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [UriFormat.UriFormat1BoxedNumber](#uriformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [UriFormat.UriFormat1BoxedString](#uriformat1boxedstring) boxed class to store validated String payloads |
-| static class | [UriFormat.UriFormat1BoxedList](#uriformat1boxedlist) boxed class to store validated List payloads |
-| static class | [UriFormat.UriFormat1BoxedMap](#uriformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [UriFormat.UriFormat1Boxed](#uriformat1boxed) sealed interface for validated payloads |
+| record | [UriFormat.UriFormat1BoxedVoid](#uriformat1boxedvoid) boxed class to store validated null payloads |
+| record | [UriFormat.UriFormat1BoxedBoolean](#uriformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [UriFormat.UriFormat1BoxedNumber](#uriformat1boxednumber) boxed class to store validated Number payloads |
+| record | [UriFormat.UriFormat1BoxedString](#uriformat1boxedstring) boxed class to store validated String payloads |
+| record | [UriFormat.UriFormat1BoxedList](#uriformat1boxedlist) boxed class to store validated List payloads |
+| record | [UriFormat.UriFormat1BoxedMap](#uriformat1boxedmap) boxed class to store validated Map payloads |
| static class | [UriFormat.UriFormat1](#uriformat1) schema class |
## UriFormat1Boxed
-public static abstract sealed class UriFormat1Boxed
+public sealed interface UriFormat1Boxed
permits
[UriFormat1BoxedVoid](#uriformat1boxedvoid),
[UriFormat1BoxedBoolean](#uriformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[UriFormat1BoxedList](#uriformat1boxedlist),
[UriFormat1BoxedMap](#uriformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## UriFormat1BoxedVoid
-public static final class UriFormat1BoxedVoid
-extends [UriFormat1Boxed](#uriformat1boxed)
+public record UriFormat1BoxedVoid
+implements [UriFormat1Boxed](#uriformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriFormat1BoxedBoolean
-public static final class UriFormat1BoxedBoolean
-extends [UriFormat1Boxed](#uriformat1boxed)
+public record UriFormat1BoxedBoolean
+implements [UriFormat1Boxed](#uriformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriFormat1BoxedNumber
-public static final class UriFormat1BoxedNumber
-extends [UriFormat1Boxed](#uriformat1boxed)
+public record UriFormat1BoxedNumber
+implements [UriFormat1Boxed](#uriformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriFormat1BoxedString
-public static final class UriFormat1BoxedString
-extends [UriFormat1Boxed](#uriformat1boxed)
+public record UriFormat1BoxedString
+implements [UriFormat1Boxed](#uriformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriFormat1BoxedList
-public static final class UriFormat1BoxedList
-extends [UriFormat1Boxed](#uriformat1boxed)
+public record UriFormat1BoxedList
+implements [UriFormat1Boxed](#uriformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriFormat1BoxedMap
-public static final class UriFormat1BoxedMap
-extends [UriFormat1Boxed](#uriformat1boxed)
+public record UriFormat1BoxedMap
+implements [UriFormat1Boxed](#uriformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriFormat1
public static class UriFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [UriFormat1BoxedBoolean](#uriformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [UriFormat1BoxedMap](#uriformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [UriFormat1BoxedList](#uriformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [UriFormat1Boxed](#uriformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriReferenceFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriReferenceFormat.md
index 6292b784449..9b8f21979a3 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriReferenceFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriReferenceFormat.md
@@ -4,23 +4,23 @@ public class UriReferenceFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [UriReferenceFormat.UriReferenceFormat1Boxed](#urireferenceformat1boxed) abstract sealed validated payload class |
-| static class | [UriReferenceFormat.UriReferenceFormat1BoxedVoid](#urireferenceformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [UriReferenceFormat.UriReferenceFormat1BoxedBoolean](#urireferenceformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [UriReferenceFormat.UriReferenceFormat1BoxedNumber](#urireferenceformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [UriReferenceFormat.UriReferenceFormat1BoxedString](#urireferenceformat1boxedstring) boxed class to store validated String payloads |
-| static class | [UriReferenceFormat.UriReferenceFormat1BoxedList](#urireferenceformat1boxedlist) boxed class to store validated List payloads |
-| static class | [UriReferenceFormat.UriReferenceFormat1BoxedMap](#urireferenceformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [UriReferenceFormat.UriReferenceFormat1Boxed](#urireferenceformat1boxed) sealed interface for validated payloads |
+| record | [UriReferenceFormat.UriReferenceFormat1BoxedVoid](#urireferenceformat1boxedvoid) boxed class to store validated null payloads |
+| record | [UriReferenceFormat.UriReferenceFormat1BoxedBoolean](#urireferenceformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [UriReferenceFormat.UriReferenceFormat1BoxedNumber](#urireferenceformat1boxednumber) boxed class to store validated Number payloads |
+| record | [UriReferenceFormat.UriReferenceFormat1BoxedString](#urireferenceformat1boxedstring) boxed class to store validated String payloads |
+| record | [UriReferenceFormat.UriReferenceFormat1BoxedList](#urireferenceformat1boxedlist) boxed class to store validated List payloads |
+| record | [UriReferenceFormat.UriReferenceFormat1BoxedMap](#urireferenceformat1boxedmap) boxed class to store validated Map payloads |
| static class | [UriReferenceFormat.UriReferenceFormat1](#urireferenceformat1) schema class |
## UriReferenceFormat1Boxed
-public static abstract sealed class UriReferenceFormat1Boxed
+public sealed interface UriReferenceFormat1Boxed
permits
[UriReferenceFormat1BoxedVoid](#urireferenceformat1boxedvoid),
[UriReferenceFormat1BoxedBoolean](#urireferenceformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[UriReferenceFormat1BoxedList](#urireferenceformat1boxedlist),
[UriReferenceFormat1BoxedMap](#urireferenceformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## UriReferenceFormat1BoxedVoid
-public static final class UriReferenceFormat1BoxedVoid
-extends [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
+public record UriReferenceFormat1BoxedVoid
+implements [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriReferenceFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriReferenceFormat1BoxedBoolean
-public static final class UriReferenceFormat1BoxedBoolean
-extends [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
+public record UriReferenceFormat1BoxedBoolean
+implements [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriReferenceFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriReferenceFormat1BoxedNumber
-public static final class UriReferenceFormat1BoxedNumber
-extends [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
+public record UriReferenceFormat1BoxedNumber
+implements [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriReferenceFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriReferenceFormat1BoxedString
-public static final class UriReferenceFormat1BoxedString
-extends [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
+public record UriReferenceFormat1BoxedString
+implements [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriReferenceFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriReferenceFormat1BoxedList
-public static final class UriReferenceFormat1BoxedList
-extends [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
+public record UriReferenceFormat1BoxedList
+implements [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriReferenceFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriReferenceFormat1BoxedMap
-public static final class UriReferenceFormat1BoxedMap
-extends [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
+public record UriReferenceFormat1BoxedMap
+implements [UriReferenceFormat1Boxed](#urireferenceformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriReferenceFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriReferenceFormat1
public static class UriReferenceFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [UriReferenceFormat1BoxedBoolean](#urireferenceformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [UriReferenceFormat1BoxedMap](#urireferenceformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [UriReferenceFormat1BoxedList](#urireferenceformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [UriReferenceFormat1Boxed](#urireferenceformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriTemplateFormat.md b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriTemplateFormat.md
index 22c921701b2..a95971b7ca9 100644
--- a/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriTemplateFormat.md
+++ b/samples/client/3_0_3_unit_test/java/docs/components/schemas/UriTemplateFormat.md
@@ -4,23 +4,23 @@ public class UriTemplateFormat
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
-- abstract sealed classes which store validated payloads, java version of a sum type
+- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
## Nested Class Summary
| Modifier and Type | Class and Description |
| ----------------- | ---------------------- |
-| static class | [UriTemplateFormat.UriTemplateFormat1Boxed](#uritemplateformat1boxed) abstract sealed validated payload class |
-| static class | [UriTemplateFormat.UriTemplateFormat1BoxedVoid](#uritemplateformat1boxedvoid) boxed class to store validated null payloads |
-| static class | [UriTemplateFormat.UriTemplateFormat1BoxedBoolean](#uritemplateformat1boxedboolean) boxed class to store validated boolean payloads |
-| static class | [UriTemplateFormat.UriTemplateFormat1BoxedNumber](#uritemplateformat1boxednumber) boxed class to store validated Number payloads |
-| static class | [UriTemplateFormat.UriTemplateFormat1BoxedString](#uritemplateformat1boxedstring) boxed class to store validated String payloads |
-| static class | [UriTemplateFormat.UriTemplateFormat1BoxedList](#uritemplateformat1boxedlist) boxed class to store validated List payloads |
-| static class | [UriTemplateFormat.UriTemplateFormat1BoxedMap](#uritemplateformat1boxedmap) boxed class to store validated Map payloads |
+| sealed interface | [UriTemplateFormat.UriTemplateFormat1Boxed](#uritemplateformat1boxed) sealed interface for validated payloads |
+| record | [UriTemplateFormat.UriTemplateFormat1BoxedVoid](#uritemplateformat1boxedvoid) boxed class to store validated null payloads |
+| record | [UriTemplateFormat.UriTemplateFormat1BoxedBoolean](#uritemplateformat1boxedboolean) boxed class to store validated boolean payloads |
+| record | [UriTemplateFormat.UriTemplateFormat1BoxedNumber](#uritemplateformat1boxednumber) boxed class to store validated Number payloads |
+| record | [UriTemplateFormat.UriTemplateFormat1BoxedString](#uritemplateformat1boxedstring) boxed class to store validated String payloads |
+| record | [UriTemplateFormat.UriTemplateFormat1BoxedList](#uritemplateformat1boxedlist) boxed class to store validated List payloads |
+| record | [UriTemplateFormat.UriTemplateFormat1BoxedMap](#uritemplateformat1boxedmap) boxed class to store validated Map payloads |
| static class | [UriTemplateFormat.UriTemplateFormat1](#uritemplateformat1) schema class |
## UriTemplateFormat1Boxed
-public static abstract sealed class UriTemplateFormat1Boxed
+public sealed interface UriTemplateFormat1Boxed
permits
[UriTemplateFormat1BoxedVoid](#uritemplateformat1boxedvoid),
[UriTemplateFormat1BoxedBoolean](#uritemplateformat1boxedboolean),
@@ -29,103 +29,109 @@ permits
[UriTemplateFormat1BoxedList](#uritemplateformat1boxedlist),
[UriTemplateFormat1BoxedMap](#uritemplateformat1boxedmap)
-abstract sealed class that stores validated payloads using boxed classes
+sealed interface that stores validated payloads using boxed classes
## UriTemplateFormat1BoxedVoid
-public static final class UriTemplateFormat1BoxedVoid
-extends [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
+public record UriTemplateFormat1BoxedVoid
+implements [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
-a boxed class to store validated null payloads, sealed permits class implementation
+record that stores validated null payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriTemplateFormat1BoxedVoid(Void data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Void | data validated payload |
+| Void | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriTemplateFormat1BoxedBoolean
-public static final class UriTemplateFormat1BoxedBoolean
-extends [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
+public record UriTemplateFormat1BoxedBoolean
+implements [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
-a boxed class to store validated boolean payloads, sealed permits class implementation
+record that stores validated boolean payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriTemplateFormat1BoxedBoolean(boolean data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| boolean | data validated payload |
+| boolean | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriTemplateFormat1BoxedNumber
-public static final class UriTemplateFormat1BoxedNumber
-extends [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
+public record UriTemplateFormat1BoxedNumber
+implements [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
-a boxed class to store validated Number payloads, sealed permits class implementation
+record that stores validated Number payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriTemplateFormat1BoxedNumber(Number data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| Number | data validated payload |
+| Number | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriTemplateFormat1BoxedString
-public static final class UriTemplateFormat1BoxedString
-extends [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
+public record UriTemplateFormat1BoxedString
+implements [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
-a boxed class to store validated String payloads, sealed permits class implementation
+record that stores validated String payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriTemplateFormat1BoxedString(String data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| String | data validated payload |
+| String | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriTemplateFormat1BoxedList
-public static final class UriTemplateFormat1BoxedList
-extends [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
+public record UriTemplateFormat1BoxedList
+implements [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
-a boxed class to store validated List payloads, sealed permits class implementation
+record that stores validated List payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriTemplateFormat1BoxedList(FrozenList<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenList<@Nullable Object> | data validated payload |
+| FrozenList<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriTemplateFormat1BoxedMap
-public static final class UriTemplateFormat1BoxedMap
-extends [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
+public record UriTemplateFormat1BoxedMap
+implements [UriTemplateFormat1Boxed](#uritemplateformat1boxed)
-a boxed class to store validated Map payloads, sealed permits class implementation
+record that stores validated Map payloads, sealed permits implementation
### Constructor Summary
| Constructor and Description |
| --------------------------- |
| UriTemplateFormat1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
-### Field Summary
-| Modifier and Type | Field and Description |
+### Method Summary
+| Modifier and Type | Method and Description |
| ----------------- | ---------------------- |
-| FrozenMap<@Nullable Object> | data validated payload |
+| FrozenMap<@Nullable Object> | data() validated payload |
+| @Nullable Object | getData() validated payload |
## UriTemplateFormat1
public static class UriTemplateFormat1
@@ -157,5 +163,7 @@ A schema class that validates payloads
| [UriTemplateFormat1BoxedBoolean](#uritemplateformat1boxedboolean) | validateAndBox(boolean arg, SchemaConfiguration configuration) |
| [UriTemplateFormat1BoxedMap](#uritemplateformat1boxedmap) | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
| [UriTemplateFormat1BoxedList](#uritemplateformat1boxedlist) | validateAndBox(List> arg, SchemaConfiguration configuration) |
+| [UriTemplateFormat1Boxed](#uritemplateformat1boxed) | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |
+
[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
diff --git a/samples/client/3_0_3_unit_test/java/pom.xml b/samples/client/3_0_3_unit_test/java/pom.xml
index 0af6a0f12f4..d67521577de 100644
--- a/samples/client/3_0_3_unit_test/java/pom.xml
+++ b/samples/client/3_0_3_unit_test/java/pom.xml
@@ -94,7 +94,7 @@
org.apache.maven.pluginsmaven-surefire-plugin
- 2.12
+ 3.2.5
@@ -103,8 +103,8 @@
-Xms512m -Xmx1500m
- methods
- pertest
+ classes
+ true
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 a3acabae850..b91c994ef9b 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
@@ -255,23 +255,19 @@ public AdditionalpropertiesAllowsASchemaWhichShouldValidateMapBuilder getBuilder
}
- public static abstract sealed class AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed permits AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap {
- public abstract @Nullable Object data();
+ public sealed interface AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed permits AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap {
+ @Nullable Object getData();
}
- public static final class AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap extends AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed {
- public final AdditionalpropertiesAllowsASchemaWhichShouldValidateMap data;
- private AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap(AdditionalpropertiesAllowsASchemaWhichShouldValidateMap data) {
- this.data = data;
- }
+ public record AdditionalpropertiesAllowsASchemaWhichShouldValidate1BoxedMap(AdditionalpropertiesAllowsASchemaWhichShouldValidateMap data) implements AdditionalpropertiesAllowsASchemaWhichShouldValidate1Boxed {
@Override
- public @Nullable Object data() {
+ public @Nullable Object getData() {
return data;
}
}
- public static class AdditionalpropertiesAllowsASchemaWhichShouldValidate1 extends JsonSchema implements MapSchemaValidator {
+ public static class AdditionalpropertiesAllowsASchemaWhichShouldValidate1 extends JsonSchema implements MapSchemaValidator {
/*
NOTE: This class is auto generated by OpenAPI JSON Schema Generator.
Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
@@ -309,11 +305,11 @@ public AdditionalpropertiesAllowsASchemaWhichShouldValidateMap getNewInstance(Ma
List